From 28d91fc5baa0120da19eb59513c9118898ee2396 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 13 Dec 2003 21:37:42 +0000 Subject: Use g_signal_connect_object so the signal isn't emitted for a dead 2003-12-13 Christian Persch * lib/widgets/ephy-spinner.c: (ephy_spinner_init): Use g_signal_connect_object so the signal isn't emitted for a dead spinner. --- ChangeLog | 7 +++++++ lib/widgets/ephy-spinner.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d3302aa8..f12fd94f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-12-13 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_init): + + Use g_signal_connect_object so the signal isn't emitted for a dead + spinner. + 2003-12-13 Marco Pesenti Gritti * src/ephy-tab.c: (update_net_state_message), diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 2e3b17327..23678d150 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -175,10 +175,10 @@ ephy_spinner_init (EphySpinner *spinner) spinner->details->delay = spinner_DEFAULT_TIMEOUT; /* FIXME: icon theme is per-screen, not global */ spinner->details->icon_theme = gtk_icon_theme_get_default (); - g_signal_connect (spinner->details->icon_theme, - "changed", - G_CALLBACK (ephy_spinner_theme_changed), - spinner); + g_signal_connect_object (spinner->details->icon_theme, + "changed", + G_CALLBACK (ephy_spinner_theme_changed), + spinner, 0); spinner->details->quiescent_pixbuf = NULL; spinner->details->image_list = NULL; -- cgit v1.2.3