mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
docs: Improve the GtkStackSidebar gallery image
This commit is contained in:
parent
59e08c0dac
commit
291c61891a
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 5.2 KiB |
@ -1370,6 +1370,7 @@ create_sidebar (void)
|
|||||||
gtk_widget_add_css_class (view, "view");
|
gtk_widget_add_css_class (view, "view");
|
||||||
gtk_widget_set_halign (view, GTK_ALIGN_FILL);
|
gtk_widget_set_halign (view, GTK_ALIGN_FILL);
|
||||||
gtk_widget_set_valign (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");
|
gtk_stack_add_titled (GTK_STACK (stack), view, "page1", "Page 1");
|
||||||
view = gtk_text_view_new ();
|
view = gtk_text_view_new ();
|
||||||
gtk_stack_add_titled (GTK_STACK (stack), view, "page2", "Page 2");
|
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_box_append (GTK_BOX (hbox), stack);
|
||||||
gtk_frame_set_child (GTK_FRAME (frame), hbox);
|
gtk_frame_set_child (GTK_FRAME (frame), hbox);
|
||||||
|
|
||||||
return new_widget_info ("sidebar", frame, ASIS);
|
return new_widget_info ("sidebar", frame, MEDIUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
static WidgetInfo *
|
static WidgetInfo *
|
||||||
|
Loading…
Reference in New Issue
Block a user