[totem] Fix window height when showing controls again
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Fix window height when showing controls again
- Date: Tue, 27 Apr 2010 16:35:05 +0000 (UTC)
commit 331f2a7abbe040585d613f0ac13762d1359f70cc
Author: Sean Neakums <sneakums ondioline org>
Date: Tue Apr 27 17:26:12 2010 +0100
Fix window height when showing controls again
Fix regression due to commit eb74e996
When hiding and then showing the controls again with the 'H'
hotkey, the window height will be huge, because the wrong
allocation was used to calculate the new window height.
https://bugzilla.gnome.org/show_bug.cgi?id=614514
src/totem-object.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 74aa06f..4d92149 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -2896,9 +2896,9 @@ show_controls (Totem *totem, gboolean was_fullscreen)
gtk_widget_get_allocation (menubar, &allocation_menubar);
gtk_widget_get_allocation (controlbar, &allocation_controlbar);
gtk_widget_get_allocation (statusbar, &allocation_statusbar);
- height += allocation.height
- + allocation.height
- + allocation.height
+ height += allocation_menubar.height
+ + allocation_controls.height
+ + allocation_statusbar.height
+ 2 * BVW_VBOX_BORDER_WIDTH;
width += 2 * BVW_VBOX_BORDER_WIDTH;
gtk_window_resize (GTK_WINDOW(totem->win),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]