[gnome-robots/arnaudb/wip/gtk4: 34/36] Adapt to ScrolledWindow API.




commit f7dbef5c6dc84de61f2bea42574dd887a50d8d63
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Sep 15 15:55:21 2020 +0200

    Adapt to ScrolledWindow API.

 src/games-controls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/games-controls.c b/src/games-controls.c
index 4f5296b..4909033 100644
--- a/src/games-controls.c
+++ b/src/games-controls.c
@@ -184,7 +184,7 @@ games_controls_list_constructor (GType type,
   layout = gtk_bin_layout_new ();
   gtk_widget_set_layout_manager (GTK_WIDGET (list), layout);
 
-  scrolled_window = gtk_scrolled_window_new (/* create hadjustment */ NULL, /* create vadjustment */ NULL);
+  scrolled_window = gtk_scrolled_window_new ();
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), /* hscrollbar-policy */ 
GTK_POLICY_NEVER,
                                                                          /* vscrollbar-policy */ 
GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_has_frame (GTK_SCROLLED_WINDOW (scrolled_window), TRUE);


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