[gimp/metadata-browser] app: clean up last fix in GimpToolDialog
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: clean up last fix in GimpToolDialog
- Date: Thu, 13 Sep 2012 00:27:12 +0000 (UTC)
commit 24fb9d6618a59612bccc143084f70ae77eb9edbd
Author: Michael Natterer <mitch gimp org>
Date: Sat Jun 30 14:27:48 2012 +0200
app: clean up last fix in GimpToolDialog
app/display/gimptooldialog.c | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/app/display/gimptooldialog.c b/app/display/gimptooldialog.c
index 6576fbb..3125608 100644
--- a/app/display/gimptooldialog.c
+++ b/app/display/gimptooldialog.c
@@ -48,6 +48,8 @@ struct _GimpToolDialogPrivate
GimpToolDialogPrivate)
+static void gimp_tool_dialog_dispose (GObject *object);
+
static void gimp_tool_dialog_shell_unmap (GimpDisplayShell *shell,
GimpToolDialog *dialog);
@@ -55,6 +57,21 @@ static void gimp_tool_dialog_shell_unmap (GimpDisplayShell *shell,
G_DEFINE_TYPE (GimpToolDialog, gimp_tool_dialog, GIMP_TYPE_VIEWABLE_DIALOG)
static void
+gimp_tool_dialog_class_init (GimpToolDialogClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->dispose = gimp_tool_dialog_dispose;
+
+ g_type_class_add_private (klass, sizeof (GimpToolDialogPrivate));
+}
+
+static void
+gimp_tool_dialog_init (GimpToolDialog *dialog)
+{
+}
+
+static void
gimp_tool_dialog_dispose (GObject *object)
{
GimpToolDialogPrivate *private = GET_PRIVATE (object);
@@ -69,19 +86,6 @@ gimp_tool_dialog_dispose (GObject *object)
G_OBJECT_CLASS (gimp_tool_dialog_parent_class)->dispose (object);
}
-static void
-gimp_tool_dialog_class_init (GimpToolDialogClass *klass)
-{
- G_OBJECT_CLASS (klass)->dispose = gimp_tool_dialog_dispose;
-
- g_type_class_add_private (klass, sizeof (GimpToolDialogPrivate));
-}
-
-static void
-gimp_tool_dialog_init (GimpToolDialog *dialog)
-{
-}
-
/**
* gimp_tool_dialog_new:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]