[gimp/soc-2009-dynamics] Move dialog destruction to a utility function
- From: Alexia Death <alexiade src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp/soc-2009-dynamics] Move dialog destruction to a utility function
- Date: Sun, 12 Jul 2009 16:29:32 +0000 (UTC)
commit 53bdcab4d8a4c2966d7cb887651ecf36522d42e3
Author: Michael Natterer <mitch gimp org>
Date: Sun Jul 12 16:45:18 2009 +0200
Move dialog destruction to a utility function
app/tools/gimpimagemaptool.c | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/app/tools/gimpimagemaptool.c b/app/tools/gimpimagemaptool.c
index 1cfbfbf..a681fc2 100644
--- a/app/tools/gimpimagemaptool.c
+++ b/app/tools/gimpimagemaptool.c
@@ -99,6 +99,8 @@ static void gimp_image_map_tool_response (GtkWidget *widget,
gint response_id,
GimpImageMapTool *im_tool);
+static void gimp_image_map_tool_dialog_destroy (GimpImageMapTool *im_tool);
+
static void gimp_image_map_tool_notify_preview (GObject *config,
GParamSpec *pspec,
GimpImageMapTool *im_tool);
@@ -248,13 +250,7 @@ gimp_image_map_tool_finalize (GObject *object)
}
if (image_map_tool->shell)
- {
- gtk_widget_destroy (image_map_tool->shell);
- image_map_tool->shell = NULL;
- image_map_tool->main_vbox = NULL;
- image_map_tool->settings_box = NULL;
- image_map_tool->label_group = NULL;
- }
+ gimp_image_map_tool_dialog_destroy (image_map_tool);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
@@ -596,6 +592,16 @@ gimp_image_map_tool_response (GtkWidget *widget,
}
static void
+gimp_image_map_tool_dialog_destroy (GimpImageMapTool *image_map_tool)
+{
+ gtk_widget_destroy (image_map_tool->shell);
+ image_map_tool->shell = NULL;
+ image_map_tool->main_vbox = NULL;
+ image_map_tool->settings_box = NULL;
+ image_map_tool->label_group = NULL;
+}
+
+static void
gimp_image_map_tool_notify_preview (GObject *config,
GParamSpec *pspec,
GimpImageMapTool *image_map_tool)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]