From 80e903afeb029306a97cb403e0bf1794e5ec1009 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 26 Dec 2019 23:49:50 -0500 Subject: [PATCH] docs: Stop taking menubar screenshots The widget is going away. --- docs/tools/widgets.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index f044c6c998..64851863dc 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -800,32 +800,6 @@ create_toolbar (void) return new_widget_info ("toolbar", widget, SMALL); } -static WidgetInfo * -create_menubar (void) -{ - GtkWidget *widget, *vbox, *item; - - widget = gtk_menu_bar_new (); - - item = gtk_menu_item_new_with_mnemonic ("_File"); - gtk_menu_shell_append (GTK_MENU_SHELL (widget), item); - - item = gtk_menu_item_new_with_mnemonic ("_Edit"); - gtk_menu_shell_append (GTK_MENU_SHELL (widget), item); - - item = gtk_menu_item_new_with_mnemonic ("_Help"); - gtk_menu_shell_append (GTK_MENU_SHELL (widget), item); - - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3); - gtk_widget_set_halign (widget, GTK_ALIGN_FILL); - gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); - gtk_container_add (GTK_CONTAINER (vbox), widget); - gtk_container_add (GTK_CONTAINER (vbox), - gtk_label_new ("Menu Bar")); - - return new_widget_info ("menubar", vbox, SMALL); -} - static WidgetInfo * create_message_dialog (void) { @@ -1438,7 +1412,6 @@ get_all_widgets (void) retval = g_list_prepend (retval, create_image ()); retval = g_list_prepend (retval, create_label ()); retval = g_list_prepend (retval, create_link_button ()); - retval = g_list_prepend (retval, create_menubar ()); retval = g_list_prepend (retval, create_message_dialog ()); retval = g_list_prepend (retval, create_notebook ()); retval = g_list_prepend (retval, create_panes ());