[gtkmm] Add Gtk::Scrollable::get_border() and ScrolledWindow::signal_edge_reached()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Add Gtk::Scrollable::get_border() and ScrolledWindow::signal_edge_reached()
- Date: Tue, 31 Mar 2015 13:16:08 +0000 (UTC)
commit 9ab57bb2a2a340bf60a9e622dc99ac7e8595f043
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Tue Mar 31 15:02:01 2015 +0200
Add Gtk::Scrollable::get_border() and ScrolledWindow::signal_edge_reached()
* gtk/src/scrollable.hg: Add get_border().
* gtk/src/scrolledwindow.hg: Add signal_edge_reached().
gtk/src/scrollable.hg | 6 +++++-
gtk/src/scrolledwindow.hg | 2 ++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/scrollable.hg b/gtk/src/scrollable.hg
index 4442f0d..cca1dc7 100644
--- a/gtk/src/scrollable.hg
+++ b/gtk/src/scrollable.hg
@@ -16,6 +16,7 @@
*/
#include <gtkmm/adjustment.h>
+#include <gtkmm/border.h>
#include <glibmm/interface.h>
#include <gtkmm/enums.h>
_DEFS(gtkmm,gtk)
@@ -67,12 +68,15 @@ public:
_WRAP_METHOD(void set_hscroll_policy(ScrollablePolicy policy), gtk_scrollable_set_hscroll_policy)
_WRAP_METHOD(ScrollablePolicy get_vscroll_policy() const, gtk_scrollable_get_vscroll_policy)
_WRAP_METHOD(void set_vscroll_policy(ScrollablePolicy policy), gtk_scrollable_set_vscroll_policy)
-
+ _WRAP_METHOD(bool get_border(Border& border) const, gtk_scrollable_get_border)
_WRAP_PROPERTY("hadjustment", Glib::RefPtr<Adjustment>)
_WRAP_PROPERTY("vadjustment", Glib::RefPtr<Adjustment>)
_WRAP_PROPERTY("hscroll-policy", ScrollablePolicy)
_WRAP_PROPERTY("vscroll-policy", ScrollablePolicy)
+
+ //TODO: Add when we can break ABI:
+ //_WRAP_VFUNC(bool get_border(Border& border) const, get_border)
};
} // namespace Gtk
diff --git a/gtk/src/scrolledwindow.hg b/gtk/src/scrolledwindow.hg
index 5eacc07..f93d1cd 100644
--- a/gtk/src/scrolledwindow.hg
+++ b/gtk/src/scrolledwindow.hg
@@ -126,7 +126,9 @@ public:
_IGNORE_SIGNAL("scroll_child")
_IGNORE_SIGNAL("move_focus_out")
+ // no_default_handler because the wrapped C signals have no default handlers.
_WRAP_SIGNAL(void edge_overshot(Gtk::PositionType pos), "edge-overshot", no_default_handler)
+ _WRAP_SIGNAL(void edge_reached(Gtk::PositionType pos), "edge-reached", no_default_handler)
_WRAP_PROPERTY("hadjustment", Glib::RefPtr<Adjustment>)
_WRAP_PROPERTY("vadjustment", Glib::RefPtr<Adjustment>)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]