Author: post
Date: 2010-05-28 16:52:07 +0200 (Fri, 28 May 2010)
New Revision: 3399
Modified:
trunk/src/gtk-interface.c
Log:
Add same behaviour for toolbox, as iconbox for first use.
Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c 2010-05-28 14:41:15 UTC (rev 3398)
+++ trunk/src/gtk-interface.c 2010-05-28 14:52:07 UTC (rev 3399)
@@ -328,8 +328,12 @@
gboolean show_toolbox;
if (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)
{
- rs_conf_get_boolean_with_default(CONF_SHOW_TOOLBOX_FULLSCREEN,
&show_toolbox, DEFAULT_CONF_SHOW_TOOLBOX_FULLSCREEN);
fullscreen = TRUE;
+ /* Retrieve defaults */
+ gboolean show_toolbox_default;
+ rs_conf_get_boolean_with_default(CONF_SHOW_TOOLBOX,
&show_toolbox_default, DEFAULT_CONF_SHOW_TOOLBOX_FULLSCREEN);
+ /* Get actual state */
+ rs_conf_get_boolean_with_default(CONF_SHOW_TOOLBOX_FULLSCREEN,
&show_toolbox, show_toolbox_default);
gui_widget_show(toolbox, show_toolbox,
CONF_SHOW_TOOLBOX_FULLSCREEN, CONF_SHOW_TOOLBOX);
}
if (!(event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN))
@@ -1162,10 +1166,14 @@
if (fullscreen)
{
rs_core_action_group_activate("Fullscreen");
+ /* Retrieve defaults */
gboolean show_iconbox_default;
+ gboolean show_toolbox_default;
rs_conf_get_boolean_with_default(CONF_SHOW_ICONBOX,
&show_iconbox_default, DEFAULT_CONF_SHOW_ICONBOX_FULLSCREEN);
+ rs_conf_get_boolean_with_default(CONF_SHOW_TOOLBOX,
&show_toolbox_default, DEFAULT_CONF_SHOW_TOOLBOX_FULLSCREEN);
+ /* Get actual state */
rs_conf_get_boolean_with_default(CONF_SHOW_ICONBOX_FULLSCREEN,
&show_iconbox, show_iconbox_default);
- rs_conf_get_boolean_with_default(CONF_SHOW_TOOLBOX_FULLSCREEN,
&show_toolbox, DEFAULT_CONF_SHOW_TOOLBOX_FULLSCREEN);
+ rs_conf_get_boolean_with_default(CONF_SHOW_TOOLBOX_FULLSCREEN,
&show_toolbox, show_toolbox_default);
}
else
{
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit