[totem] main: Fix initial window size
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix initial window size
- Date: Tue, 9 Apr 2013 15:12:58 +0000 (UTC)
commit b87e3f70a1949b500122ea488192a8c7c3d8516b
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
src/totem-object.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index bc95794..d3d145e 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1062,6 +1062,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);
@@ -1075,10 +1078,8 @@ totem_object_action_exit (TotemObject *totem)
totem_session_save (totem);
- if (totem->bvw) {
- totem_action_save_size (totem);
+ if (totem->bvw)
bacon_video_widget_close (totem->bvw);
- }
totem_action_save_state (totem, page_id);
g_free (page_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]