[gimp] Add a central hbox for docks and display shells



commit b0f7a7daf4b5a7529d6dcb3ccb4897496d6aeff6
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 29 21:47:58 2009 +0200

    Add a central hbox for docks and display shells

 app/display/gimpimagewindow.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 216c487..e0b87cb 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -69,6 +69,7 @@ struct _GimpImageWindowPrivate
 
   GtkWidget         *main_vbox;
   GtkWidget         *menubar;
+  GtkWidget         *hbox;
   GtkWidget         *statusbar;
 
   GdkWindowState     window_state;
@@ -250,6 +251,11 @@ gimp_image_window_constructor (GType                  type,
                         window);
     }
 
+  private->hbox = gtk_hbox_new (FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (private->main_vbox), private->hbox,
+                      TRUE, TRUE, 0);
+  gtk_widget_show (private->hbox);
+
   private->statusbar = gimp_statusbar_new ();
   gimp_help_set_help_data (private->statusbar, NULL,
                            GIMP_HELP_IMAGE_WINDOW_STATUS_BAR);
@@ -540,7 +546,7 @@ gimp_image_window_add_shell (GimpImageWindow  *window,
   private->shells = g_list_append (private->shells, shell);
 
   /* FIXME multiple shells */
-  gtk_box_pack_start (GTK_BOX (private->main_vbox), GTK_WIDGET (shell),
+  gtk_box_pack_start (GTK_BOX (private->hbox), GTK_WIDGET (shell),
                       TRUE, TRUE, 0);
   gtk_widget_show (GTK_WIDGET (shell));
 }



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