aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-04-19 03:00:25 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-04-19 03:00:25 +0800
commit90710b285fcb24c3a6b7a6d78fd1746bcaff2256 (patch)
tree84bb16e4c51763463d6640d6a1bd7a94f0a88c99 /calendar/gui/calendar-commands.c
parentbd6359c660895ea0765c216563957c3a2f44e112 (diff)
downloadgsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar
gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.gz
gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.bz2
gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.lz
gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.xz
gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.zst
gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.zip
show the settings
2002-04-18 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c25
1 files changed, 25 insertions, 0 deletions
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