diff --git a/source/ubinstall-gtk-config-hub.c b/source/ubinstall-gtk-config-hub.c index a1c4cac..24eea7e 100644 --- a/source/ubinstall-gtk-config-hub.c +++ b/source/ubinstall-gtk-config-hub.c @@ -59,7 +59,7 @@ int yon_installation_check_packages_size(main_window *widgets){ } else { char *part = config(part_parameter); for (int i=0;i2&&!strcmp(parsed[2],part)&&parsed_size>3&&!yon_char_is_empty(parsed[3])){ part_size = atol(parsed[3]); diff --git a/source/ubinstall-gtk-kernel.c b/source/ubinstall-gtk-kernel.c index b056a3a..0392142 100644 --- a/source/ubinstall-gtk-kernel.c +++ b/source/ubinstall-gtk-kernel.c @@ -291,7 +291,7 @@ info_element *yon_package_info_element_new(){ return element; } -void on_kernel_addon_info(GtkLabel *self, kernel_addon_row *row){ +gboolean on_kernel_addon_info(GtkLabel *self, char *, kernel_addon_row *row){ yon_window *window = yon_window_new(); 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; @@ -307,7 +307,7 @@ void on_kernel_addon_info(GtkLabel *self, kernel_addon_row *row){ GtkWidget *label = NULL; yon_packages_info *info_struct = yon_packages_get_info_struct(YON_PACKAGES_ALL,package); - if (!info_struct) return; + if (!info_struct) return 0; char* info_string = yon_packages_get_info_string(info_struct); config_str info = yon_char_parse(info_string,&size,"\n"); if (size>0){ @@ -330,6 +330,7 @@ void on_kernel_addon_info(GtkLabel *self, kernel_addon_row *row){ gtk_label_set_xalign(GTK_LABEL(label),0); } gtk_widget_show(window->Window); + return 0; } gboolean on_kernel_addon_menu_block(GObject *, GdkEventButton *event){ diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h index 8fff4ff..485d916 100755 --- a/source/ubinstall-gtk.h +++ b/source/ubinstall-gtk.h @@ -1470,7 +1470,7 @@ void *yon_maximize(main_window *widgets); kernel_addon_row *yon_kernel_addon_row_new(); void yon_kernel_addon_row_setup(kernel_addon_row *row, char *name, char *modules, char *package, char *description); void on_kernel_addon_install_enabled(GtkWidget *, kernel_addon_row *row); -void on_kernel_addon_info(GtkLabel *self, kernel_addon_row *row); +gboolean on_kernel_addon_info(GtkLabel *self, char *, kernel_addon_row *row); void yon_license_init(main_window *widgets); void on_locale_toggle(GtkCellRenderer *, gchar *path, language_window *window); void on_locale_accept(GtkWidget *self, language_window *window);