[gimp] app: minor formatting cleanup



commit 506469f9f923183d1946297b57babbd1a03ce0b9
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 26 18:52:49 2010 +0200

    app: minor formatting cleanup

 app/core/gimptoolpreset.c          |    5 +++--
 app/core/gimptoolpreset.h          |   10 +++++-----
 app/widgets/gimptoolpreseteditor.c |   21 ++++++++++++++-------
 3 files changed, 22 insertions(+), 14 deletions(-)
---
diff --git a/app/core/gimptoolpreset.c b/app/core/gimptoolpreset.c
index 7dca4ad..8440b0b 100644
--- a/app/core/gimptoolpreset.c
+++ b/app/core/gimptoolpreset.c
@@ -33,6 +33,7 @@
 
 #include "gimp-intl.h"
 
+
 #define DEFAULT_USE_FG_BG    FALSE
 #define DEFAULT_USE_BRUSH    TRUE
 #define DEFAULT_USE_DYNAMICS TRUE
@@ -153,7 +154,6 @@ gimp_tool_preset_class_init (GimpToolPresetClass *klass)
                                     "use-font", NULL,
                                     DEFAULT_USE_FONT,
                                     GIMP_PARAM_STATIC_STRINGS);
-
 }
 
 static void
@@ -246,6 +246,7 @@ gimp_tool_preset_set_property (GObject      *object,
     case PROP_USE_FONT:
       tool_preset->use_font = g_value_get_boolean (value);
       break;
+
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
       break;
@@ -295,6 +296,7 @@ gimp_tool_preset_get_property (GObject    *object,
     case PROP_USE_FONT:
       g_value_set_boolean (value, tool_preset->use_font);
       break;
+
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
       break;
@@ -457,7 +459,6 @@ gimp_tool_preset_get_prop_mask (GimpToolPreset *preset)
 
   g_return_val_if_fail (GIMP_IS_TOOL_PRESET (preset), 0);
 
-  /*  FG and BG are always shared between all tools  */
   if (preset->use_fg_bg)
     {
       use_props |= GIMP_CONTEXT_FOREGROUND_MASK;
diff --git a/app/core/gimptoolpreset.h b/app/core/gimptoolpreset.h
index 195dc48..485db02 100644
--- a/app/core/gimptoolpreset.h
+++ b/app/core/gimptoolpreset.h
@@ -54,13 +54,13 @@ struct _GimpToolPresetClass
 };
 
 
-GType               gimp_tool_preset_get_type     (void) G_GNUC_CONST;
+GType                 gimp_tool_preset_get_type      (void) G_GNUC_CONST;
 
-GimpData *          gimp_tool_preset_new          (GimpContext *context,
-                                                   const gchar *name);
-GimpData *          gimp_tool_preset_get_standard (GimpContext *context);
+GimpData            * gimp_tool_preset_new           (GimpContext    *context,
+                                                      const gchar    *name);
+GimpData            * gimp_tool_preset_get_standard  (GimpContext    *context);
 
+GimpContextPropMask   gimp_tool_preset_get_prop_mask (GimpToolPreset *preset);
 
-GimpContextPropMask gimp_tool_preset_get_prop_mask (GimpToolPreset *preset);
 
 #endif  /*  __GIMP_TOOL_PRESET_H__  */
diff --git a/app/widgets/gimptoolpreseteditor.c b/app/widgets/gimptoolpreseteditor.c
index 25dfb41..8a5d13d 100644
--- a/app/widgets/gimptoolpreseteditor.c
+++ b/app/widgets/gimptoolpreseteditor.c
@@ -105,37 +105,44 @@ gimp_tool_preset_editor_constructor (GType                  type,
                     G_CALLBACK (gimp_tool_preset_editor_notify_model),
                     editor);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-fg-bg", _("Apply stored FG/BG"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-fg-bg",
+                                       _("Apply stored FG/BG"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-brush", _("Apply stored brush"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-brush",
+                                       _("Apply stored brush"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-dynamics", _("Apply stored dynamics"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-dynamics",
+                                       _("Apply stored dynamics"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-gradient", _("Apply stored gradient"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-gradient",
+                                       _("Apply stored gradient"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-pattern", _("Apply stored pattern"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-pattern",
+                                       _("Apply stored pattern"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-palette", _("Apply stored pallete"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-palette"
+                                       , _("Apply stored pallete"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-font", _("Apply stored font"));
+  button = gimp_prop_check_button_new (G_OBJECT (preset), "use-font",
+                                       _("Apply stored font"));
   gtk_box_pack_start (GTK_BOX (data_editor), button,
                       FALSE, FALSE, 0);
   gtk_widget_show (button);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]