diff options
author | Milan Crha <mcrha@redhat.com> | 2010-02-11 21:09:45 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-02-11 21:09:45 +0800 |
commit | eaa177297a9374dc879a0015d6a205cc0bda6b29 (patch) | |
tree | 0577615c7d529f41af2003d38a215a62946f92b4 /mail | |
parent | 4dbd42ed5001401cb79917b6f49be0af81ccc28d (diff) | |
download | gsoc2013-evolution-eaa177297a9374dc879a0015d6a205cc0bda6b29.tar.gz gsoc2013-evolution-eaa177297a9374dc879a0015d6a205cc0bda6b29.tar.zst gsoc2013-evolution-eaa177297a9374dc879a0015d6a205cc0bda6b29.zip |
Bug #609638 - Empty warning message on New vFolder
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-vfolder.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index d418ec7d99..8999a1dd15 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -1230,6 +1230,15 @@ new_rule_clicked(GtkWidget *w, gint button, gpointer data) gtk_widget_destroy(w); } +static void +new_rule_changed_cb (EFilterRule *rule, GtkDialog *dialog) +{ + g_return_if_fail (rule != NULL); + g_return_if_fail (dialog != NULL); + + gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, rule->parts != NULL); +} + EFilterPart * vfolder_create_part(const gchar *name) { @@ -1278,6 +1287,8 @@ vfolder_gui_add_rule(EMVFolderRule *rule) gtk_box_pack_start((GtkBox *)gd->vbox, w, TRUE, TRUE, 0); gtk_widget_show((GtkWidget *)gd); g_object_set_data_full(G_OBJECT(gd), "rule", rule, (GDestroyNotify)g_object_unref); + g_signal_connect(rule, "changed", G_CALLBACK (new_rule_changed_cb), gd); + new_rule_changed_cb ((EFilterRule*)rule, gd); g_signal_connect(gd, "response", G_CALLBACK(new_rule_clicked), NULL); gtk_widget_show((GtkWidget *)gd); } |