[gimp] app: GimpForegroundSelectToolUndo: shorten local variable names
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: GimpForegroundSelectToolUndo: shorten local variable names
- Date: Sun, 1 May 2011 21:20:19 +0000 (UTC)
commit 092e26935b60307d002528e13fdc7c9ff1903a4c
Author: Michael Natterer <mitch gimp org>
Date: Sun May 1 23:19:49 2011 +0200
app: GimpForegroundSelectToolUndo: shorten local variable names
app/tools/gimpforegroundselecttoolundo.c | 33 ++++++++++++-----------------
1 files changed, 14 insertions(+), 19 deletions(-)
---
diff --git a/app/tools/gimpforegroundselecttoolundo.c b/app/tools/gimpforegroundselecttoolundo.c
index 3b6326d..d91fb70 100644
--- a/app/tools/gimpforegroundselecttoolundo.c
+++ b/app/tools/gimpforegroundselecttoolundo.c
@@ -84,20 +84,17 @@ gimp_foreground_select_tool_undo_init (GimpForegroundSelectToolUndo *undo)
static void
gimp_foreground_select_tool_undo_constructed (GObject *object)
{
- GimpForegroundSelectToolUndo *foreground_select_tool_undo;
- GimpForegroundSelectTool *foreground_select_tool;
+ GimpForegroundSelectToolUndo *fg_select_tool_undo;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
- foreground_select_tool_undo = GIMP_FOREGROUND_SELECT_TOOL_UNDO (object);
+ fg_select_tool_undo = GIMP_FOREGROUND_SELECT_TOOL_UNDO (object);
- g_assert (GIMP_IS_FOREGROUND_SELECT_TOOL (foreground_select_tool_undo->foreground_select_tool));
+ g_assert (GIMP_IS_FOREGROUND_SELECT_TOOL (fg_select_tool_undo->foreground_select_tool));
- foreground_select_tool = GIMP_FOREGROUND_SELECT_TOOL (foreground_select_tool_undo->foreground_select_tool);
-
- g_object_add_weak_pointer (G_OBJECT (foreground_select_tool_undo->foreground_select_tool),
- (gpointer) &foreground_select_tool_undo->foreground_select_tool);
+ g_object_add_weak_pointer (G_OBJECT (fg_select_tool_undo->foreground_select_tool),
+ (gpointer) &fg_select_tool_undo->foreground_select_tool);
}
static void
@@ -106,14 +103,13 @@ gimp_foreground_select_tool_undo_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- GimpForegroundSelectToolUndo *foreground_select_tool_undo =
+ GimpForegroundSelectToolUndo *fg_select_tool_undo =
GIMP_FOREGROUND_SELECT_TOOL_UNDO (object);
switch (property_id)
{
case PROP_FOREGROUND_SELECT_TOOL:
- foreground_select_tool_undo->foreground_select_tool =
- g_value_get_object (value);
+ fg_select_tool_undo->foreground_select_tool = g_value_get_object (value);
break;
default:
@@ -128,14 +124,13 @@ gimp_foreground_select_tool_undo_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- GimpForegroundSelectToolUndo *foreground_select_tool_undo =
+ GimpForegroundSelectToolUndo *fg_select_tool_undo =
GIMP_FOREGROUND_SELECT_TOOL_UNDO (object);
switch (property_id)
{
case PROP_FOREGROUND_SELECT_TOOL:
- g_value_set_object (value,
- foreground_select_tool_undo->foreground_select_tool);
+ g_value_set_object (value, fg_select_tool_undo->foreground_select_tool);
break;
default:
@@ -156,13 +151,13 @@ static void
gimp_foreground_select_tool_undo_free (GimpUndo *undo,
GimpUndoMode undo_mode)
{
- GimpForegroundSelectToolUndo *foreground_select_tool_undo = GIMP_FOREGROUND_SELECT_TOOL_UNDO (undo);
+ GimpForegroundSelectToolUndo *fg_select_tool_undo = GIMP_FOREGROUND_SELECT_TOOL_UNDO (undo);
- if (foreground_select_tool_undo->foreground_select_tool)
+ if (fg_select_tool_undo->foreground_select_tool)
{
- g_object_remove_weak_pointer (G_OBJECT (foreground_select_tool_undo->foreground_select_tool),
- (gpointer) &foreground_select_tool_undo->foreground_select_tool);
- foreground_select_tool_undo->foreground_select_tool = NULL;
+ g_object_remove_weak_pointer (G_OBJECT (fg_select_tool_undo->foreground_select_tool),
+ (gpointer) &fg_select_tool_undo->foreground_select_tool);
+ fg_select_tool_undo->foreground_select_tool = NULL;
}
GIMP_UNDO_CLASS (parent_class)->free (undo, undo_mode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]