display: Ensure we generate the UI initially on two output mode
We rely on visible-child-name notifications to generate the appropriate UI, unfortunately it doesn't happen for the first added stack page if the widget is already visible. Work around this by adding a dummy page first.
This commit is contained in:
parent
6c4eb9fc86
commit
337802315c
1 changed files with 3 additions and 0 deletions
|
@ -2016,6 +2016,9 @@ make_two_output_ui (CcDisplayPanel *panel)
|
||||||
|
|
||||||
stack = gtk_stack_new ();
|
stack = gtk_stack_new ();
|
||||||
gtk_container_add (GTK_CONTAINER (vbox), stack);
|
gtk_container_add (GTK_CONTAINER (vbox), stack);
|
||||||
|
/* Add a dummy first stack page so that setting the visible child
|
||||||
|
* below triggers a visible-child-name notification. */
|
||||||
|
gtk_stack_add_named (GTK_STACK (stack), make_bin (), "dummy");
|
||||||
|
|
||||||
add_two_output_page (switcher, stack, "join", _("Join Displays"),
|
add_two_output_page (switcher, stack, "join", _("Join Displays"),
|
||||||
"video-joined-displays-symbolic");
|
"video-joined-displays-symbolic");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue