diff --git a/locale/ubinstall-gtk.pot b/locale/ubinstall-gtk.pot index 9e4bdf8..7629e5a 100644 --- a/locale/ubinstall-gtk.pot +++ b/locale/ubinstall-gtk.pot @@ -813,6 +813,10 @@ msgstr "" msgid "Package information" msgstr "" +#: source/ubl-strings.h:230 +msgid "Module information" +msgstr "" + #: source/ubl-strings.h:231 msgid "Yes, I agree to the License Agreement" msgstr "" diff --git a/locale/ubinstall-gtk_ru.po b/locale/ubinstall-gtk_ru.po index fed9874..b4c473b 100644 --- a/locale/ubinstall-gtk_ru.po +++ b/locale/ubinstall-gtk_ru.po @@ -837,6 +837,10 @@ msgstr "Пакеты не найдены" msgid "Package information" msgstr "Информация о пакете" +#: source/ubl-strings.h:230 +msgid "Module information" +msgstr "Информация о модуле" + #: source/ubl-strings.h:231 msgid "Yes, I agree to the License Agreement" msgstr "Да, я согласен с лицензионным соглашением" diff --git a/source/ubinstall-gtk-kernel.c b/source/ubinstall-gtk-kernel.c index 800abd8..5707288 100644 --- a/source/ubinstall-gtk-kernel.c +++ b/source/ubinstall-gtk-kernel.c @@ -244,7 +244,7 @@ void yon_kernel_init(main_window *widgets){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),1); gtk_widget_set_sensitive(row->InstallCheck,0); } - if (!yon_char_is_empty(enabled)&&!strcmp(package,enabled)){ + if (!yon_char_is_empty(enabled)&&(!strcmp(package,enabled)||!yon_char_check_element(modules,enabled," "))){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->EnableRadio),1); } yon_char_parsed_free(parsed,parsed_size); @@ -291,9 +291,9 @@ info_element *yon_package_info_element_new(){ return element; } -void on_kernel_addon_info(GtkLabel *self){ +void on_kernel_addon_info(GtkLabel *self, kernel_addon_row *row){ yon_window *window = yon_window_new(); - yon_gtk_window_setup(GTK_WINDOW(window->Window),NULL,PACKAGE_INFO_LABEL,icon_path,"info-label"); + yon_gtk_window_setup(GTK_WINDOW(window->Window),NULL,(GtkWidget*)self==row->PackageLabel?PACKAGE_INFO_LABEL:MODULE_INFO_LABEL,icon_path,"info-label"); char *package=NULL; package = yon_char_new(gtk_label_get_text(self)); int size=0; @@ -354,8 +354,8 @@ kernel_addon_row *yon_kernel_addon_row_new(){ row->package=NULL; g_signal_connect(G_OBJECT(row->InstallCheck),"toggled",G_CALLBACK(on_kernel_addon_install_enabled),row); - g_signal_connect(G_OBJECT(row->ModuleLabel),"activate-link",G_CALLBACK(on_kernel_addon_info),NULL); - g_signal_connect(G_OBJECT(row->PackageLabel),"activate-link",G_CALLBACK(on_kernel_addon_info),NULL); + g_signal_connect(G_OBJECT(row->ModuleLabel),"activate-link",G_CALLBACK(on_kernel_addon_info),row); + g_signal_connect(G_OBJECT(row->PackageLabel),"activate-link",G_CALLBACK(on_kernel_addon_info),row); g_signal_connect(G_OBJECT(row->PackageLabel),"button-press-event",G_CALLBACK(on_kernel_addon_menu_block),row); g_signal_connect(G_OBJECT(row->ModuleLabel),"button-press-event",G_CALLBACK(on_kernel_addon_menu_block),row); diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 2649b8b..7ab8b9e 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -220,6 +220,7 @@ NULL) #define ROOT_FORCE_CONFIGURATION_MODE_LABEL _("Warning! Application was launched without root. Only configuration mode is allowed.") #define PACKAGE_NOT_FOUND_LABEL _("Package were not found") #define PACKAGE_INFO_LABEL _("Package information") +#define MODULE_INFO_LABEL _("Module information") #define LICENCE_AGREE_LABEL _("Yes, I agree to the License Agreement") #define LICENCE_DISAGREE_LABEL _("No, I do not agree") #define ADD_LANGUAGE_TITLE_LABEL _("Add locales")