diff options
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); |