diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-03-20 01:11:25 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-04-07 19:08:42 +0800 |
commit | 4cc6bd4673115dff52a403d31e9613deea402d0e (patch) | |
tree | 42ab40645c59afc2e3221db4e04498c451578044 /modules/calendar/e-cal-shell-view.c | |
parent | a569d6d63b975b3734a73a9dd4ca7cebb8bf9f4a (diff) | |
download | gsoc2013-evolution-4cc6bd4673115dff52a403d31e9613deea402d0e.tar.gz gsoc2013-evolution-4cc6bd4673115dff52a403d31e9613deea402d0e.tar.zst gsoc2013-evolution-4cc6bd4673115dff52a403d31e9613deea402d0e.zip |
Redo Calendar for express mode. Just design/layout changes.
Diffstat (limited to 'modules/calendar/e-cal-shell-view.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c index cd44f37c56..5df2806cd2 100644 --- a/modules/calendar/e-cal-shell-view.c +++ b/modules/calendar/e-cal-shell-view.c @@ -303,6 +303,36 @@ cal_shell_view_update_actions (EShellView *shell_view) shell_window = e_shell_view_get_shell_window (shell_view); + if(e_shell_get_express_mode(e_shell_get_default())) { + GtkWidget *widget, *item; + GdkScreen *scr; + gint monitor; + GdkRectangle rect; + + /* Hack: Get rid of New and Send/Receive in toolbar + * while in express mode */ + widget = e_shell_window_get_managed_widget ( + shell_window, "/main-toolbar"); + + item = (GtkWidget *)gtk_toolbar_get_nth_item ((GtkToolbar *)widget, 0); + gtk_widget_hide(item); + + widget = e_shell_window_get_managed_widget ( + shell_window, "/main-menu"); + gtk_widget_hide(widget); + + item = e_shell_window_get_managed_widget ( + shell_window, "/main-toolbar/send-receive"); + gtk_widget_hide(item); + + scr = gdk_screen_get_default (); + monitor = gdk_screen_get_monitor_at_window (scr, GTK_WIDGET (shell_window)->window); + gdk_screen_get_monitor_geometry (scr, monitor, &rect); + + gtk_window_set_default_size ((GtkWindow *)shell_window, rect.width, rect.height); + gtk_window_set_decorated ((GtkWindow *)shell_window, FALSE); + + } cal_shell_content = priv->cal_shell_content; calendar = e_cal_shell_content_get_calendar (cal_shell_content); view_type = gnome_calendar_get_view (calendar); |