[geary] Fix compilation after rebasing against current master.



commit 0f8a3d1752cbd880bfd1331e49d51bdc368b8935
Author: Michael James Gratton <mike vee net>
Date:   Tue Oct 4 10:45:02 2016 +1100

    Fix compilation after rebasing against current master.

 src/client/dialogs/attachment-dialog.vala |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/src/client/dialogs/attachment-dialog.vala b/src/client/dialogs/attachment-dialog.vala
index f4aaec9..80d455d 100644
--- a/src/client/dialogs/attachment-dialog.vala
+++ b/src/client/dialogs/attachment-dialog.vala
@@ -41,6 +41,30 @@ public class AttachmentDialog : Object {
         chooser.update_preview.connect(on_update_preview);
     }
 
+    // XXX Once we depend on GTK+ 3.20 as a minimum, convert this
+    // class to a subclass of FileChooserNative and remove these API
+    // compat classes.
+
+    public void add_filter(owned Gtk.FileFilter filter) {
+        this.chooser.add_filter(filter);
+    }
+
+    public SList<File> get_files() {
+        return this.chooser.get_files();
+    }
+
+    public int run() {
+        return this.chooser.run();
+    }
+
+    public void hide() {
+        this.chooser.hide();
+    }
+
+    public void destroy() {
+        this.chooser.destroy();
+    }
+
     private void on_update_preview() {
         string? filename = chooser.get_preview_filename();
         if (filename == null) {


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