~mitya57/indicator-applet/remove-old-menuitems

« back to all changes in this revision

Viewing changes to src/applet-main.c

  • Committer: Dmitry Shachnev
  • Date: 2016-12-02 11:08:05 UTC
  • Revision ID: mitya57@ubuntu.com-20161202110805-nc12mbsb0oemppoc
Remove the old menuitems rather than hiding them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
488
488
{
489
489
  GtkWidget * menuitem;
490
490
  GHashTable * menuitem_lookup;
 
491
  GtkWidget * menubar = GTK_WIDGET(user_data);
491
492
 
492
493
  g_debug("Signal: Entry Removed");
493
494
 
512
513
                         NULL);
513
514
  }
514
515
 
515
 
  gtk_widget_hide (menuitem);
 
516
  gtk_container_remove(GTK_CONTAINER(menubar), menuitem);
516
517
 
517
518
  return;
518
519
}