Commit 506469f9 authored by Michael Natterer's avatar Michael Natterer 😴

app: minor formatting cleanup

parent 5e1c9d22
......@@ -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;
......
......@@ -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__ */
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment