From 6ca5ab655eb56cab1cbffee98c3edb4da55e11be Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 3 Oct 2000 03:28:11 +0000 Subject: add a storage-set-view-listener, and add a little printf saying what 2000-10-02 Chris Toshok * subscribe-dialog.c, subscribe-dialog.h: add a storage-set-view-listener, and add a little printf saying what storage was selected. svn path=/trunk/; revision=5688 --- mail/subscribe-dialog.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'mail/subscribe-dialog.c') diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c index 4ef20c4729..496a9f4c1d 100644 --- a/mail/subscribe-dialog.c +++ b/mail/subscribe-dialog.c @@ -377,6 +377,15 @@ etree_is_editable (ETreeModel *etree, ETreePath *path, int col, void *model_data +static void +storage_selected_cb (EvolutionStorageSetViewListener *listener, + const char *uri) +{ + printf ("user selected storage '%s'\n", uri); +} + + + #define EXAMPLE_DESCR "And the beast shall come forth surrounded by a roiling cloud of vengeance.\n" \ " The house of the unbelievers shall be razed and they shall be scorched to the\n" \ " earth. Their tags shall blink until the end of days. \n" \ @@ -438,6 +447,18 @@ subscribe_dialog_gui_init (SubscribeDialog *sc) sc->storage_set_view_widget = bonobo_widget_new_control_from_objref (sc->storage_set_control, container); + + /* we also want a listener so we can tell when storages are selected */ + sc->listener = evolution_storage_set_view_listener_new (); + + gtk_signal_connect (GTK_OBJECT(sc->listener), + "storage_selected", + storage_selected_cb, sc); + + Evolution_StorageSetView_add_listener (sc->storage_set_view, + evolution_storage_set_view_listener_corba_objref (sc->listener), + &ev); + sc->table = gtk_table_new (1, 2, FALSE); sc->hpaned = e_hpaned_new (); -- cgit v1.2.3