[gedit] fullscreen: Fix incorrect positioning of fullscreen toolbar



commit 10db323f0224538c98882775ea102584d41a50d5
Author: Plamena Manolova <plamena n manolova intel com>
Date:   Mon May 13 17:32:42 2013 +0100

    fullscreen: Fix incorrect positioning of fullscreen toolbar
    
    A quarter of taskbar's Gedit application used to remain on screen
    in case fullscreen option is used for the first time
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700303

 gedit/gedit-window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 1e95f8a..77e4cbb 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2716,6 +2716,7 @@ fullscreen_controls_show (GeditWindow *window)
                                                                           gtk_widget_get_window (GTK_WIDGET 
(window))),
                                         &fs_rect);
 
+       gtk_widget_show_all (window->priv->fullscreen_controls);
        gtk_window_get_size (GTK_WINDOW (window->priv->fullscreen_controls), &w, &h);
 
        gtk_window_resize (GTK_WINDOW (window->priv->fullscreen_controls),
@@ -2723,8 +2724,6 @@ fullscreen_controls_show (GeditWindow *window)
 
        gtk_window_move (GTK_WINDOW (window->priv->fullscreen_controls),
                         fs_rect.x, fs_rect.y - h + 1);
-
-       gtk_widget_show_all (window->priv->fullscreen_controls);
 }
 
 static gboolean


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