summaryrefslogtreecommitdiff
path: root/src/plugins/ManifestWidget.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
commite230b6f78546827521107be23797048482c8b193 (patch)
tree948c1e77382c484819ea399bba4edcdc19cc6bf0 /src/plugins/ManifestWidget.vala
parent211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff)
parent49120f48474fc8fdc2448c75d961bc238213cfac (diff)
Update upstream source from tag 'upstream/0.28.2'
Update to upstream version '0.28.2' with Debian dir 811236a8e9a1308bf427065dcb6270419ff4f965
Diffstat (limited to 'src/plugins/ManifestWidget.vala')
-rw-r--r--src/plugins/ManifestWidget.vala32
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)