From 90710b285fcb24c3a6b7a6d78fd1746bcaff2256 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 18 Apr 2002 19:00:25 +0000 Subject: show the settings 2002-04-18 JP Rosevear * gui/e-day-view.c (e_day_view_on_settings): show the settings * gui/e-week-view.c (e_week_view_on_settings): ditto * gui/calendar-commands.c (control_util_show_settings): show the settings dialog * gui/calendar-commands.h: new proto * gui/control-factory.c (control_factory_new_control): set the control as object data on the calendar svn path=/trunk/; revision=16511 --- calendar/gui/calendar-commands.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'calendar/gui/calendar-commands.c') diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index dcd17fe8c7..30a1654f1b 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -471,6 +471,31 @@ control_util_set_folder_bar_label (BonoboControl *control, char *label) CORBA_exception_free (&ev); } +void +control_util_show_settings (GnomeCalendar *gcal) +{ + BonoboControl *control; + GNOME_Evolution_ShellView shell_view; + CORBA_Environment ev; + + control = gtk_object_get_data (GTK_OBJECT (gcal), "control"); + if (control == NULL) + return; + + shell_view = get_shell_view_interface (control); + if (shell_view == CORBA_OBJECT_NIL) + return; + + CORBA_exception_init (&ev); + + GNOME_Evolution_ShellView_showSettings (shell_view, &ev); + + if (BONOBO_EX (&ev)) + g_message ("control_util_show_settings(): Could not show settings"); + + CORBA_exception_free (&ev); +} + /* Sensitizes the UI Component menu/toolbar calendar commands based on the * number of selected events. (This will always be 0 or 1 currently.) If enable * is FALSE, all will be disabled. Otherwise, the currently-selected number of -- cgit v1.2.3