aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/gui/dialogs/meeting-page.c13
2 files changed, 20 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b0d21ff24e..d3656bcbc8 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2001-07-17 Damon Chaplin <damon@ximian.com>
* gui/dialogs/e-timezone-dialog.c (e_timezone_dialog_destroy): destroy
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) {