[gtkmm] Deprecate some more methods that use (deprecated) StockID.



commit 16e38a736cfafae6f86c5998d6d74350f38337bb
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 21 22:22:41 2013 +0200

    Deprecate some more methods that use (deprecated) StockID.
    
    * gtk/src/radioaction.hg:
    * gtk/src/recentaction.hg: Deprecate constructors and methods that
      take StockID.
    
    This should not be an API break because you could not use these
    deprecated methods if you had disabled deprecated API, because they
    took a deprecated type as parameter.

 gtk/src/radioaction.hg  |    6 +++++-
 gtk/src/recentaction.hg |   19 +++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/radioaction.hg b/gtk/src/radioaction.hg
index 17af82f..d5bc96e 100644
--- a/gtk/src/radioaction.hg
+++ b/gtk/src/radioaction.hg
@@ -75,7 +75,7 @@ _DEPRECATE_IFDEF_START
    * @param label    The label displayed in menu items and on buttons.
    * @param tooltip  A tooltip for the action.
    *
-   * @deprecated Stock IDs are deprecated, so use the other construtor.
+   * @deprecated Stock IDs are deprecated, so use the other constructor.
    */
   explicit RadioAction(Group& group, const Glib::ustring& name, const StockID& stock_id = StockID(), const 
Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
 _DEPRECATE_IFDEF_END
@@ -109,6 +109,7 @@ public:
    */
   static Glib::RefPtr<RadioAction> create(Group& group, const Glib::ustring& name, const Glib::ustring& 
label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
 
+_DEPRECATE_IFDEF_START
   /** Creates a radio action with a stock ID.
    * The stock ID is used to set a default icon, text and accelerator for
    * the radio action.
@@ -121,8 +122,11 @@ public:
    * @param tooltip  A tooltip for the action.
    *
    * @return A new RadioAction.
+   *
+   * @deprecated Stock IDs are deprecated, so use the other create() method.
    */
   static Glib::RefPtr<RadioAction> create(Group& group, const Glib::ustring& name, const Gtk::StockID& 
stock_id, const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
+_DEPRECATE_IFDEF_END
 
   /** Creates a radio action with an icon name.
    * The radio action's icon will reflect the specified icon name in the
diff --git a/gtk/src/recentaction.hg b/gtk/src/recentaction.hg
index bfe4222..c287aac 100644
--- a/gtk/src/recentaction.hg
+++ b/gtk/src/recentaction.hg
@@ -63,11 +63,20 @@ protected:
 //Make sure that we use NULL instead of empty strings for the constructors:
 #m4 _CONVERSION(`const Glib::ustring&',`const char*',`$3.empty() ? 0 : $3.c_str()')
 
+_DEPRECATE_IFDEF_START
   //Note that the order of the parameters is not the same as gtk_recent_action_new(), because
   //a) we want to be consistent with Action, ToggleAction, etc.
   //b) this allows us to use the StockID parameter to distinguish the create() overloads.
+  /**
+   * @deprecated Stock IDs are deprecated, so use another constructor.
+   */
   _WRAP_CTOR(RecentAction(const Glib::ustring& name, const StockID& stock_id = StockID(), const 
Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring()), 
gtk_recent_action_new)
+
+  /**
+   * @deprecated Stock IDs are deprecated, so use another constructor.
+   */
   _WRAP_CTOR(RecentAction(const Glib::ustring& name, const StockID& stock_id, const Glib::ustring& label, 
const Glib::ustring& tooltip, const Glib::RefPtr<RecentManager>& recent_manager), 
gtk_recent_action_new_for_manager )
+_DEPRECATE_IFDEF_END
 
 public:
   //Note that gtk_recent_action_new() does not allow name to be NULL, which suggests that we should not have 
a default constructor,
@@ -75,8 +84,18 @@ public:
   _WRAP_CREATE()
 
   static Glib::RefPtr<RecentAction> create(const Glib::ustring& name, const Glib::ustring& label = 
Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
+
+_DEPRECATE_IFDEF_START
+  /**
+   * @deprecated Stock IDs are deprecated, so use another create() method.
+   */
   _WRAP_CREATE(const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label = 
Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring())
+
+  /**
+   * @deprecated Stock IDs are deprecated, so use another create() method.
+   */
   _WRAP_CREATE(const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label, const 
Glib::ustring& tooltip, const Glib::RefPtr<RecentManager>& recent_manager)
+_DEPRECATE_IFDEF_END
 
 
   _WRAP_METHOD(bool get_show_numbers(), gtk_recent_action_get_show_numbers)


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