Test fix for crash

pull/58/head
Ivan Dmitrievich Yartsev 10 months ago
parent bf62fc28d1
commit d6f0d6e613

@ -280,8 +280,8 @@ gboolean yon_tab_create_tags(kernels_tab *tab){
gtk_widget_show(tab->changelog_button);
}
}
gtk_widget_set_sensitive(tab->update_module_button,!tab->module_updated);
gtk_widget_set_sensitive(tab->update_package_button,!tab->package_updated);
gtk_widget_set_sensitive(tab->update_module_button,tab->module_updated);
gtk_widget_set_sensitive(tab->update_package_button,tab->package_updated);
} else {
yon_tag_add(GTK_BOX(tab->install_tags_box),UNKNOWN_LABEL,"tag_grey",NULL);
}
@ -681,8 +681,6 @@ void on_package_install_accept(GtkWidget *, dictionary *dict){
char *command = install_command(modules_to_install);
yon_command_execute_async(command,widgets);
tab->package_installed=1;
free(dict->first->next->next);
dict->first->next->next=NULL;
on_subwindow_close(window->Window);
}
@ -818,6 +816,10 @@ void on_module_install_clicked(GtkWidget *self,dictionary *dict){
gtk_label_set_text(GTK_LABEL(window->TopicLabel),action_text);
gtk_widget_show(window->Window);
if (dict->first->next->next) {
yon_dictionary_free(dict->first->next->next);
dict->first->next->next=NULL;
}
yon_dictionary_add_or_create_if_exists_with_data(dict,"window",window);
if (gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->MainNotebook))||self==tab->update_module_button){
gtk_widget_hide(window->DependencesFrame);
@ -868,6 +870,10 @@ void on_package_install_clicked(GtkWidget *self,dictionary *dict){
gtk_label_set_markup(GTK_LABEL(window->TopicLabel),action_text);
gtk_widget_show(window->Window);
if (dict->first->next->next) {
yon_dictionary_free(dict->first->next->next);
dict->first->next->next=NULL;
}
yon_dictionary_add_or_create_if_exists_with_data(dict,"window",window);
if (gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->MainNotebook))){

Loading…
Cancel
Save