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> 2003-04-01 Michael Natterer <mitch@gimp.org>
* app/core/gimpmarshal.list: added VOID__DOUBLE_DOUBLE * app/core/gimpmarshal.list: added VOID__DOUBLE_DOUBLE

View File

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

View File

@ -53,6 +53,7 @@ struct _GimpDisplayConfig
gchar *image_status_format; gchar *image_status_format;
gboolean show_menubar; gboolean show_menubar;
gboolean show_rulers; gboolean show_rulers;
gboolean show_scrollbars;
gboolean show_statusbar; gboolean show_statusbar;
gboolean confirm_on_close; gboolean confirm_on_close;
gdouble monitor_xres; 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." "This path will be searched for scripts when the Script-Fu plug-in is run."
#define SHOW_MENUBAR_BLURB \ #define SHOW_MENUBAR_BLURB \
N_("Sets the default menubar visibility. This can also be toggled with the "\ N_("When enabled, the menubar is visible by default. This can also be " \
"\"View->Toggle\" Menubar command.") "toggled with the \"View->Show Menubar\" command.")
#define SHOW_RULERS_BLURB \ #define SHOW_RULERS_BLURB \
N_("Sets the default ruler visibility. This can also be toggled with the " \ N_("When enabled, the rulers are visible by default. This can also be " \
"\"View->Toggle Rulers\" command.") "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 \ #define SHOW_STATUSBAR_BLURB \
N_("When enabled, the statusbar is visible by default. This can also be " \ 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 \ #define SHOW_TIPS_BLURB \
N_("Enable to display a handy GIMP tip on startup.") 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", prefs_check_button_add (config, "show-rulers",
_("Show _Rulers"), _("Show _Rulers"),
GTK_BOX (vbox2)); GTK_BOX (vbox2));
prefs_check_button_add (config, "show-scrollbars",
_("Show Scrollbars"),
GTK_BOX (vbox2));
prefs_check_button_add (config, "show-statusbar", prefs_check_button_add (config, "show-statusbar",
_("Show S_tatusbar"), _("Show S_tatusbar"),
GTK_BOX (vbox2)); GTK_BOX (vbox2));

View File

@ -467,7 +467,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
shell->visibility.menubar = config->show_menubar; shell->visibility.menubar = config->show_menubar;
shell->visibility.rulers = config->show_rulers; shell->visibility.rulers = config->show_rulers;
shell->visibility.scrollbars = TRUE; shell->visibility.scrollbars = config->show_scrollbars;
shell->visibility.statusbar = config->show_statusbar; shell->visibility.statusbar = config->show_statusbar;
/* adjust the initial scale -- so that window fits on screen the 75% /* 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.menubar = config->show_menubar;
shell->visibility.rulers = config->show_rulers; shell->visibility.rulers = config->show_rulers;
shell->visibility.scrollbars = TRUE; shell->visibility.scrollbars = config->show_scrollbars;
shell->visibility.statusbar = config->show_statusbar; shell->visibility.statusbar = config->show_statusbar;
/* adjust the initial scale -- so that window fits on screen the 75% /* 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", prefs_check_button_add (config, "show-rulers",
_("Show _Rulers"), _("Show _Rulers"),
GTK_BOX (vbox2)); GTK_BOX (vbox2));
prefs_check_button_add (config, "show-scrollbars",
_("Show Scrollbars"),
GTK_BOX (vbox2));
prefs_check_button_add (config, "show-statusbar", prefs_check_button_add (config, "show-statusbar",
_("Show S_tatusbar"), _("Show S_tatusbar"),
GTK_BOX (vbox2)); GTK_BOX (vbox2));