[libadwaita/wip/exalm/tab-fixes: 3/5] tab: Don't resize when display width changes




commit f56b765585e4b1de79e9627a4815820b1e580766
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Dec 27 15:07:43 2021 +0500

    tab: Don't resize when display width changes
    
    It doesn't actually cause resizes and only emits warnings.
    
    See https://gitlab.gnome.org/GNOME/libadwaita/-/issues/352

 src/adw-tab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab.c b/src/adw-tab.c
index d135ce03..d797fdb7 100644
--- a/src/adw-tab.c
+++ b/src/adw-tab.c
@@ -950,7 +950,7 @@ adw_tab_set_display_width (AdwTab *self,
 
   self->display_width = width;
 
-  gtk_widget_queue_resize (GTK_WIDGET (self));
+  gtk_widget_queue_allocate (GTK_WIDGET (self));
 
   g_object_notify_by_pspec (G_OBJECT (self), props[PROP_DISPLAY_WIDTH]);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]