From 6b789ac77a53609d2dc2d0a0425fc9385725c0ec Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 19 Feb 2026 10:04:53 +0600 Subject: [PATCH] Theme names fix --- source/ubl-settings-manager-settings.c | 2 +- source/ubl-settings-manager-theme.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/ubl-settings-manager-settings.c b/source/ubl-settings-manager-settings.c index c40c73e..b5d5219 100644 --- a/source/ubl-settings-manager-settings.c +++ b/source/ubl-settings-manager-settings.c @@ -64,7 +64,7 @@ settings_window *yon_settings_window_new(){ } char *theme_id = NULL; if (yon_window_config_get_parameter(settings_section,theme_parameter,&theme_id,YON_TYPE_STRING)){ - gtk_combo_box_set_active_id(GTK_COMBO_BOX(window->ThemeCombo),theme_id); + gtk_combo_box_set_active_id(GTK_COMBO_BOX(window->ThemeCombo),_(theme_id)); } else { gtk_combo_box_set_active_id(GTK_COMBO_BOX(window->ThemeCombo),MAIN_THEME_LABEL); } diff --git a/source/ubl-settings-manager-theme.c b/source/ubl-settings-manager-theme.c index 55deff3..56e2202 100644 --- a/source/ubl-settings-manager-theme.c +++ b/source/ubl-settings-manager-theme.c @@ -3,7 +3,7 @@ theme_struct *yon_theme_update(main_window *widgets){ char *theme_id; if (!yon_window_config_get_parameter(settings_section,theme_parameter,&theme_id,YON_TYPE_STRING)||!g_hash_table_contains(main_config.themes,theme_id)){ - theme_id = yon_char_new("MAIN_THEME_LABEL"); + theme_id = yon_char_new(MAIN_THEME_LABEL); } theme_struct *theme = ((theme_struct*(*)())g_hash_table_lookup(main_config.themes,theme_id))(); @@ -27,6 +27,6 @@ theme_struct *yon_theme_update(main_window *widgets){ void yon_theme_init(){ // theme_struct *gnome_struct = (theme_struct*)yon_gnome_theme_new(); // theme_struct *main_struct = (theme_struct*)yon_main_theme_new(); - g_hash_table_insert(main_config.themes,yon_char_new("GNOME_THEME_LABEL"),yon_gnome_theme_new); - g_hash_table_insert(main_config.themes,yon_char_new("MAIN_THEME_LABEL"),yon_main_theme_new); + g_hash_table_insert(main_config.themes,yon_char_new(GNOME_THEME_LABEL),yon_gnome_theme_new); + g_hash_table_insert(main_config.themes,yon_char_new(MAIN_THEME_LABEL),yon_main_theme_new); } \ No newline at end of file