[gtk] Fix build with -Dgtk_doc=true



commit 645f49cf2b5d9d0d21db841a3c4ced27df523888
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 8 19:02:46 2020 -0500

    Fix build with -Dgtk_doc=true
    
    Toolbars were removed, so don't try to create
    thumbnails of them.

 docs/tools/widgets.c | 26 --------------------------
 1 file changed, 26 deletions(-)
---
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 73b0a431fc..3f8009fbbe 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -775,31 +775,6 @@ create_page_setup_dialog (void)
   return info;
 }
 
-static WidgetInfo *
-create_toolbar (void)
-{
-  GtkWidget *widget;
-  GtkToolItem *item;
-
-  widget = gtk_toolbar_new ();
-
-  item = gtk_tool_button_new (NULL, NULL);
-  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "document-new");
-  gtk_toolbar_insert (GTK_TOOLBAR (widget), item, -1);
-
-  item = gtk_tool_button_new (NULL, NULL);
-  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "document-open");
-  gtk_toolbar_insert (GTK_TOOLBAR (widget), item, -1);
-
-  item = gtk_tool_button_new (NULL, NULL);
-  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "view-refresh");
-  gtk_toolbar_insert (GTK_TOOLBAR (widget), item, -1);
-
-  gtk_toolbar_set_show_arrow (GTK_TOOLBAR (widget), FALSE);
-
-  return new_widget_info ("toolbar", widget, SMALL);
-}
-
 static WidgetInfo *
 create_message_dialog (void)
 {
@@ -1425,7 +1400,6 @@ get_all_widgets (void)
   retval = g_list_prepend (retval, create_statusbar ());
   retval = g_list_prepend (retval, create_text_view ());
   retval = g_list_prepend (retval, create_toggle_button ());
-  retval = g_list_prepend (retval, create_toolbar ());
   retval = g_list_prepend (retval, create_tree_view ());
   retval = g_list_prepend (retval, create_window ());
   retval = g_list_prepend (retval, create_filesel ());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]