[gimp] Bug 691183 - GIMP uses deprecated GtkHandleBox widget



commit 7fa0321afcb29d771dc330f91fe6fb6a9216c726
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jan 14 01:08:57 2013 +0100

    Bug 691183 - GIMP uses deprecated GtkHandleBox widget
    
    Simply get rid of the handle boxes now instead of waiting
    for GTK+ 3.x, they were entirely pointless in this case anyway.

 plug-ins/imagemap/imap_menu.c |   20 +++++---------------
 1 files changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/plug-ins/imagemap/imap_menu.c b/plug-ins/imagemap/imap_menu.c
index edb0735..8d26bae 100644
--- a/plug-ins/imagemap/imap_menu.c
+++ b/plug-ins/imagemap/imap_menu.c
@@ -493,40 +493,30 @@ menu_check_grid(gboolean check)
 GtkWidget*
 make_toolbar(GtkWidget *main_vbox, GtkWidget *window)
 {
-  GtkWidget *handlebox, *toolbar;
+  GtkWidget *toolbar;
 
-  handlebox = gtk_handle_box_new ();
-  gtk_box_pack_start (GTK_BOX (main_vbox), handlebox, FALSE, FALSE, 0);
   toolbar = gtk_ui_manager_get_widget (ui_manager, "/Toolbar");
-
   gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
   gtk_container_set_border_width (GTK_CONTAINER (toolbar), 0);
-
-  gtk_container_add (GTK_CONTAINER (handlebox), toolbar);
+  gtk_box_pack_start (GTK_BOX (main_vbox), toolbar, FALSE, FALSE, 0);
   gtk_widget_show (toolbar);
-  gtk_widget_show (handlebox);
 
-  return handlebox;
+  return toolbar;
 }
 
 GtkWidget*
 make_tools(GtkWidget *window)
 {
-  GtkWidget *handlebox, *toolbar;
+  GtkWidget *toolbar;
 
-  handlebox = gtk_handle_box_new ();
   toolbar = gtk_ui_manager_get_widget (ui_manager, "/Tools");
   gtk_orientable_set_orientation (GTK_ORIENTABLE (toolbar),
                                   GTK_ORIENTATION_VERTICAL);
-
   gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
   gtk_container_set_border_width (GTK_CONTAINER (toolbar), 0);
-
-  gtk_container_add (GTK_CONTAINER (handlebox), toolbar);
   gtk_widget_show (toolbar);
-  gtk_widget_show (handlebox);
 
-  return handlebox;
+  return toolbar;
 }
 
 GtkWidget*



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