diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-12-01 12:17:53 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-12-19 12:51:09 -0500 |
commit | 33aaf26dd5950dc7d5a9d0fa2535a5068c53bebb (patch) | |
tree | eefa15be5fe097372406da618ddf6bfa6412b580 /examples | |
parent | acbda8219981217dfdae3d1fee5facfcb38c61d5 (diff) | |
download | gtk+-33aaf26dd5950dc7d5a9d0fa2535a5068c53bebb.tar.gz |
Drop GtkApplicationMenuButton for now
This feels premature; we do have the fallback situation covered
adaequately with the menubar, and people can do their own creative
solutions with gtk_application_window_get_menu(), so we don't have
to offer a widget for this right now.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bloatpad.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/bloatpad.c b/examples/bloatpad.c index 4632c39c16..315ec12a65 100644 --- a/examples/bloatpad.c +++ b/examples/bloatpad.c @@ -49,7 +49,7 @@ static void new_window (GApplication *app, GFile *file) { - GtkWidget *window, *button, *grid, *scrolled, *view; + GtkWidget *window, *grid, *scrolled, *view; window = gtk_application_window_new (GTK_APPLICATION (app)); g_action_map_add_action_entries (G_ACTION_MAP (window), win_entries, G_N_ELEMENTS (win_entries), window); @@ -58,11 +58,6 @@ new_window (GApplication *app, grid = gtk_grid_new (); gtk_container_add (GTK_CONTAINER (window), grid); - button = gtk_application_menu_button_new (); - gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name ("help-about", GTK_ICON_SIZE_MENU)); - gtk_widget_set_halign (button, GTK_ALIGN_START); - gtk_grid_attach (GTK_GRID (grid), button, 0, 0, 1, 1); - scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); @@ -70,7 +65,7 @@ new_window (GApplication *app, gtk_container_add (GTK_CONTAINER (scrolled), view); - gtk_grid_attach (GTK_GRID (grid), scrolled, 0, 1, 1, 1); + gtk_grid_attach (GTK_GRID (grid), scrolled, 0, 0, 1, 1); if (file != NULL) { |