[gtkmm] RadioAction: Added join_group().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] RadioAction: Added join_group().
- Date: Mon, 6 Sep 2010 11:04:07 +0000 (UTC)
commit e33c746fca719eef2f32f692f3e3609f7c08ac75
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 6 13:03:25 2010 +0200
RadioAction: Added join_group().
* gtk/src/radioaction.hg: Wrapped gtk_radio_action_join_group(), which
avoids the need to ever see a *Group object.
ChangeLog | 7 +++++++
gtk/src/radioaction.hg | 11 ++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b31a2c6..95e8431 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2010-09-06 Murray Cumming <murrayc murrayc com>
+ RadioAction: Added join_group().
+
+ * gtk/src/radioaction.hg: Wrapped gtk_radio_action_join_group(), which
+ avoids the need to ever see a *Group object.
+
+2010-09-06 Murray Cumming <murrayc murrayc com>
+
IconInfo: Fix the build.
* gtk/src/iconinfo.[hg|ccg]: Correct silly mistakes.
diff --git a/gtk/src/radioaction.hg b/gtk/src/radioaction.hg
index 6defc94..7bc319c 100644
--- a/gtk/src/radioaction.hg
+++ b/gtk/src/radioaction.hg
@@ -29,8 +29,8 @@ namespace Gtk
/** An action of which only one in a group can be active.
*
- * A Gtk::RadioAction is similar to Gtk::RadioMenuItem. A number of
- * radio actions can be linked together so that only one may be active
+ * A Gtk::RadioAction is similar to Gtk::RadioMenuItem. A number of
+ * radio actions can be linked together so that only one may be active
* at any one time.
*/
class RadioAction : public Gtk::ToggleAction
@@ -38,7 +38,7 @@ class RadioAction : public Gtk::ToggleAction
_CLASS_GOBJECT(RadioAction, GtkRadioAction, GTK_RADIO_ACTION, Gtk::ToggleAction, GtkToggleAction)
public:
typedef RadioButtonGroup Group;
-
+
protected:
//TODO: Remove the default constructor, because name may not be NULL.
_CTOR_DEFAULT
@@ -117,7 +117,9 @@ public:
_WRAP_METHOD(Group get_group(), gtk_radio_action_get_group)
void set_group(Group& group);
_IGNORE(gtk_radio_action_set_group)
-
+
+ _WRAP_METHOD(void join_group(const Glib::RefPtr<RadioAction>& group_source), gtk_radio_action_join_group)
+
_WRAP_METHOD(int get_current_value() const, gtk_radio_action_get_current_value)
_WRAP_METHOD(void set_current_value(int current_value), gtk_radio_action_set_current_value)
@@ -136,4 +138,3 @@ public:
};
} // namespace Gtk
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]