diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-04-15 03:56:30 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-04-15 03:56:30 +0800 |
commit | 9b90e087b0c216cbc802663f4c8dc06068f235bb (patch) | |
tree | b69b0a70c0ec273bcddf1a08854f1cbbb1c4cab5 /shell/e-shell-view.c | |
parent | 46cf8be3f3bb9f2287f60f847873288d91b7abeb (diff) | |
download | gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.tar gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.tar.gz gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.tar.bz2 gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.tar.lz gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.tar.xz gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.tar.zst gsoc2013-evolution-9b90e087b0c216cbc802663f4c8dc06068f235bb.zip |
add a close-window action that doesn't become insensitive on the last window.
Use this in meego / full-screen mode
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 6cae11cb03..77215e73a2 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -659,6 +659,20 @@ shell_view_construct_searchbar (EShellView *shell_view) gtk_toolbar_insert (GTK_TOOLBAR (main_toolbar), item, -1); + if (e_shell_get_small_screen_mode (shell)) { + GtkWidget *image; + GtkAction *action; + GtkToolItem *item; + + action = e_shell_window_get_action (shell_window, "close-window"); + image = gtk_image_new_from_icon_name ("window-close-hover", + GTK_ICON_SIZE_DIALOG); + item = gtk_tool_button_new (image, gtk_action_get_label (action)); + gtk_widget_set_name (GTK_WIDGET (item), "MeeGoCloseButton"); + gtk_activatable_set_related_action (GTK_ACTIVATABLE (item), action); + gtk_toolbar_insert (GTK_TOOLBAR (main_toolbar), item, -1); + } + return widget; } |