[gnome-games] Move the ExitFullscreen button to the far end of the toolbar



commit e946c9e14a51f2c30630633f18d8428af09b1b6b
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 11 14:28:44 2009 +0200

    Move the ExitFullscreen button to the far end of the toolbar
    
    Make the "Exit Fullscreen" button right-aligned by adding a no-draw
    expanding separator before it.
---
 aisleriot/window.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/aisleriot/window.c b/aisleriot/window.c
index 50142df..49bd3db 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1054,6 +1054,10 @@ set_fullscreen_actions (AisleriotWindow *window,
   g_object_set (priv->main_menu, "visible", !is_fullscreen, NULL);
 
   gtk_action_set_visible (priv->action[ACTION_LEAVE_FULLSCREEN], is_fullscreen);
+  g_object_set (gtk_ui_manager_get_widget (priv->ui_manager, "/Toolbar/LeaveFullscreenSep"),
+                "visible", is_fullscreen,
+                "draw", FALSE,
+                NULL);
 #endif
 
   gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (priv->action[ACTION_FULLSCREEN]),
@@ -2450,6 +2454,7 @@ aisleriot_window_init (AisleriotWindow *window)
         "<toolitem action='Deal'/>"
         "<toolitem action='Hint'/>"
 #ifndef HAVE_MAEMO
+        "<separator name='LeaveFullscreenSep' expand='true'/>"
         "<toolitem action='LeaveFullscreen'/>"
 #endif
 #ifdef ENABLE_DEBUG_UI



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]