1. 12 Jul, 2012 1 commit
  2. 11 Jul, 2012 8 commits
  3. 10 Jul, 2012 3 commits
  4. 09 Jul, 2012 4 commits
  5. 08 Jul, 2012 2 commits
  6. 06 Jul, 2012 2 commits
    • Cosimo Cecchi's avatar
      modelmenu: listen for toplevel changes on the attach widget · 5dbf3a57
      Cosimo Cecchi authored
      Right now, when we create a GtkModelMenu for a GMenuModel, we listen to
      changes to the menu's attach-widget to detect when a toplevel
      GtkApplicationWindow becomes available to fetch actions from it.
      
      This unfortunately breaks this simple code:
      
        GtkWidget *application_window = gtk_application_window_new();
        GtkWidget *menu_button = gtk_menu_button_new();
        GMenuModel *menu_model = get_menu_model();
      
        gtk_menu_button_set_menu_model(menu_button, menu_model);
        gtk_container_add(GTK_CONTAINER(application_window), menu_button);
      
      Since GtkMenuButton creates a GtkModelMenu and sets itself as its attach
      widget before it's added to a hierarchy containing a
      GtkApplicationWindow.
      
      Fix the bug by simply listening for changes in the window hierarchy, and
      creating the menu model when the attach widget is added to an
      application window.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=679454
      5dbf3a57
    • Cosimo Cecchi's avatar
      menu: notify attach-widget property when menu is detached · f81bd6c5
      Cosimo Cecchi authored
      When the menu is detached, the attach-widget property changes value to
      NULL, so we should notify a property change, like
      gtk_menu_attach_to_widget() does.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=679454
      f81bd6c5
  7. 05 Jul, 2012 3 commits
  8. 02 Jul, 2012 3 commits
  9. 30 Jun, 2012 2 commits
  10. 29 Jun, 2012 3 commits
  11. 28 Jun, 2012 4 commits
  12. 27 Jun, 2012 2 commits
  13. 26 Jun, 2012 2 commits
  14. 25 Jun, 2012 1 commit