aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-25 21:00:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-09-01 20:06:32 +0800
commitd89e767a1cde7b3349182e713085241e58a30fe8 (patch)
tree2c054ebfdc252d71a774b6be11fdaa2a5ee64494 /widgets
parentcaff4060d5542aec79b8e27d0a35f8097c5fdfc0 (diff)
downloadgsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.gz
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.bz2
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.lz
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.xz
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.zst
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-source-config.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/widgets/misc/e-source-config.c b/widgets/misc/e-source-config.c
index 16c3c05f64..8e37836cc9 100644
--- a/widgets/misc/e-source-config.c
+++ b/widgets/misc/e-source-config.c
@@ -56,6 +56,7 @@ struct _Candidate {
GtkWidget *page;
ESource *scratch_source;
ESourceConfigBackend *backend;
+ gulong changed_handler_id;
};
enum {
@@ -178,6 +179,7 @@ source_config_add_candidate (ESourceConfig *config,
ESourceRegistry *registry;
const gchar *display_name;
const gchar *parent_uid;
+ gulong handler_id;
backend_box = GTK_BOX (config->priv->backend_box);
type_label = GTK_LABEL (config->priv->type_label);
@@ -217,10 +219,12 @@ source_config_add_candidate (ESourceConfig *config,
e_source_config_backend_insert_widgets (
candidate->backend, candidate->scratch_source);
- g_signal_connect_swapped (
+ handler_id = g_signal_connect_swapped (
candidate->scratch_source, "changed",
G_CALLBACK (e_source_config_check_complete), config);
+ candidate->changed_handler_id = handler_id;
+
/* Trigger the "changed" handler we just connected to set the
* initial "complete" state based on the widgets we just added. */
e_source_changed (candidate->scratch_source);
@@ -231,9 +235,9 @@ source_config_add_candidate (ESourceConfig *config,
static void
source_config_free_candidate (Candidate *candidate)
{
- g_signal_handlers_disconnect_matched (
- candidate->scratch_source, G_SIGNAL_MATCH_FUNC,
- 0, 0, NULL, G_CALLBACK (e_source_config_check_complete), NULL);
+ g_signal_handler_disconnect (
+ candidate->scratch_source,
+ candidate->changed_handler_id);
g_object_unref (candidate->page);
g_object_unref (candidate->scratch_source);