[gtkmm] ToggleAction: Deprecate the constructor that uses StockID



commit 7ad28b0d8ad67ec50a6bc349e39a5d0c67990d3c
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Oct 9 11:36:49 2013 +0200

    ToggleAction: Deprecate the constructor that uses StockID

 gtk/src/toggleaction.hg |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/toggleaction.hg b/gtk/src/toggleaction.hg
index a6243ea..2dc64a8 100644
--- a/gtk/src/toggleaction.hg
+++ b/gtk/src/toggleaction.hg
@@ -45,8 +45,8 @@ protected:
   /** Creates an empty toggle action. */
   _CTOR_DEFAULT
 
-  /**
-   * Creates a toggle action.
+_DEPRECATE_IFDEF_START
+  /** Creates a toggle action.
    *
    * @param name      A unique name for the action.
    * @param stock_id  The stock icon to display in widgets representing the
@@ -54,8 +54,11 @@ protected:
    * @param label     The label displayed in menu items and on buttons.
    * @param tooltip   A tooltip for the action.
    * @param is_active The default checked state of the action.
+   *
+   * @deprecated Stock IDs are deprecated, so use the other construtor.
    */
    explicit ToggleAction(const Glib::ustring& name, const StockID& stock_id = StockID(), const 
Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring(), bool is_active = 
false);
+_DEPRECATE_IFDEF_END
 
   /** Creates a toggle action with an icon name.
    * The toggle action's icon will reflect the specified icon name in the


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