[gnome-control-center] shell: Avoid whitespace at the bottom in small mode
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Avoid whitespace at the bottom in small mode
- Date: Tue, 1 Mar 2016 15:20:01 +0000 (UTC)
commit 22e463a4ce8cb95c3351362f8bb220a124e61722
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 1 16:15:41 2016 +0100
shell: Avoid whitespace at the bottom in small mode
When using the small mode, and the scroll window's content
height is smaller than the screen, we'd end up with whitespace at the
bottom of the panel, as the panel's height is smaller than the window.
shell/cc-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index ce2061a..7c85f5c 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -163,7 +163,8 @@ activate_panel (CcWindow *self,
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (box), priv->current_panel);
+ gtk_box_pack_start (GTK_BOX (box), priv->current_panel,
+ TRUE, TRUE, 0);
gtk_stack_add_named (GTK_STACK (priv->stack), box, id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]