[gnome-control-center] shell: Don't use workarea height
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Don't use workarea height
- Date: Mon, 21 May 2012 17:10:20 +0000 (UTC)
commit a112361267f6b13216937fce56c23303054b990e
Author: Bastien Nocera <hadess hadess net>
Date: Mon May 21 14:23:00 2012 +0100
shell: Don't use workarea height
Instead of monitor height to check for the available height, as
the workarea height won't have been updated fast enough after
a monitors-changed signal.
https://bugzilla.gnome.org/show_bug.cgi?id=673869#c47
shell/gnome-control-center.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index d2596c6..6be70c0 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1151,7 +1151,8 @@ get_monitor_height (GnomeControlCenter *self)
GdkScreen *screen;
GdkRectangle rect;
- /* FIXME use workarea instead of raw screen geometry */
+ /* We cannot use workarea here, as this wouldn't
+ * be updated when we read it after a monitors-changed signal */
screen = gtk_widget_get_screen (self->priv->window);
gdk_screen_get_monitor_geometry (screen, self->priv->monitor_num, &rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]