Code

copyedit
[inkscape.git] / src / ink-action.cpp
index f1dcaf04b5aa4d875458e1a18e7c5aad6f08b730..418a9ce4f914b304bbfdf1f037d89f2564416088 100644 (file)
@@ -426,27 +426,27 @@ static GtkWidget* ink_toggle_action_create_menu_item( GtkAction* action )
 
 static GtkWidget* ink_toggle_action_create_tool_item( GtkAction* action )
 {
-       InkToggleAction* act = INK_TOGGLE_ACTION( action );
+    InkToggleAction* act = INK_TOGGLE_ACTION( action );
 
-       GtkWidget* item = gInkToggleActionParentClass->parent_class.create_tool_item(action);
-       if ( GTK_IS_TOOL_BUTTON(item) ) {
-               GtkToolButton* button = GTK_TOOL_BUTTON(item);
-    if ( act->private_data->iconId ) {
-                       GtkWidget* child = sp_icon_new( act->private_data->iconSize, act->private_data->iconId );
-                       gtk_tool_button_set_icon_widget( button, child );
-               } else {
-      gchar *label;
-      g_object_get (G_OBJECT(action), "label", &label, NULL);
-                       gtk_tool_button_set_label( button, label );
-               }
-       } else {
-               // For now trigger a warning but don't do anything else
-               GtkToolButton* button = GTK_TOOL_BUTTON(item);
-               (void)button;
-       }
-       gtk_widget_show_all( item );
-
-       return item;
+    GtkWidget* item = gInkToggleActionParentClass->parent_class.create_tool_item(action);
+    if ( GTK_IS_TOOL_BUTTON(item) ) {
+        GtkToolButton* button = GTK_TOOL_BUTTON(item);
+        if ( act->private_data->iconId ) {
+            GtkWidget* child = sp_icon_new( act->private_data->iconSize, act->private_data->iconId );
+            gtk_tool_button_set_icon_widget( button, child );
+        } else {
+            gchar *label;
+            g_object_get (G_OBJECT(action), "short_label", &label, NULL);
+            gtk_tool_button_set_label( button, label );
+        }
+    } else {
+        // For now trigger a warning but don't do anything else
+        GtkToolButton* button = GTK_TOOL_BUTTON(item);
+        (void)button;
+    }
+    gtk_widget_show_all( item );
+
+    return item;
 }