[gnome-maps/wip/mlundblad/cleanup-gtk-deprecations: 5/8] sendToDialog: Stop using GtkContainer add method




commit 231012b00565132fb4c279d30416d0035a5a1ab4
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Mar 25 22:02:08 2021 +0100

    sendToDialog: Stop using GtkContainer add method
    
    In preparation for GTK 4 use class-specific methods
    to add and remove children when possible.

 src/sendToDialog.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/sendToDialog.js b/src/sendToDialog.js
index d7e278c8..10e2f298 100644
--- a/src/sendToDialog.js
+++ b/src/sendToDialog.js
@@ -149,7 +149,7 @@ var SendToDialog = GObject.registerClass({
             if (!app.should_show())
                 return;
 
-            this._list.add(new OpenWithRow({ appinfo: app }));
+            this._list.insert(new OpenWithRow({ appinfo: app }), -1);
         });
 
         /* Hide the list box if it is empty */


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