aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-12-07 02:31:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-07 02:31:44 +0800
commitabf50455e043e970747d96c4bcf547912f926203 (patch)
treeca36934f9677ec389901869318bd9b582ec2f987 /mail/mail-callbacks.c
parentccf1ad8012b0f20db29e92ead64df2878afa0830 (diff)
downloadgsoc2013-evolution-abf50455e043e970747d96c4bcf547912f926203.tar.gz
gsoc2013-evolution-abf50455e043e970747d96c4bcf547912f926203.tar.zst
gsoc2013-evolution-abf50455e043e970747d96c4bcf547912f926203.zip
Setup the UI for the AddSenderToAddressbook ui verb thingy.
2001-12-03 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Setup the UI for the AddSenderToAddressbook ui verb thingy. * mail-callbacks.c (add_sender_to_addrbook): New bonobo-ui callback that adds a sender to the addressbook. svn path=/trunk/; revision=14905
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 4a704b077d..ee30562111 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1399,16 +1399,16 @@ addrbook_sender (GtkWidget *widget, gpointer user_data)
return;
addr_str = camel_address_format (CAMEL_ADDRESS (addr));
-
+
win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (win), _("Sender"));
-
+
control = bonobo_widget_new_control ("OAFIID:GNOME_Evolution_Addressbook_AddressPopup",
CORBA_OBJECT_NIL);
bonobo_widget_set_property (BONOBO_WIDGET (control),
"email", addr_str,
NULL);
-
+
bonobo_event_source_client_add_listener (bonobo_widget_get_objref (BONOBO_WIDGET (control)),
popup_listener_cb, NULL, NULL, win);
@@ -1417,12 +1417,18 @@ addrbook_sender (GtkWidget *widget, gpointer user_data)
"destroy",
GTK_SIGNAL_FUNC (gtk_widget_destroy),
GTK_OBJECT (win));
-
+
gtk_container_add (GTK_CONTAINER (win), control);
gtk_widget_show_all (win);
}
void
+add_sender_to_addrbook (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ addrbook_sender (NULL, user_data);
+}
+
+void
apply_filters (GtkWidget *widget, gpointer user_data)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);