[gtkmm] Gtk::ScaleButton: Let get_[plus, minus]_button() return Button*
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::ScaleButton: Let get_[plus, minus]_button() return Button*
- Date: Fri, 10 Mar 2017 14:21:13 +0000 (UTC)
commit f01d9ab1f871a0485449cd4738974437b90590bc
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Fri Mar 10 15:18:36 2017 +0100
Gtk::ScaleButton: Let get_[plus,minus]_button() return Button*
gtk/src/scalebutton.hg | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gtk/src/scalebutton.hg b/gtk/src/scalebutton.hg
index ac72945..126c3a4 100644
--- a/gtk/src/scalebutton.hg
+++ b/gtk/src/scalebutton.hg
@@ -81,15 +81,14 @@ public:
_WRAP_METHOD(void set_adjustment(const Glib::RefPtr<Adjustment>& adjustment),
gtk_scale_button_set_adjustment)
- //TODO: Change the Widget* return type to Gtk::Button: https://bugzilla.gnome.org/show_bug.cgi?id=539944
- _WRAP_METHOD(Widget* get_plus_button(), gtk_scale_button_get_plus_button)
- _WRAP_METHOD(const Widget* get_plus_button() const, gtk_scale_button_get_plus_button, constversion)
+ _WRAP_METHOD(Button* get_plus_button(), gtk_scale_button_get_plus_button)
+ _WRAP_METHOD(const Button* get_plus_button() const, gtk_scale_button_get_plus_button, constversion)
- //TODO: Change the Widget* return type to Gtk::Button: https://bugzilla.gnome.org/show_bug.cgi?id=539944
- _WRAP_METHOD(Widget* get_minus_button(), gtk_scale_button_get_minus_button)
- _WRAP_METHOD(const Widget* get_minus_button() const, gtk_scale_button_get_minus_button, constversion)
+ _WRAP_METHOD(Button* get_minus_button(), gtk_scale_button_get_minus_button)
+ _WRAP_METHOD(const Button* get_minus_button() const, gtk_scale_button_get_minus_button, constversion)
//TODO: Use a more specific return type?
+ // It's a Popover now, but that fact is not documented. Can change in the future? (Kjell 2017-03-08)
_WRAP_METHOD(Gtk::Widget* get_popup(), gtk_scale_button_get_popup)
_WRAP_METHOD(const Gtk::Widget* get_popup() const, gtk_scale_button_get_popup)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]