[gnome-control-center/wip/gbsneto/list-layout: 4/17] window: add a horizontal box before the stack
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/list-layout: 4/17] window: add a horizontal box before the stack
- Date: Fri, 3 Jun 2016 15:14:07 +0000 (UTC)
commit 43cc72179d388af788911eb66df798554e5bc50b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun May 22 11:26:53 2016 -0300
window: add a horizontal box before the stack
The horizontal box will be used in the future commits
to separate the sidelist from the stack.
https://bugzilla.gnome.org/show_bug.cgi?id=766922
shell/alt/cc-window.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index c672f9c..d59269b 100644
--- a/shell/alt/cc-window.c
+++ b/shell/alt/cc-window.c
@@ -68,6 +68,7 @@ struct _CcWindow
GtkWidget *stack;
GtkWidget *header;
+ GtkWidget *main_hbox;
GtkWidget *main_vbox;
GtkWidget *scrolled_window;
GtkWidget *search_scrolled;
@@ -1528,10 +1529,13 @@ create_window (CcWindow *self)
self->search_bar, "search-mode-enabled",
G_BINDING_BIDIRECTIONAL);
+ self->main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_container_add (GTK_CONTAINER (box), self->main_hbox);
+
self->stack = gtk_stack_new ();
gtk_stack_set_homogeneous (GTK_STACK (self->stack), TRUE);
gtk_stack_set_transition_type (GTK_STACK (self->stack), GTK_STACK_TRANSITION_TYPE_CROSSFADE);
- gtk_box_pack_start (GTK_BOX (box), self->stack, TRUE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (self->main_hbox), self->stack, FALSE, FALSE, 0);
create_main_page (self);
create_search_page (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]