[Glade-devel] [patch, glade3] remove glade_editor_on_delete
- From: pborelli katamail com (paolo borelli)
- Subject: [Glade-devel] [patch, glade3] remove glade_editor_on_delete
- Date: 22 Apr 2003 14:37:20 +0200
--=-tCJ1uK7awf5fTtciHAYc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi!
If I'm not wrong since the editor isn't a top level window anymore, the
delete event handler can go.
Patch below.
ciao
paolo
--=-tCJ1uK7awf5fTtciHAYc
Content-Disposition: attachment; filename=rm_editor_on_del.patch
Content-Type: text/x-patch; name=rm_editor_on_del.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
diff -upr gnome2/glade3/ChangeLog glade3/ChangeLog
--- gnome2/glade3/ChangeLog 2003-04-22 10:22:36.000000000 +0200
+++ glade3/ChangeLog 2003-04-22 13:02:29.000000000 +0200
@@ -1,3 +1,7 @@
+2003-04-22 Paolo Borelli <pborelli katamail com>
+
+ * src/glade-editor.c: remove glade_editor_hide_on_delete.
+
2003-04-21 Joaquin Cuenca Abela <e98cuenc yahoo com>
* src/glade-editor.c: fix a crash when you remove a item from a window.
diff -upr gnome2/glade3/src/glade-editor.c glade3/src/glade-editor.c
--- gnome2/glade3/src/glade-editor.c 2003-04-22 10:22:37.000000000 +0200
+++ glade3/src/glade-editor.c 2003-04-22 12:40:21.000000000 +0200
@@ -113,7 +113,6 @@ glade_editor_marshal_VOID__STRING_ULONG_
data2);
}
-
guint
glade_editor_get_type (void)
{
@@ -139,7 +138,6 @@ glade_editor_get_type (void)
return editor_type;
}
-
static void
glade_editor_class_init (GladeEditorClass * klass)
{
@@ -170,15 +168,6 @@ glade_editor_class_init (GladeEditorClas
klass->add_signal = NULL;
}
-static gint
-glade_editor_delete_event (GladeEditor *editor, gpointer not_used)
-{
- gtk_widget_hide (GTK_WIDGET (editor));
-
- /* Return true so that the editor is not destroyed */
- return TRUE;
-}
-
GtkWidget *
glade_editor_notebook_page (const gchar *name, GtkWidget *notebook)
{
@@ -215,10 +204,6 @@ glade_editor_init (GladeEditor *editor)
editor->vbox_signals = glade_editor_notebook_page (_("Signals"), GTK_WIDGET (editor));
editor->widget_tables = NULL;
editor->loading = FALSE;
-
- gtk_signal_connect (GTK_OBJECT (editor), "delete_event",
- GTK_SIGNAL_FUNC (glade_editor_delete_event), NULL);
-
}
GladeEditor *
--=-tCJ1uK7awf5fTtciHAYc--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]