Commit 879d2c28 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Henrik Brix Andersen

changed PROP_SHOW_ACTIVE_LAYER to PROP_SHOW_LAYER_BOUNDARY to be

2003-10-23 Henrik Brix Andersen <brix@gimp.org>

* gimp/app/display/gimpdisplayoptions.[ch]: changed
PROP_SHOW_ACTIVE_LAYER to PROP_SHOW_LAYER_BOUNDARY to be
consistent with the user interface

* gimp/app/display/gimpdisplayshell-appearance.c
* gimp/app/display/gimpdisplayshell-callbacks.c
* gimp/app/gui/preferences-dialog.c
* gimp/app/gui/image-menu.c: changed accordingly
parent bf87ccec
2003-10-23 Henrik Brix Andersen <brix@gimp.org>
* gimp/app/display/gimpdisplayoptions.[ch]: changed
PROP_SHOW_ACTIVE_LAYER to PROP_SHOW_LAYER_BOUNDARY to be
consistent with the user interface
* gimp/app/display/gimpdisplayshell-appearance.c
* gimp/app/display/gimpdisplayshell-callbacks.c
* gimp/app/gui/preferences-dialog.c
* gimp/app/gui/image-menu.c: changed accordingly
2003-10-23 Sven Neumann <sven@gimp.org>
* app/widgets/gimptooldialog.c (gimp_tool_dialog_new): fixed
......@@ -870,7 +870,7 @@ prefs_display_options_frame_add (Gimp *gimp,
"show-selection", _("Show S_election"),
GTK_BOX (checks_vbox));
prefs_check_button_add (object,
"show-active_layer", _("Show _Active Layer"),
"show-layer-boundary", _("Show _Layer Boundary"),
GTK_BOX (checks_vbox));
prefs_check_button_add (object,
"show-guides", _("Show _Guides"),
......
......@@ -48,7 +48,7 @@ enum
PROP_SHOW_SCROLLBARS,
PROP_SHOW_STATUSBAR,
PROP_SHOW_SELECTION,
PROP_SHOW_ACTIVE_LAYER,
PROP_SHOW_LAYER_BOUNDARY,
PROP_SHOW_GUIDES,
PROP_SHOW_GRID,
PROP_PADDING_MODE,
......@@ -175,8 +175,8 @@ gimp_display_options_class_init (GimpDisplayOptionsClass *klass)
"show-selection", NULL,
TRUE,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_ACTIVE_LAYER,
"show-active-layer", NULL,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
"show-layer-boundary", NULL,
TRUE,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
......@@ -229,8 +229,8 @@ gimp_display_options_fs_class_init (GimpDisplayOptionsClass *klass)
"show-selection", NULL,
FALSE,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_ACTIVE_LAYER,
"show-active-layer", NULL,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
"show-layer-boundary", NULL,
FALSE,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
......@@ -260,9 +260,9 @@ gimp_display_options_init (GimpDisplayOptions *options)
static void
gimp_display_options_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec)
guint property_id,
const GValue *value,
GParamSpec *pspec)
{
GimpDisplayOptions *options = GIMP_DISPLAY_OPTIONS (object);
......@@ -283,8 +283,8 @@ gimp_display_options_set_property (GObject *object,
case PROP_SHOW_SELECTION:
options->show_selection = g_value_get_boolean (value);
break;
case PROP_SHOW_ACTIVE_LAYER:
options->show_active_layer = g_value_get_boolean (value);
case PROP_SHOW_LAYER_BOUNDARY:
options->show_layer_boundary = g_value_get_boolean (value);
break;
case PROP_SHOW_GUIDES:
options->show_guides = g_value_get_boolean (value);
......@@ -330,8 +330,8 @@ gimp_display_options_get_property (GObject *object,
case PROP_SHOW_SELECTION:
g_value_set_boolean (value, options->show_selection);
break;
case PROP_SHOW_ACTIVE_LAYER:
g_value_set_boolean (value, options->show_active_layer);
case PROP_SHOW_LAYER_BOUNDARY:
g_value_set_boolean (value, options->show_layer_boundary);
break;
case PROP_SHOW_GUIDES:
g_value_set_boolean (value, options->show_guides);
......
......@@ -47,7 +47,7 @@ struct _GimpDisplayOptions
/* GimpCanvas options */
gboolean show_selection;
gboolean show_active_layer;
gboolean show_layer_boundary;
gboolean show_guides;
gboolean show_grid;
GimpCanvasPaddingMode padding_mode;
......
......@@ -287,7 +287,7 @@ gimp_display_shell_set_show_layer (GimpDisplayShell *shell,
options = GET_OPTIONS (shell);
g_object_set (options, "show-active-layer", show, NULL);
g_object_set (options, "show-layer-boundary", show, NULL);
if (shell->select)
gimp_display_shell_selection_layer_set_hidden (shell->select, ! show);
......@@ -303,7 +303,7 @@ gimp_display_shell_get_show_layer (GimpDisplayShell *shell)
{
g_return_val_if_fail (GIMP_IS_DISPLAY_SHELL (shell), FALSE);
return GET_OPTIONS (shell)->show_active_layer;
return GET_OPTIONS (shell)->show_layer_boundary;
}
void
......
......@@ -212,7 +212,7 @@ gimp_display_shell_events (GtkWidget *widget,
gimp_display_shell_set_show_selection (shell,
options->show_selection);
gimp_display_shell_set_show_layer (shell,
options->show_active_layer);
options->show_layer_boundary);
gimp_display_shell_set_show_guides (shell,
options->show_guides);
gimp_display_shell_set_show_grid (shell,
......
......@@ -1491,7 +1491,7 @@ image_menu_update (GtkItemFactory *item_factory,
SET_SENSITIVE ("/View/Show Selection", gdisp);
SET_ACTIVE ("/View/Show Selection", gdisp && options->show_selection);
SET_SENSITIVE ("/View/Show Layer Boundary", gdisp);
SET_ACTIVE ("/View/Show Layer Boundary", gdisp && options->show_active_layer);
SET_ACTIVE ("/View/Show Layer Boundary", gdisp && options->show_layer_boundary);
SET_ACTIVE ("/View/Show Guides", gdisp && options->show_guides);
SET_ACTIVE ("/View/Snap to Guides", gdisp && shell->snap_to_guides);
SET_ACTIVE ("/View/Show Grid", gdisp && options->show_grid);
......
......@@ -870,7 +870,7 @@ prefs_display_options_frame_add (Gimp *gimp,
"show-selection", _("Show S_election"),
GTK_BOX (checks_vbox));
prefs_check_button_add (object,
"show-active_layer", _("Show _Active Layer"),
"show-layer-boundary", _("Show _Layer Boundary"),
GTK_BOX (checks_vbox));
prefs_check_button_add (object,
"show-guides", _("Show _Guides"),
......
......@@ -1491,7 +1491,7 @@ image_menu_update (GtkItemFactory *item_factory,
SET_SENSITIVE ("/View/Show Selection", gdisp);
SET_ACTIVE ("/View/Show Selection", gdisp && options->show_selection);
SET_SENSITIVE ("/View/Show Layer Boundary", gdisp);
SET_ACTIVE ("/View/Show Layer Boundary", gdisp && options->show_active_layer);
SET_ACTIVE ("/View/Show Layer Boundary", gdisp && options->show_layer_boundary);
SET_ACTIVE ("/View/Show Guides", gdisp && options->show_guides);
SET_ACTIVE ("/View/Snap to Guides", gdisp && shell->snap_to_guides);
SET_ACTIVE ("/View/Show Grid", gdisp && options->show_grid);
......
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