[gimp] remove pointless delete-event handler
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] remove pointless delete-event handler
- Date: Tue, 29 Sep 2009 21:39:57 +0000 (UTC)
commit bc9602c4103f632e6d25aded41b5d8397526c398
Author: Sven Neumann <sven gimp org>
Date: Tue Sep 29 23:24:16 2009 +0200
remove pointless delete-event handler
app/widgets/gimpdockwindow.c | 2 +-
app/widgets/gimptoolbox.c | 12 ------------
2 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/app/widgets/gimpdockwindow.c b/app/widgets/gimpdockwindow.c
index ebebbd3..4455119 100644
--- a/app/widgets/gimpdockwindow.c
+++ b/app/widgets/gimpdockwindow.c
@@ -428,7 +428,7 @@ gimp_dock_window_delete_event (GtkWidget *widget,
/* Don't add docks with just a singe dockable to the list of
* recently closed dock since those can be brought back through the
* normal Windows->Dockable Dialogs menu
- */
+ */
if (gimp_dock_get_n_dockables (dock) < 2)
return FALSE;
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index 53e28e7..084d170 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -68,8 +68,6 @@ static GObject * gimp_toolbox_constructor (GType type,
guint n_params,
GObjectConstructParam *params);
-static gboolean gimp_toolbox_delete_event (GtkWidget *widget,
- GdkEventAny *event);
static void gimp_toolbox_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
static void gimp_toolbox_style_set (GtkWidget *widget,
@@ -147,7 +145,6 @@ gimp_toolbox_class_init (GimpToolboxClass *klass)
object_class->constructor = gimp_toolbox_constructor;
- widget_class->delete_event = gimp_toolbox_delete_event;
widget_class->size_allocate = gimp_toolbox_size_allocate;
widget_class->style_set = gimp_toolbox_style_set;
widget_class->button_press_event = gimp_toolbox_button_press_event;
@@ -313,15 +310,6 @@ gimp_toolbox_constructor (GType type,
return object;
}
-static gboolean
-gimp_toolbox_delete_event (GtkWidget *widget,
- GdkEventAny *event)
-{
- gimp_dialog_factory_hide_dialog (widget);
-
- return TRUE;
-}
-
static void
gimp_toolbox_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]