[totem/gnome-3-8] main: Fix initial window size



commit a75b11a15ad9dcdda2034e8d6e05a2f016921910
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Apr 8 11:42:30 2013 +0200

    main: Fix initial window size
    
    We weren't saving the window size before it got unmapped, thus
    causing a problem due to a regression in GTK+.
    See https://bugzilla.gnome.org/show_bug.cgi?id=696882
    
    Conflicts:
        src/totem-object.c

 src/totem-object.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 7079350..6b5b435 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1095,6 +1095,9 @@ totem_object_action_exit (TotemObject *totem)
        if (totem == NULL)
                exit (0);
 
+       if (totem->bvw)
+               totem_action_save_size (totem);
+
        if (totem->win != NULL) {
                gtk_widget_hide (totem->win);
                display = gtk_widget_get_display (totem->win);
@@ -1107,7 +1110,6 @@ totem_object_action_exit (TotemObject *totem)
                gdk_display_sync (display);
 
        if (totem->bvw) {
-               totem_action_save_size (totem);
                totem_save_position (totem);
                bacon_video_widget_close (totem->bvw);
        }


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