mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
ui: Reorder vte terminal packing to avoid gtk3 warnings
Fill the terminal box from right to left to avoid Gtk-WARNING **: Allocating size to GtkScrollbar 0x55f6d54b0200 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Message-id: 902aaef8-d20e-0530-dea2-cdfe3db33ff3@web.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e3af9f9a40
commit
63ad932567
4
ui/gtk.c
4
ui/gtk.c
@ -1952,8 +1952,8 @@ static GSList *gd_vc_vte_init(GtkDisplayState *s, VirtualConsole *vc,
|
|||||||
scrollbar = gtk_vscrollbar_new(vadjustment);
|
scrollbar = gtk_vscrollbar_new(vadjustment);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gtk_box_pack_start(GTK_BOX(box), vc->vte.terminal, TRUE, TRUE, 0);
|
gtk_box_pack_end(GTK_BOX(box), scrollbar, FALSE, FALSE, 0);
|
||||||
gtk_box_pack_start(GTK_BOX(box), scrollbar, FALSE, FALSE, 0);
|
gtk_box_pack_end(GTK_BOX(box), vc->vte.terminal, TRUE, TRUE, 0);
|
||||||
|
|
||||||
vc->vte.box = box;
|
vc->vte.box = box;
|
||||||
vc->vte.scrollbar = scrollbar;
|
vc->vte.scrollbar = scrollbar;
|
||||||
|
Loading…
Reference in New Issue
Block a user