|
[totem] Use signal blocking, rather than disconnecting: msg#08186svn-commits-list
commit 7bf506ef9cb3a370423640f0692a72be5d621d42 Author: Bastien Nocera <hadess@xxxxxxxxxx> Date: Fri Jul 31 19:03:52 2009 +0100 Use signal blocking, rather than disconnecting src/totem-preferences.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) --- diff --git a/src/totem-preferences.c b/src/totem-preferences.c index f05e695..b39a7cc 100644 --- a/src/totem-preferences.c +++ b/src/totem-preferences.c @@ -237,15 +237,15 @@ remember_position_changed_cb (GConfClient *client, guint cnxn_id, GObject *item; item = gtk_builder_get_object (totem->xml, "tpw_remember_position_checkbutton"); - g_signal_handlers_disconnect_by_func (item, - remember_position_checkbutton_toggled_cb, totem); + g_signal_handlers_block_by_func (item, remember_position_checkbutton_toggled_cb, + totem); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (item), - gconf_client_get_bool (totem->gc, - GCONF_PREFIX"/remember_position", NULL)); + gconf_client_get_bool (totem->gc, + GCONF_PREFIX"/remember_position", NULL)); - g_signal_connect (item, "toggled", - G_CALLBACK (remember_position_checkbutton_toggled_cb), totem); + g_signal_handlers_unblock_by_func (item, remember_position_checkbutton_toggled_cb, + totem); } static void _______________________________________________ SVN-commits-list mailing list (read only) http://mail.gnome.org/mailman/listinfo/svn-commits-list Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want.
|
|
||||||||||||||||||||||||||
| News | Mail Home | sitemap | FAQ | advertise |