forked from AuroraMiddleware/gtk
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_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 *
|
||||
|
Loading…
Reference in New Issue
Block a user