Skip to contentSkip to conversation

ui: Reorder vte terminal packing to avoid gtk3 warnings

PATCH New Jan Kiszka 1 participant 1 message Feb 17, 2018

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 ui: Reorder vte terminal packing to avoid gtk3 warnings

From: Jan Kiszka <[email protected]>

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?

---
 ui/gtk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/gtk.c +2 -2
index 1537751afa..81f729316b 100644
@@ -1945,8 +1945,8 @@ static GSList *gd_vc_vte_init(GtkDisplayState *s, VirtualConsole *vc,
     scrollbar = gtk_vscrollbar_new(vadjustment);
 #endif
 
-    gtk_box_pack_start(GTK_BOX(box), vc->vte.terminal, TRUE, TRUE, 0);
-    gtk_box_pack_start(GTK_BOX(box), scrollbar, FALSE, FALSE, 0);
+    gtk_box_pack_end(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.scrollbar = scrollbar;
Signature · 1 line
2.13.6