[gimp] Move the rc style string for the fullscreen menubar to GimpImageWindow



commit 44f9fcbf6fee414fbf9491007b2d6b45298e9b5b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 23 15:53:16 2009 +0200

    Move the rc style string for the fullscreen menubar to GimpImageWindow

 app/display/gimpdisplayshell.c |    7 -------
 app/display/gimpimagewindow.c  |   10 ++++++++++
 2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 730a061..9e05cef 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -157,13 +157,6 @@ static guint display_shell_signals[LAST_SIGNAL] = { 0 };
 
 
 static const gchar display_rc_style[] =
-  "style \"fullscreen-menubar-style\"\n"
-  "{\n"
-  "  GtkMenuBar::shadow-type      = none\n"
-  "  GtkMenuBar::internal-padding = 0\n"
-  "}\n"
-  "widget \"*.gimp-menubar-fullscreen\" style \"fullscreen-menubar-style\"\n"
-  "\n"
   "style \"check-button-style\"\n"
   "{\n"
   "  GtkToggleButton::child-displacement-x = 0\n"
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 6f95025..100ed6f 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -71,6 +71,14 @@ G_DEFINE_TYPE (GimpImageWindow, gimp_image_window, GIMP_TYPE_WINDOW)
 #define parent_class gimp_image_window_parent_class
 
 
+static const gchar image_window_rc_style[] =
+  "style \"fullscreen-menubar-style\"\n"
+  "{\n"
+  "  GtkMenuBar::shadow-type      = none\n"
+  "  GtkMenuBar::internal-padding = 0\n"
+  "}\n"
+  "widget \"*.gimp-menubar-fullscreen\" style \"fullscreen-menubar-style\"\n";
+
 static void
 gimp_image_window_class_init (GimpImageWindowClass *klass)
 {
@@ -93,6 +101,8 @@ gimp_image_window_class_init (GimpImageWindowClass *klass)
                                                         GIMP_TYPE_MENU_FACTORY,
                                                         GIMP_PARAM_WRITABLE |
                                                         G_PARAM_CONSTRUCT_ONLY));
+
+  gtk_rc_parse_string (image_window_rc_style);
 }
 
 static void



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