Skip to content

Commit

Permalink
MainView: can't subclass paned
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Dec 29, 2023
1 parent 7899430 commit 9283193
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/Views/MainView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
* SPDX-FileCopyrightText: 2014-2023 elementary, Inc. (https://elementary.io)
*/

public class SwitchboardPlugUserAccounts.Widgets.MainView : Gtk.Paned {
public class SwitchboardPlugUserAccounts.Widgets.MainView : Gtk.Box {
private UserListBox userlist;
private Granite.Widgets.Toast toast;
private Gtk.Stack content;
private Gtk.ScrolledWindow scrolled_window;
private GuestSettingsView guest;

public MainView () {
Object (
orientation: Gtk.Orientation.HORIZONTAL,
position: 240
);
}

construct {
userlist = new UserListBox ();

Expand Down Expand Up @@ -63,8 +56,13 @@ public class SwitchboardPlugUserAccounts.Widgets.MainView : Gtk.Paned {
};
overlay.add_overlay (toast);

pack1 (sidebar, false, false);
pack2 (overlay, true, false);
var paned = new Gtk.Paned (HORIZONTAL) {
position = 240
};
paned.pack1 (sidebar, false, false);
paned.pack2 (overlay, true, false);

add (paned);

if (get_usermanager ().is_loaded) {
update ();
Expand Down

0 comments on commit 9283193

Please sign in to comment.