summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-03-12 07:32:29 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-03-12 07:32:29 +0000
commitc2563dd8653d424d37302e085257e2f614354a37 (patch)
treea83b8d1ffe4ec45aac74a28800172469098ee278 /src/widgets/toolbox.cpp
parentFixed initialization order (diff)
downloadinkscape-c2563dd8653d424d37302e085257e2f614354a37.tar.gz
inkscape-c2563dd8653d424d37302e085257e2f614354a37.zip
dropper modes: replace undecipherable icons with text labels
(bzr r5061)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 6362260cc..5d9169141 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -390,6 +390,7 @@ static gchar const * ui_descr =
" </toolbar>"
" <toolbar name='DropperToolbar'>"
+ " <toolitem action='DropperOpacityAction' />"
" <toolitem action='DropperPickAlphaAction' />"
" <toolitem action='DropperSetAlphaAction' />"
" </toolbar>"
@@ -3914,11 +3915,18 @@ static void sp_dropper_toolbox_prep(SPDesktop */*desktop*/, GtkActionGroup* main
gint pickAlpha = prefs_get_int_attribute( "tools.dropper", "pick", 1 );
{
+ EgeOutputAction* act = ege_output_action_new( "DropperOpacityAction", _("Opacity:"), "", 0 );
+ ege_output_action_set_use_markup( act, TRUE );
+ gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
+ }
+
+ {
InkToggleAction* act = ink_toggle_action_new( "DropperPickAlphaAction",
- _("Pick alpha"),
+ _("Pick opacity"),
_("Pick both the color and the alpha (transparency) under cursor; otherwise, pick only the visible color premultiplied by alpha"),
- "color_alpha_get",
+ NULL,
Inkscape::ICON_SIZE_DECORATION );
+ g_object_set( act, "short_label", _("Pick"), NULL );
gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
g_object_set_data( holder, "pick_action", act );
gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), pickAlpha );
@@ -3927,10 +3935,11 @@ static void sp_dropper_toolbox_prep(SPDesktop */*desktop*/, GtkActionGroup* main
{
InkToggleAction* act = ink_toggle_action_new( "DropperSetAlphaAction",
- _("Set alpha"),
+ _("Assign opacity"),
_("If alpha was picked, assign it to selection as fill or stroke transparency"),
- "color_alpha_set",
+ NULL,
Inkscape::ICON_SIZE_DECORATION );
+ g_object_set( act, "short_label", _("Assign"), NULL );
gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
g_object_set_data( holder, "set_action", act );
gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), prefs_get_int_attribute( "tools.dropper", "setalpha", 1 ) );