add a storage-set-view-listener, and add a little printf saying what
2000-10-02 Chris Toshok <toshok@helixcode.com> * 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
This commit is contained in:
committed by
Chris Toshok
parent
86279dfe50
commit
6ca5ab655e
@ -1,3 +1,9 @@
|
||||
2000-10-02 Chris Toshok <toshok@helixcode.com>
|
||||
|
||||
* subscribe-dialog.c, subscribe-dialog.h: add a
|
||||
storage-set-view-listener, and add a little printf saying what
|
||||
storage was selected.
|
||||
|
||||
2000-10-02 Chris Toshok <toshok@helixcode.com>
|
||||
|
||||
* subscribe-dialog.c (subscribe_dialog_gui_init): get
|
||||
|
||||
@ -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 ();
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#include <bonobo/bonobo-ui-compat.h>
|
||||
#include <bonobo/bonobo-property-bag.h>
|
||||
#include "shell/Evolution.h"
|
||||
|
||||
#include "shell/evolution-storage-set-view-listener.h"
|
||||
|
||||
#define SUBSCRIBE_DIALOG_TYPE (subscribe_dialog_get_type ())
|
||||
#define SUBSCRIBE_DIALOG(o) (GTK_CHECK_CAST ((o), SUBSCRIBE_DIALOG_TYPE, SubscribeDialog))
|
||||
@ -25,7 +25,8 @@ struct _SubscribeDialog {
|
||||
Evolution_Shell shell;
|
||||
Bonobo_Control storage_set_control;
|
||||
Evolution_StorageSetView storage_set_view;
|
||||
|
||||
EvolutionStorageSetViewListener *listener;
|
||||
|
||||
BonoboUIHandler *uih;
|
||||
|
||||
GtkWidget *app;
|
||||
|
||||
Reference in New Issue
Block a user