[gtkmm/gtkmm-3-22] Gtk::FileChooserDialog: Deprecate ctors with backend parameter



commit db8310fc15108624c0d50bcbaf73312d59b297dc
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Mon Mar 27 13:39:02 2017 +0200

    Gtk::FileChooserDialog: Deprecate ctors with backend parameter
    
    gtk_file_chooser_dialog_new_with_backend() was deprecated in gtk+ 2.14
    and removed in gtk+-3. The corresponding ctors in FileChooserDialog should
    have been removed in gtkmm-3.

 gtk/src/filechooserdialog.ccg |    2 ++
 gtk/src/filechooserdialog.hg  |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/filechooserdialog.ccg b/gtk/src/filechooserdialog.ccg
index 1d92e14..d911ec7 100644
--- a/gtk/src/filechooserdialog.ccg
+++ b/gtk/src/filechooserdialog.ccg
@@ -35,6 +35,7 @@ FileChooserDialog::FileChooserDialog(const Glib::ustring& title, FileChooserActi
 {
 }
 
+_DEPRECATE_IFDEF_START
 FileChooserDialog::FileChooserDialog(const Glib::ustring& title, FileChooserAction action, const 
Glib::ustring& backend)
 :
   _CONSTRUCT("title", title.c_str(), "action", (GtkFileChooserAction)action, "file-system-backend", 
backend.c_str())
@@ -47,6 +48,7 @@ FileChooserDialog::FileChooserDialog(Gtk::Window& parent, const Glib::ustring& t
 {
   set_transient_for(parent);
 }
+_DEPRECATE_IFDEF_END
 
 } // namespace Gtk
 
diff --git a/gtk/src/filechooserdialog.hg b/gtk/src/filechooserdialog.hg
index 17e79df..827e11f 100644
--- a/gtk/src/filechooserdialog.hg
+++ b/gtk/src/filechooserdialog.hg
@@ -44,8 +44,12 @@ public:
   explicit FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action = 
FILE_CHOOSER_ACTION_OPEN);
   explicit FileChooserDialog(const Glib::ustring& title, FileChooserAction action = 
FILE_CHOOSER_ACTION_OPEN);
 
+_DEPRECATE_IFDEF_START
+  /// @deprecated Use a constructor without the @a backend parameter.
   explicit FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action, 
const Glib::ustring& backend);
+  /// @deprecated Use a constructor without the @a backend parameter.
   explicit FileChooserDialog(const Glib::ustring& title, FileChooserAction action, const Glib::ustring& 
backend);
+_DEPRECATE_IFDEF_END
 };
 
 } // namespace Gtk


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