diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2011-06-20 03:10:28 +0000 |
|---|---|---|
| committer | Felipe C. da S. Sanches <juca@members.fsf.org> | 2011-06-20 03:10:28 +0000 |
| commit | cd71c7a2ed5f1703618febea53c1637c22243f78 (patch) | |
| tree | 647b45c1b4319b4792b5ae8b491ada4043de911d /src/widgets/toolbox.cpp | |
| parent | fix bug 796449: Measure tools should consider transform (diff) | |
| download | inkscape-cd71c7a2ed5f1703618febea53c1637c22243f78.tar.gz inkscape-cd71c7a2ed5f1703618febea53c1637c22243f78.zip | |
add "Units:" label to the units selection widget for the measurement tool
(bzr r10324)
Diffstat (limited to 'src/widgets/toolbox.cpp')
| -rw-r--r-- | src/widgets/toolbox.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 75040ae3d..8241f1941 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -367,6 +367,8 @@ static gchar const * ui_descr = " <toolbar name='MeasureToolbar'>" " <toolitem action='MeasureFontSizeAction' />" + " <separator />" + " <toolitem action='measure_units_label' />" " <toolitem action='MeasureUnitsAction' />" " </toolbar>" @@ -1672,9 +1674,18 @@ static void sp_measure_toolbox_prep(SPDesktop * desktop, GtkActionGroup* mainAct gtk_action_group_add_action( mainActions, GTK_ACTION(eact) ); } - // add the units menu + + // units label + { + EgeOutputAction* act = ege_output_action_new( "measure_units_label", _("Units:"), _("The units to be used for the measurements"), 0 ); + ege_output_action_set_use_markup( act, TRUE ); + g_object_set( act, "visible-overflown", FALSE, NULL ); + gtk_action_group_add_action( mainActions, GTK_ACTION( act ) ); + } + + // units menu { - GtkAction* act = tracker->createAction( "MeasureUnitsAction", _("Units"), _("Units:") ); + GtkAction* act = tracker->createAction( "MeasureUnitsAction", _("Units:"), _("The units to be used for the measurements") ); g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(measure_unit_changed), (GObject*)holder ); gtk_action_group_add_action( mainActions, act ); } |
