diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:34:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:34:32 +0200 |
commit | 49120f48474fc8fdc2448c75d961bc238213cfac (patch) | |
tree | 05bcdb95d65a807cf0f1ffffd066c09074b5cf56 /src/plugins/ManifestWidget.vala | |
parent | 2492891f112caac6076ce49721d9d5d78a152c3a (diff) |
New upstream version 0.28.2upstream/0.28.2
Diffstat (limited to 'src/plugins/ManifestWidget.vala')
-rw-r--r-- | src/plugins/ManifestWidget.vala | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/src/plugins/ManifestWidget.vala b/src/plugins/ManifestWidget.vala index b6897ba..8fb0ba2 100644 --- a/src/plugins/ManifestWidget.vala +++ b/src/plugins/ManifestWidget.vala @@ -6,29 +6,20 @@ namespace Plugins { -public class ManifestWidgetMediator { - public Gtk.Widget widget { - get { - return builder.get_object("plugin-manifest") as Gtk.Widget; - } - } + +[GtkTemplate (ui = "/org/gnome/Shotwell/ui/manifest_widget.ui")] +public class ManifestWidgetMediator : Gtk.Box { + [GtkChild] + private Gtk.Button about_button; - private Gtk.Button about_button { - get { - return builder.get_object("about-plugin-button") as Gtk.Button; - } - } + [GtkChild] + private Gtk.ScrolledWindow list_bin; - private Gtk.ScrolledWindow list_bin { - get { - return builder.get_object("plugin-list-scrolled-window") as Gtk.ScrolledWindow; - } - } - - private Gtk.Builder builder = AppWindow.create_builder(); private ManifestListView list = new ManifestListView(); public ManifestWidgetMediator() { + Object(); + list_bin.add(list); about_button.clicked.connect(on_about); @@ -37,11 +28,6 @@ public class ManifestWidgetMediator { set_about_button_sensitivity(); } - ~ManifestWidgetMediator() { - about_button.clicked.disconnect(on_about); - list.get_selection().changed.disconnect(on_selection_changed); - } - private void on_about() { string[] ids = list.get_selected_ids(); if (ids.length == 0) |