From 79603a3653220474fe990739981aff2dbfc4aac8 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Tue, 13 Jan 2026 16:33:11 +0000 Subject: [PATCH] OS Menu visual changes and localisation fixes --- source/ubinstall-gtk-bootloader.c | 6 +++- ubinstall-gtk-menu-item.glade | 1 + ubinstall-gtk-menu.glade | 53 +++++++++++++++++++++++++------ 3 files changed, 49 insertions(+), 11 deletions(-) diff --git a/source/ubinstall-gtk-bootloader.c b/source/ubinstall-gtk-bootloader.c index ff47380..ac3e045 100644 --- a/source/ubinstall-gtk-bootloader.c +++ b/source/ubinstall-gtk-bootloader.c @@ -239,7 +239,6 @@ yon_menu_window *yon_menu_window_open(GtkWidget *, main_window *widgets){ gtk_list_box_insert(GTK_LIST_BOX(window->ItemsListBox),item->MenuItemRow,-1); gtk_widget_hide(item->ArrowImage); } - int size; config_str options = yon_config_load(get_menus_entry_command,&size); GHashTable *created = g_hash_table_new(g_str_hash,g_str_equal); @@ -248,6 +247,11 @@ yon_menu_window *yon_menu_window_open(GtkWidget *, main_window *widgets){ yon_char_remove_last_symbol(options[i],'\n'); int parsed_size; config_str parsed = yon_char_parse(options[i],&parsed_size,";"); + { + char *temp = _(parsed[1]); + free(parsed[1]); + parsed[1] = yon_char_new(temp); + } int have_children=0; char *children_id; if ((children_id=strstr(parsed[0],">"))){ diff --git a/ubinstall-gtk-menu-item.glade b/ubinstall-gtk-menu-item.glade index 8e9e6fd..ccd75bf 100644 --- a/ubinstall-gtk-menu-item.glade +++ b/ubinstall-gtk-menu-item.glade @@ -4,6 +4,7 @@ + 25 True True diff --git a/ubinstall-gtk-menu.glade b/ubinstall-gtk-menu.glade index ba2ded6..0aaed23 100644 --- a/ubinstall-gtk-menu.glade +++ b/ubinstall-gtk-menu.glade @@ -3,11 +3,6 @@ - - True - False - com.ublinux.libublsettingsui-gtk3.pan-left-symbolic - 450 250 @@ -54,7 +49,6 @@ True False - none True @@ -94,11 +88,40 @@ 5 - Back True True True - image1 + + + True + False + 5 + + + True + False + com.ublinux.libublsettingsui-gtk3.pan-left-symbolic + + + False + True + 0 + + + + + True + False + Back + + + False + True + 1 + + + +