ui/gtk/text.c

changeset 962
7016bcb8d38b
parent 907
d54a72c94320
child 965
5d4419042d9b
--- a/ui/gtk/text.c	Sun Dec 07 12:02:58 2025 +0100
+++ b/ui/gtk/text.c	Sun Dec 07 12:09:04 2025 +0100
@@ -144,17 +144,7 @@
             GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS  
     SCROLLEDWINDOW_SET_CHILD(scroll_area, text_area);
     
-    if(args->width > 0 || args->height > 0) {
-        int width = args->width;
-        int height = args->height;
-        if(width == 0) {
-            width = -1;
-        }
-        if(height == 0) {
-            height = -1;
-        }
-        gtk_widget_set_size_request(scroll_area, width, height);
-    }
+    ui_widget_size_request(scroll_area, args->width, args->height);
     
     // font and padding
     //PangoFontDescription *font;

mercurial