Commit c6714724 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/display/gimpdisplayshell-callbacks.c hack around with gtk+ widget

2005-05-18  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell.c: hack around with gtk+ widget
	styles to get rid of the menubar padding in fullscreen mode.
parent 938f0448
2005-05-18 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
* app/display/gimpdisplayshell.c: hack around with gtk+ widget
styles to get rid of the menubar padding in fullscreen mode.
2005-05-18 Michael Natterer <mitch@gimp.org>
* tools/test-clipboard.c: implemented pasting.
......
......@@ -203,6 +203,9 @@ gimp_display_shell_events (GtkWidget *widget,
fullscreen = gimp_display_shell_get_fullscreen (shell);
gtk_widget_set_name (GTK_WIDGET (shell->menubar),
fullscreen ? "gimp-menubar-fullscreen" : NULL);
options = fullscreen ? shell->fullscreen_options : shell->options;
gimp_display_shell_set_show_menubar (shell,
......
......@@ -120,6 +120,14 @@ static guint display_shell_signals[LAST_SIGNAL] = { 0 };
static GtkWindowClass *parent_class = NULL;
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\"";
GType
gimp_display_shell_get_type (void)
......@@ -209,6 +217,8 @@ gimp_display_shell_class_init (GimpDisplayShellClass *klass)
TRUE, FALSE,
GIMP_UNIT_PIXEL,
G_PARAM_READWRITE));
gtk_rc_parse_string (display_rc_style);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment