diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-10-20 23:15:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-10-20 23:15:41 +0800 |
commit | 7a6be11ea62647cba65625b2f65b944f22e65288 (patch) | |
tree | 8f41115a00c37265259b35df7c0a7c7d80736f61 /mail/em-subscription-editor.c | |
parent | 431d7188c500d2879b015a308513e7388be19b00 (diff) | |
download | gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.tar gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.tar.gz gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.tar.bz2 gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.tar.lz gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.tar.xz gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.tar.zst gsoc2013-evolution-7a6be11ea62647cba65625b2f65b944f22e65288.zip |
Miscellaeous cleanups.
Diffstat (limited to 'mail/em-subscription-editor.c')
-rw-r--r-- | mail/em-subscription-editor.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c index 88240e9c9d..e210652d37 100644 --- a/mail/em-subscription-editor.c +++ b/mail/em-subscription-editor.c @@ -1430,17 +1430,18 @@ subscription_editor_add_store (EMSubscriptionEditor *editor, static void emse_notebook_sensitive_changed_cb (GtkWidget *notebook, - GParamSpec *param, - GtkDialog *editor) + GParamSpec *param, + GtkDialog *editor) { - gtk_dialog_set_response_sensitive (editor, - GTK_RESPONSE_CLOSE, gtk_widget_get_sensitive (notebook)); + gtk_dialog_set_response_sensitive ( + editor, GTK_RESPONSE_CLOSE, + gtk_widget_get_sensitive (notebook)); } static gboolean subscription_editor_delete_event_cb (EMSubscriptionEditor *editor, - GdkEvent *event, - gpointer user_data) + GdkEvent *event, + gpointer user_data) { /* stop processing if the button is insensitive */ return !gtk_widget_get_sensitive (editor->priv->notebook); @@ -1448,8 +1449,8 @@ subscription_editor_delete_event_cb (EMSubscriptionEditor *editor, static void subscription_editor_response_cb (EMSubscriptionEditor *editor, - gint response_id, - gpointer user_data) + gint response_id, + gpointer user_data) { if (!gtk_widget_get_sensitive (editor->priv->notebook)) g_signal_stop_emission_by_name (editor, "response"); @@ -1801,7 +1802,8 @@ em_subscription_editor_init (EMSubscriptionEditor *editor) G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); - g_signal_connect (widget, "notify::sensitive", + g_signal_connect ( + widget, "notify::sensitive", G_CALLBACK (emse_notebook_sensitive_changed_cb), editor); widget = gtk_button_box_new (GTK_ORIENTATION_VERTICAL); |