mirror of https://github.com/GNOME/gimp.git
app/display/gimpdisplayshell-appearance.c removed the 2px border and
2005-05-18 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-appearance.c * app/display/gimpdisplayshell.c: removed the 2px border and replaced it with a 1px spacing in the main vbox. Makes the screen edges active when working in fullscreen mode (bug #165774).
This commit is contained in:
parent
c671472424
commit
f54e982e82
|
@ -1,3 +1,10 @@
|
||||||
|
2005-05-18 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/display/gimpdisplayshell-appearance.c
|
||||||
|
* app/display/gimpdisplayshell.c: removed the 2px border and
|
||||||
|
replaced it with a 1px spacing in the main vbox. Makes the screen
|
||||||
|
edges active when working in fullscreen mode (bug #165774).
|
||||||
|
|
||||||
2005-05-18 Sven Neumann <sven@gimp.org>
|
2005-05-18 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpdisplayshell-callbacks.c
|
* app/display/gimpdisplayshell-callbacks.c
|
||||||
|
|
|
@ -91,7 +91,6 @@ gimp_display_shell_set_show_menubar (GimpDisplayShell *shell,
|
||||||
gboolean show)
|
gboolean show)
|
||||||
{
|
{
|
||||||
GimpDisplayOptions *options;
|
GimpDisplayOptions *options;
|
||||||
GtkContainer *vbox;
|
|
||||||
|
|
||||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||||
|
|
||||||
|
@ -99,8 +98,6 @@ gimp_display_shell_set_show_menubar (GimpDisplayShell *shell,
|
||||||
|
|
||||||
g_object_set (options, "show-menubar", show, NULL);
|
g_object_set (options, "show-menubar", show, NULL);
|
||||||
|
|
||||||
vbox = GTK_CONTAINER (shell->qmask_button->parent->parent);
|
|
||||||
|
|
||||||
if (shell->menubar)
|
if (shell->menubar)
|
||||||
{
|
{
|
||||||
if (show)
|
if (show)
|
||||||
|
@ -109,11 +106,6 @@ gimp_display_shell_set_show_menubar (GimpDisplayShell *shell,
|
||||||
gtk_widget_hide (shell->menubar);
|
gtk_widget_hide (shell->menubar);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options->show_menubar || options->show_statusbar)
|
|
||||||
gtk_container_set_border_width (vbox, 2);
|
|
||||||
else
|
|
||||||
gtk_container_set_border_width (vbox, 0);
|
|
||||||
|
|
||||||
SET_ACTIVE (shell->menubar_manager, "view-show-menubar", show);
|
SET_ACTIVE (shell->menubar_manager, "view-show-menubar", show);
|
||||||
|
|
||||||
if (IS_ACTIVE_DISPLAY (shell))
|
if (IS_ACTIVE_DISPLAY (shell))
|
||||||
|
@ -235,7 +227,6 @@ gimp_display_shell_set_show_statusbar (GimpDisplayShell *shell,
|
||||||
gboolean show)
|
gboolean show)
|
||||||
{
|
{
|
||||||
GimpDisplayOptions *options;
|
GimpDisplayOptions *options;
|
||||||
GtkContainer *vbox;
|
|
||||||
|
|
||||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||||
|
|
||||||
|
@ -243,18 +234,11 @@ gimp_display_shell_set_show_statusbar (GimpDisplayShell *shell,
|
||||||
|
|
||||||
g_object_set (options, "show-statusbar", show, NULL);
|
g_object_set (options, "show-statusbar", show, NULL);
|
||||||
|
|
||||||
vbox = GTK_CONTAINER (shell->qmask_button->parent->parent);
|
|
||||||
|
|
||||||
if (show)
|
if (show)
|
||||||
gtk_widget_show (shell->statusbar);
|
gtk_widget_show (shell->statusbar);
|
||||||
else
|
else
|
||||||
gtk_widget_hide (shell->statusbar);
|
gtk_widget_hide (shell->statusbar);
|
||||||
|
|
||||||
if (options->show_menubar || options->show_statusbar)
|
|
||||||
gtk_container_set_border_width (vbox, 2);
|
|
||||||
else
|
|
||||||
gtk_container_set_border_width (vbox, 0);
|
|
||||||
|
|
||||||
SET_ACTIVE (shell->menubar_manager, "view-show-statusbar", show);
|
SET_ACTIVE (shell->menubar_manager, "view-show-statusbar", show);
|
||||||
|
|
||||||
if (IS_ACTIVE_DISPLAY (shell))
|
if (IS_ACTIVE_DISPLAY (shell))
|
||||||
|
|
|
@ -719,7 +719,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
|
||||||
|
|
||||||
/* the vbox containing all widgets */
|
/* the vbox containing all widgets */
|
||||||
|
|
||||||
main_vbox = gtk_vbox_new (FALSE, 0);
|
main_vbox = gtk_vbox_new (FALSE, 1);
|
||||||
gtk_container_add (GTK_CONTAINER (shell), main_vbox);
|
gtk_container_add (GTK_CONTAINER (shell), main_vbox);
|
||||||
|
|
||||||
shell->menubar =
|
shell->menubar =
|
||||||
|
@ -756,7 +756,6 @@ gimp_display_shell_new (GimpDisplay *gdisp,
|
||||||
|
|
||||||
/* another vbox for everything except the statusbar */
|
/* another vbox for everything except the statusbar */
|
||||||
disp_vbox = gtk_vbox_new (FALSE, 1);
|
disp_vbox = gtk_vbox_new (FALSE, 1);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (disp_vbox), 2);
|
|
||||||
gtk_box_pack_start (GTK_BOX (main_vbox), disp_vbox, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (main_vbox), disp_vbox, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (disp_vbox);
|
gtk_widget_show (disp_vbox);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue