aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-23 07:31:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-23 07:31:44 +0800
commit639d835ec0007d506988b973bf349f544adc5d7e (patch)
tree702643aec6b56c5338b3251c8c8161ff0d03073d /mail/mail-callbacks.c
parentbcfe4d37c2b66b657be0126005de1b3b2157885e (diff)
downloadgsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.gz
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.bz2
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.lz
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.xz
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.zst
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.zip
New callback to handle a double-click event in the account clist.
2001-03-22 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_double_click): New callback to handle a double-click event in the account clist. (construct): Setup the double-click event for the account list. svn path=/trunk/; revision=8908
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index dbaa80a822..9ee434d16c 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1199,21 +1199,21 @@ expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-filter_druid_clicked (GtkWidget *w, int button, FolderBrowser *fb)
+filter_druid_clicked (GtkWidget *dialog, int button, FolderBrowser *fb)
{
FilterContext *fc;
if (button == 0) {
char *user;
- fc = gtk_object_get_data (GTK_OBJECT (w), "context");
+ fc = gtk_object_get_data (GTK_OBJECT (dialog), "context");
user = g_strdup_printf ("%s/filters.xml", evolution_dir);
rule_context_save ((RuleContext *)fc, user);
g_free (user);
}
if (button != -1) {
- gnome_dialog_close (GNOME_DIALOG (w));
+ gnome_dialog_close (GNOME_DIALOG (dialog));
}
}
@@ -1229,7 +1229,7 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path)
FolderBrowser *fb = FOLDER_BROWSER (user_data);
FilterContext *fc;
char *user, *system;
- GtkWidget *w;
+ GtkWidget *dialog;
fc = filter_context_new ();
user = g_strdup_printf ("%s/filters.xml", evolution_dir);
@@ -1239,7 +1239,6 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path)
g_free (system);
if (((RuleContext *)fc)->error) {
- GtkWidget *dialog;
gchar *err;
err = g_strdup_printf (_("Error loading filter information:\n%s"),
@@ -1251,10 +1250,10 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path)
return;
}
- w = (GtkWidget *)filter_editor_new(fc, filter_source_names);
- gtk_object_set_data_full (GTK_OBJECT (w), "context", fc, (GtkDestroyNotify)gtk_object_unref);
- gtk_signal_connect (GTK_OBJECT (w), "clicked", filter_druid_clicked, fb);
- gtk_widget_show (GTK_WIDGET (w));
+ dialog = (GtkWidget *)filter_editor_new (fc, filter_source_names);
+ gtk_object_set_data_full (GTK_OBJECT (dialog), "context", fc, (GtkDestroyNotify)gtk_object_unref);
+ gtk_signal_connect (GTK_OBJECT (dialog), "clicked", filter_druid_clicked, fb);
+ gtk_widget_show (GTK_WIDGET (dialog));
}
void