[gtk/matthiasc/for-master] docs: Improve the GtkStackSidebar gallery image
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] docs: Improve the GtkStackSidebar gallery image
- Date: Mon, 26 Oct 2020 04:31:49 +0000 (UTC)
commit 291c61891aa93d086e6937c4d96aafa22dd5f6be
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 25 22:52:17 2020 -0400
docs: Improve the GtkStackSidebar gallery image
docs/reference/gtk/images/sidebar.png | Bin 4399 -> 5293 bytes
docs/tools/widgets.c | 3 ++-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/docs/reference/gtk/images/sidebar.png b/docs/reference/gtk/images/sidebar.png
index 366f7aab55..ae504af6fa 100644
Binary files a/docs/reference/gtk/images/sidebar.png and b/docs/reference/gtk/images/sidebar.png differ
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 5d83a0df79..7583272577 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -1370,6 +1370,7 @@ create_sidebar (void)
gtk_widget_add_css_class (view, "view");
gtk_widget_set_halign (view, GTK_ALIGN_FILL);
gtk_widget_set_valign (view, GTK_ALIGN_FILL);
+ gtk_widget_set_hexpand (view, TRUE);
gtk_stack_add_titled (GTK_STACK (stack), view, "page1", "Page 1");
view = gtk_text_view_new ();
gtk_stack_add_titled (GTK_STACK (stack), view, "page2", "Page 2");
@@ -1385,7 +1386,7 @@ create_sidebar (void)
gtk_box_append (GTK_BOX (hbox), stack);
gtk_frame_set_child (GTK_FRAME (frame), hbox);
- return new_widget_info ("sidebar", frame, ASIS);
+ return new_widget_info ("sidebar", frame, MEDIUM);
}
static WidgetInfo *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]