[gnome-control-center] shell: Reset "small_screen_set" when we use a big screen
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Reset "small_screen_set" when we use a big screen
- Date: Tue, 8 May 2012 17:51:29 +0000 (UTC)
commit 3e5f488160ff2ba72d6871a8b9848fb1206da3c8
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 8 18:46:22 2012 +0100
shell: Reset "small_screen_set" when we use a big screen
Otherwise we wouldn't maximise the screen again.
shell/gnome-control-center.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 412a20e..3507915 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1167,8 +1167,10 @@ update_small_screen_settings (GnomeControlCenter *self)
gtk_widget_set_size_request (self->priv->scrolled_window, FIXED_WIDTH, SMALL_SCREEN_FIXED_HEIGHT);
if (!self->priv->small_screen_set
- && self->priv->small_screen != small)
+ && self->priv->small_screen != small) {
gtk_window_maximize (GTK_WINDOW (self->priv->window));
+ self->priv->small_screen_set = TRUE;
+ }
}
else
{
@@ -1177,10 +1179,10 @@ update_small_screen_settings (GnomeControlCenter *self)
gtk_window_unmaximize (GTK_WINDOW (self->priv->window));
gtk_window_set_resizable (GTK_WINDOW (self->priv->window), FALSE);
+ self->priv->small_screen_set = FALSE;
}
self->priv->small_screen = small;
- self->priv->small_screen_set = TRUE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]