added gboolean show_scrollbars to be consistent with show_menubar etc.

2003-04-01  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpdisplayconfig.[ch]: added gboolean show_scrollbars
	to be consistent with show_menubar etc.

	* app/config/gimprc-blurbs.h: added its blurb and made all
	SHOW_FOO_BLURBs consistent.

	* app/display/gimpdisplayshell.c: take the scrollbar visibility
	default value from GimpDisplayConfig.

	* app/gui/preferences-dialog.c: GUI for the new property.
This commit is contained in:
Michael Natterer 2003-04-01 11:04:44 +00:00 committed by Michael Natterer
parent a1a1705b60
commit 19f210f59c
8 changed files with 42 additions and 7 deletions

View File

@ -1,3 +1,16 @@
2003-04-01 Michael Natterer <mitch@gimp.org>
* app/config/gimpdisplayconfig.[ch]: added gboolean show_scrollbars
to be consistent with show_menubar etc.
* app/config/gimprc-blurbs.h: added its blurb and made all
SHOW_FOO_BLURBs consistent.
* app/display/gimpdisplayshell.c: take the scrollbar visibility
default value from GimpDisplayConfig.
* app/gui/preferences-dialog.c: GUI for the new property.
2003-04-01 Michael Natterer <mitch@gimp.org>
* app/core/gimpmarshal.list: added VOID__DOUBLE_DOUBLE

View File

@ -69,6 +69,7 @@ enum
PROP_IMAGE_STATUS_FORMAT,
PROP_SHOW_MENUBAR,
PROP_SHOW_RULERS,
PROP_SHOW_SCROLLBARS,
PROP_SHOW_STATUSBAR,
PROP_CONFIRM_ON_CLOSE,
PROP_MONITOR_XRESOLUTION,
@ -186,6 +187,10 @@ gimp_display_config_class_init (GimpDisplayConfigClass *klass)
"show-rulers", SHOW_RULERS_BLURB,
TRUE,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
TRUE,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
"show-statusbar", SHOW_STATUSBAR_BLURB,
TRUE,
@ -294,6 +299,9 @@ gimp_display_config_set_property (GObject *object,
case PROP_SHOW_RULERS:
display_config->show_rulers = g_value_get_boolean (value);
break;
case PROP_SHOW_SCROLLBARS:
display_config->show_scrollbars = g_value_get_boolean (value);
break;
case PROP_SHOW_STATUSBAR:
display_config->show_statusbar = g_value_get_boolean (value);
break;
@ -376,6 +384,9 @@ gimp_display_config_get_property (GObject *object,
case PROP_SHOW_RULERS:
g_value_set_boolean (value, display_config->show_rulers);
break;
case PROP_SHOW_SCROLLBARS:
g_value_set_boolean (value, display_config->show_scrollbars);
break;
case PROP_SHOW_STATUSBAR:
g_value_set_boolean (value, display_config->show_statusbar);
break;

View File

@ -53,6 +53,7 @@ struct _GimpDisplayConfig
gchar *image_status_format;
gboolean show_menubar;
gboolean show_rulers;
gboolean show_scrollbars;
gboolean show_statusbar;
gboolean confirm_on_close;
gdouble monitor_xres;

View File

@ -239,16 +239,20 @@ N_("Save the positions and sizes of the main dialogs when the GIMP exits.")
"This path will be searched for scripts when the Script-Fu plug-in is run."
#define SHOW_MENUBAR_BLURB \
N_("Sets the default menubar visibility. This can also be toggled with the "\
"\"View->Toggle\" Menubar command.")
N_("When enabled, the menubar is visible by default. This can also be " \
"toggled with the \"View->Show Menubar\" command.")
#define SHOW_RULERS_BLURB \
N_("Sets the default ruler visibility. This can also be toggled with the " \
"\"View->Toggle Rulers\" command.")
N_("When enabled, the rulers are visible by default. This can also be " \
"toggled with the \"View->Show Rulers\" command.")
#define SHOW_SCROLLBARS_BLURB \
N_("When enabled, the scrollbars are visible by default. This can also be " \
"toggled with the \"View->Show Scrollbars\" command.")
#define SHOW_STATUSBAR_BLURB \
N_("When enabled, the statusbar is visible by default. This can also be " \
"toggled with the \"View->Toggle Statusbar\" command.")
"toggled with the \"View->Show Statusbar\" command.")
#define SHOW_TIPS_BLURB \
N_("Enable to display a handy GIMP tip on startup.")

View File

@ -1317,6 +1317,9 @@ prefs_dialog_new (Gimp *gimp,
prefs_check_button_add (config, "show-rulers",
_("Show _Rulers"),
GTK_BOX (vbox2));
prefs_check_button_add (config, "show-scrollbars",
_("Show Scrollbars"),
GTK_BOX (vbox2));
prefs_check_button_add (config, "show-statusbar",
_("Show S_tatusbar"),
GTK_BOX (vbox2));

View File

@ -467,7 +467,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
shell->visibility.menubar = config->show_menubar;
shell->visibility.rulers = config->show_rulers;
shell->visibility.scrollbars = TRUE;
shell->visibility.scrollbars = config->show_scrollbars;
shell->visibility.statusbar = config->show_statusbar;
/* adjust the initial scale -- so that window fits on screen the 75%

View File

@ -467,7 +467,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
shell->visibility.menubar = config->show_menubar;
shell->visibility.rulers = config->show_rulers;
shell->visibility.scrollbars = TRUE;
shell->visibility.scrollbars = config->show_scrollbars;
shell->visibility.statusbar = config->show_statusbar;
/* adjust the initial scale -- so that window fits on screen the 75%

View File

@ -1317,6 +1317,9 @@ prefs_dialog_new (Gimp *gimp,
prefs_check_button_add (config, "show-rulers",
_("Show _Rulers"),
GTK_BOX (vbox2));
prefs_check_button_add (config, "show-scrollbars",
_("Show Scrollbars"),
GTK_BOX (vbox2));
prefs_check_button_add (config, "show-statusbar",
_("Show S_tatusbar"),
GTK_BOX (vbox2));