From ea6192146384b8c0aa0e598e0a481dde3185f376 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Tue, 22 Jul 2008 14:51:43 +0000 Subject: [PATCH] Remove obsolete auxiliary action --- src/widgets/toolbox.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index a6139fcf3..052a8f061 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -366,14 +366,12 @@ static gchar const * ui_descr = " " " " - " " " " " " " " " " " " - " " " " " " " " @@ -3276,19 +3274,6 @@ static void sp_pc_spiro_spline_mode_changed(EgeSelectOneAction* act, GObject* /* static void sp_add_spiro_toggle(GtkActionGroup* mainActions, GObject* holder, bool tool_is_pencil) { - // FIXME: No action is needed, we only want a simple label. But sp_toolbox_add_label() always - // adds the label at the end of the toolbar, whence this workarund. How to avoid this? - { - EgeOutputAction* act = ege_output_action_new( - tool_is_pencil ? - "FreehandModeActionPencilTemp" : - "FreehandModeActionPenTemp", - _("Mode:"), "", 0 ); - ege_output_action_set_use_markup( act, TRUE ); - gtk_action_group_add_action( mainActions, GTK_ACTION( act ) ); - g_object_set_data( holder, "freehand_mode_action", act ); - } - /* Freehand mode toggle buttons */ { //gchar const *flatsidedstr = prefs_get_string_attribute( "tools.shapes.star", "isflatsided" ); @@ -3317,9 +3302,8 @@ static void sp_add_spiro_toggle(GtkActionGroup* mainActions, GObject* holder, bo EgeSelectOneAction* act = ege_select_one_action_new(tool_is_pencil ? "FreehandModeActionPencil" : "FreehandModeActionPen", - (""), (""), NULL, GTK_TREE_MODEL(model) ); + ("Mode:"), ("Mode"), NULL, GTK_TREE_MODEL(model) ); gtk_action_group_add_action( mainActions, GTK_ACTION(act) ); - g_object_set_data( holder, "freehande_mode_action", act ); ege_select_one_action_set_appearance( act, "full" ); ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE ); -- 2.30.2