[gnome-games/wip/exalm/lists: 5/5] preferences-pages-controllers: Stop using Gtk.Box.pack_start()



commit 1952bc5c69a7281c457ad11cc6a818da0df4f06c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jan 15 02:03:09 2020 +0500

    preferences-pages-controllers: Stop using Gtk.Box.pack_start()
    
    Just use Gtk.Container.add() instead.

 src/ui/preferences-page-controllers.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/preferences-page-controllers.vala b/src/ui/preferences-page-controllers.vala
index 7c38f7a8..90bd3ee8 100644
--- a/src/ui/preferences-page-controllers.vala
+++ b/src/ui/preferences-page-controllers.vala
@@ -34,7 +34,7 @@ private class Games.PreferencesPageControllers : PreferencesPage {
                while (iterator.next (out device)) {
                        i += 1;
                        var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
-                       box.pack_start (new Gtk.Label (device.get_name ()), false, false);
+                       box.add (new Gtk.Label (device.get_name ()));
                        box.margin = 10;
                        box.show_all ();
                        gamepads_list_box.add (box);
@@ -70,7 +70,7 @@ private class Games.PreferencesPageControllers : PreferencesPage {
 
        private void build_keyboard_list () {
                var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
-               box.pack_start (new Gtk.Label (_("Keyboard")), false, false);
+               box.add (new Gtk.Label (_("Keyboard")));
                box.margin = 10;
                box.show_all ();
                keyboard_list_box.add (box);


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