Search code examples
ubuntugtkgnomeglade

What Widget is Ubuntu's Settings Application Using for Lists?


In Ubuntu, there are several places in the settings app that have a very nice list view, with add/remove buttons, including Appearance, Keyboard Layout, Privacy, Bluetooth, etc. What widget(s) are they using? I'm starting on my first Ubuntu app with Glade, and need that interface.


Solution

  • That code lives in GNOME Control Centrer and it is not a widget. There is a GtkTreeView for the list and below it, there is a GtkToolbar with two buttons (using the symbolic icons list-add-symbolic and list-remove-symbolic). Instead of the GtkTreeView could be another widget, but the layout is the same.

    You can see the glade files inside each panel. For instance, User Accounts.