summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-04-30 23:15:58 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-04-30 23:15:58 +0000
commit4461f119849629f1ecca1003e78113d8cc3aa8fc (patch)
tree3e94257d3eaedb4c10176f0d2e703d471ed4693f
parentcdf1940aa5107ae317b8f3696e6bb0808f8c422f (diff)
Disconnect from toplevel configure events at finalize-time.vte_0_3_1
* src/vte.c: Disconnect from toplevel configure events at finalize-time.
-rw-r--r--ChangeLog4
-rw-r--r--src/vte.c11
-rw-r--r--vte.spec5
3 files changed, 18 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2bc1327..55b2c95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-04-30 nalin
+ * src/vte.c: Disconnect from toplevel window_configure events at
+ finalize-time.
+
2002-04-30 18:06 nalin
* src/vte.c: Track and free idle task tags properly. Change F11 and
F12 capabilities from 'k;' and 'F1' to 'F1' and 'F2'. Send a NUL on
diff --git a/src/vte.c b/src/vte.c
index 27a2ca6..126835e 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -3940,7 +3940,7 @@ vte_terminal_hierarchy_changed(GtkWidget *widget, GtkWidget *old_toplevel,
if (GTK_IS_WIDGET(old_toplevel)) {
g_signal_handlers_disconnect_by_func(G_OBJECT(old_toplevel),
vte_terminal_configure_toplevel,
- NULL);
+ terminal);
}
toplevel = gtk_widget_get_toplevel(widget);
@@ -5652,6 +5652,7 @@ static void
vte_terminal_finalize(GObject *object)
{
VteTerminal *terminal;
+ GtkWidget *toplevel;
GObjectClass *object_class;
GtkWidgetClass *widget_class;
@@ -5673,6 +5674,14 @@ vte_terminal_finalize(GObject *object)
g_source_remove(terminal->pvt->bg_transparent_update_tag);
}
+ /* Disconnect from toplevel window configure events. */
+ toplevel = gtk_widget_get_toplevel(GTK_WIDGET(object));
+ if ((toplevel != NULL) && (G_OBJECT(toplevel) != G_OBJECT(object))) {
+ g_signal_handlers_disconnect_by_func(toplevel,
+ vte_terminal_configure_toplevel,
+ terminal);
+ }
+
/* Free any selected text. */
if (terminal->pvt->selection != NULL) {
g_free(terminal->pvt->selection);
diff --git a/vte.spec b/vte.spec
index 7b60b18..9e662b0 100644
--- a/vte.spec
+++ b/vte.spec
@@ -1,5 +1,5 @@
Name: vte
-Version: 0.3
+Version: 0.3.1
Release: 1
Summary: An experimental terminal emulator.
License: LGPL
@@ -52,6 +52,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_libdir}/pkgconfig/*
%changelog
+* Tue Apr 30 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.1-1
+- disconnect from the configure_toplevel signal at finalize-time
+
* Tue Apr 30 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3-1
- add an accessiblity object