[gtkmm] Widget: Add draw().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Widget: Add draw().
- Date: Tue, 28 Feb 2012 08:28:03 +0000 (UTC)
commit 129287a06cd90f580a677fca5cef7c79437c50f6
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Feb 28 09:27:29 2012 +0100
Widget: Add draw().
* gtk/src/widget.hg: gtk_widget_draw() was deprecated in
GTK+ 2 but it is not deprecated in GTK+ 3.
Bug #670918 (Mark)
ChangeLog | 8 ++++++++
gtk/src/widget.hg | 5 ++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1668e77..0a853be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-02-28 Murray Cumming <murrayc murrayc com>
+
+ Widget: Add draw().
+
+ * gtk/src/widget.hg: gtk_widget_draw() was deprecated in
+ GTK+ 2 but it is not deprecated in GTK+ 3.
+ Bug #670918 (Mark)
+
2012-02-27 Murray Cumming <murrayc murrayc com>
EntryBuffer: Correct the EntryBuffer(name) constructor.
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 90c330a..94c45fb 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -112,7 +112,7 @@ class Widget
_CLASS_GTKOBJECT(Widget,GtkWidget,GTK_WIDGET,Object,GObject)
_IMPLEMENTS_INTERFACE(Buildable)
_IMPLEMENTS_INTERFACE(Atk::Implementor, ifdef GTKMM_ATKMM_ENABLED)
- _IGNORE(gtk_widget_set, gtk_widget_queue_clear, gtk_widget_queue_clear_area, gtk_widget_draw,
+ _IGNORE(gtk_widget_set, gtk_widget_queue_clear, gtk_widget_queue_clear_area,
gtk_widget_set_uposition, gtk_widget_set_usize, gtk_widget_set_visual, gtk_widget_push_visual,
gtk_widget_pop_visual, gtk_widget_set_default_visual, gtk_widget_set_rc_style, gtk_widget_restore_default_style)
_IGNORE(gtk_widget_destroy, gtk_widget_ref, gtk_widget_unref, gtk_widget_destroyed, gtk_widget_hide_on_delete,
@@ -742,6 +742,9 @@ protected:
_WRAP_METHOD(void realize(), gtk_widget_realize)
_WRAP_METHOD(void unrealize(), gtk_widget_unrealize)
+#m4 _CONVERSION(`const ::Cairo::RefPtr< ::Cairo::Context>&',`cairo_t*',`($3)->cobj()')
+ _WRAP_METHOD(void draw(const ::Cairo::RefPtr< ::Cairo::Context>& cr), gtk_widget_draw)
+
_WRAP_METHOD(void set_mapped(bool mapped = true), gtk_widget_set_mapped)
_WRAP_METHOD(void set_realized(bool realized = true), gtk_widget_set_realized)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]