Skip to content

Commit

Permalink
Reload search results after an install or uninstall operation so the …
Browse files Browse the repository at this point in the history
…check boxes are updated.
  • Loading branch information
laffer1 committed Mar 29, 2016
1 parent 31f7eba commit a2787a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mport-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ create_menus(GtkWidget *window, GtkWidget *parent, GtkWidget *search) {
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuItem2), submenu2);
gtk_menu_shell_append (GTK_MENU_SHELL (menuBar), menuItem2);



// connect menubar to parent
gtk_container_add (GTK_CONTAINER (parent), menuBar);
Expand Down Expand Up @@ -590,6 +589,10 @@ install_button_clicked(GtkButton *button, GtkWidget *parent)
}
resultCode = install(mport, c);
fprintf(stderr, "Install returned %d", resultCode);

/* reload search data after install */
button_clicked(button, NULL);

#if defined(DISPATCH)
});
#endif
Expand All @@ -605,6 +608,9 @@ delete_button_clicked(GtkButton *button, GtkWidget *parent)
const gchar *c = gtk_label_get_text(GTK_LABEL(detail.labelName));
result = delete(c);
fprintf(stderr, "Delete returned %d", result);

/* reload search data after delete */
button_clicked(button, NULL);
#if defined(DISPATCH)
});
#endif
Expand Down

0 comments on commit a2787a9

Please sign in to comment.