[gbrainy] Remove code no longer need. Fixes compilation for gtk-sharp3-3.22 from https://github.com/GLibSharp/



commit a666287229dc3b0096ac18e7c753b53e4b85c102
Author: Jordi Mas <jmas softcatala org>
Date:   Thu Aug 25 10:42:18 2022 +0200

    Remove code no longer need. Fixes compilation for gtk-sharp3-3.22 from 
https://github.com/GLibSharp/GtkSharp

 src/Clients/Classical/Widgets/BrowseFile.cs | 4 ----
 src/Clients/Classical/Widgets/Toolbar.cs    | 5 -----
 2 files changed, 9 deletions(-)
---
diff --git a/src/Clients/Classical/Widgets/BrowseFile.cs b/src/Clients/Classical/Widgets/BrowseFile.cs
index 59c7394f..e0361fb0 100644
--- a/src/Clients/Classical/Widgets/BrowseFile.cs
+++ b/src/Clients/Classical/Widgets/BrowseFile.cs
@@ -45,10 +45,6 @@ namespace gbrainy.Clients.Classical.Widgets
                        parent.Add (filename);
                        parent.Add (browse);
 
-                       Gtk.Box.BoxChild box = (Gtk.Box.BoxChild) parent[browse];
-                       box.Expand = false;
-                       box.Fill = false;
-
                        parent.ShowAll ();
                }
 
diff --git a/src/Clients/Classical/Widgets/Toolbar.cs b/src/Clients/Classical/Widgets/Toolbar.cs
index 8a6c2d46..108d6123 100644
--- a/src/Clients/Classical/Widgets/Toolbar.cs
+++ b/src/Clients/Classical/Widgets/Toolbar.cs
@@ -46,7 +46,6 @@ namespace gbrainy.Clients.Classical.Widgets
 
                public void Attach (Gtk.Orientation orientation_new)
                {
-                       Gtk.Box.BoxChild child = null;
                        Box box;
 
                        switch (Orientation) {
@@ -80,19 +79,15 @@ namespace gbrainy.Clients.Classical.Widgets
                        case Gtk.Orientation.Vertical:
                                main_hbox.Add (this);
                                main_hbox.ReorderChild (this, 0);
-                               child = ((Gtk.Box.BoxChild)(main_hbox[this]));
                                break;
                        case Gtk.Orientation.Horizontal:
                                framework_vbox.Add (this);
                                framework_vbox.ReorderChild (this, 1);
-                               child = ((Gtk.Box.BoxChild)(framework_vbox[this]));
                                break;
                        default:
                                throw new InvalidOperationException ();
                        }
 
-                       child.Expand = false;
-                       child.Fill = false;
                        ShowAll ();
                        InitCompleted = true;
                }


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