aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-07-17 13:02:35 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-07-17 13:02:35 +0800
commit9250eb770d4c1c0af90e7fde34072eaf8b39ddf1 (patch)
tree52f6ff0f0b15041d87cb4c75dbac87179173d989 /calendar/gui
parent6bb3bbdfff7383749d19a57cfe3162cd67aabf9b (diff)
downloadgsoc2013-evolution-9250eb770d4c1c0af90e7fde34072eaf8b39ddf1.tar.gz
gsoc2013-evolution-9250eb770d4c1c0af90e7fde34072eaf8b39ddf1.tar.zst
gsoc2013-evolution-9250eb770d4c1c0af90e7fde34072eaf8b39ddf1.zip
Print a g_message when the list of invited people changes in the
2001-07-17 Jon Trowbridge <trow@ximian.com> * gui/dialogs/meeting-page.c (invite_entry_changed): Print a g_message when the list of invited people changes in the SelectNames control. (add_section): #if 0/#endif out some (broken?) code. (get_select_name_dialog): Listen for changes in the SelectNames control. svn path=/trunk/; revision=11151
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/meeting-page.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c
index c4e05be8f5..3b7b9e72a9 100644
--- a/calendar/gui/dialogs/meeting-page.c
+++ b/calendar/gui/dialogs/meeting-page.c
@@ -119,11 +119,12 @@ struct _MeetingPagePrivate {
/* For handling who the organizer is */
gboolean other;
gboolean existing;
+ gboolean updating;
/* For handling the invite button */
- GNOME_Evolution_Addressbook_SelectNames corba_select_names;
+ GNOME_Evolution_Addressbook_SelectNames corba_select_names;
+
- gboolean updating;
};
@@ -514,6 +515,7 @@ invite_entry_changed (BonoboListener *listener,
CORBA_Environment *ev,
gpointer user_data)
{
+ g_message ("event: \"%s\", section \"%s\"", event_name, BONOBO_ARG_GET_STRING (arg));
}
static void
@@ -540,6 +542,7 @@ add_section (GNOME_Evolution_Addressbook_SelectNames corba_select_names, const c
CORBA_exception_free (&ev);
+#if 0
control_widget = bonobo_widget_new_control_from_objref (
corba_control, CORBA_OBJECT_NIL);
@@ -550,6 +553,7 @@ add_section (GNOME_Evolution_Addressbook_SelectNames corba_select_names, const c
pb, invite_entry_changed,
"Bonobo/Property:change:entry_changed",
NULL, NULL);
+#endif
}
static gboolean
@@ -571,6 +575,11 @@ get_select_name_dialog (MeetingPage *mpage)
add_section (priv->corba_select_names, "Optional Participants");
add_section (priv->corba_select_names, "Non-Participants");
+ bonobo_event_source_client_add_listener (priv->corba_select_names,
+ invite_entry_changed,
+ "GNOME/Evolution:changed",
+ NULL, NULL);
+
/* OAF seems to be broken -- it can return a CORBA_OBJECT_NIL without
raising an exception in `ev'. */
if (ev._major != CORBA_NO_EXCEPTION || priv->corba_select_names == CORBA_OBJECT_NIL) {