[gtkmm] Widget: Add some new methods.



commit d38394388817b98e0b785e86162cd08d62184381
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 26 13:05:07 2013 +0100

    Widget: Add some new methods.
    
        * gtk/src/iconview.hg: Add is_visible(),
        register_window() and unregister_window().

 ChangeLog         |    7 +++++++
 gtk/src/widget.hg |    8 ++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7970c46..5091004 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-04-05  Murray Cumming  <murrayc murrayc com>
+
+       Widget: Add some new methods.
+
+       * gtk/src/iconview.hg: Add is_visible(),
+       register_window() and unregister_window().
+
 2013-04-03  Murray Cumming  <murrayc murrayc com>
 
        Update the generated GTK+ documentation.
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 6bfadf8..0fd441d 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -237,6 +237,7 @@ public:
   _WRAP_METHOD(bool is_sensitive() const, gtk_widget_is_sensitive)
   _WRAP_METHOD(void set_visible(bool visible = true), gtk_widget_set_visible)
   _WRAP_METHOD(bool get_visible() const, gtk_widget_get_visible)
+  _WRAP_METHOD(bool is_visible() const, gtk_widget_is_visible)
   _WRAP_METHOD(bool get_has_window() const, gtk_widget_get_has_window)
   _WRAP_METHOD(bool get_is_toplevel() const, gtk_widget_is_toplevel)
   _WRAP_METHOD(bool get_is_drawable() const, gtk_widget_is_drawable)
@@ -256,6 +257,9 @@ public:
   _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_window(), gtk_widget_get_window, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_window() const, gtk_widget_get_window, refreturn, 
constversion)
 
+  _WRAP_METHOD(void register_window(const Glib::RefPtr<Gdk::Window>& window), gtk_widget_register_window)
+  _WRAP_METHOD(void unregister_window(const Glib::RefPtr<Gdk::Window>& window), gtk_widget_unregister_window)
+
   _WRAP_METHOD(int get_allocated_width() const, gtk_widget_get_allocated_width)
   _WRAP_METHOD(int get_allocated_height() const, gtk_widget_get_allocated_height)
 
@@ -501,6 +505,7 @@ public:
   void drag_set_as_icon(const Glib::RefPtr<Gdk::DragContext>& context, int hot_x, int hot_y);
 
   _WRAP_METHOD(void queue_resize_no_redraw(), gtk_widget_queue_resize_no_redraw)
+  //TODO: _WRAP_METHOD(GdkFrameClock* get_frame_clock(), gtk_widget_get_frame_clock)
   _WRAP_METHOD(bool get_no_show_all() const, gtk_widget_get_no_show_all)
   _WRAP_METHOD(void set_no_show_all(bool no_show_all = true), gtk_widget_set_no_show_all)
 
@@ -549,6 +554,9 @@ public:
 
   _WRAP_METHOD(Gdk::ModifierType get_modifier_mask(Gdk::ModifierIntent intent), gtk_widget_get_modifier_mask)
 
+//TODO: guint gtk_widget_add_tick_callback (GtkWidget *widget,  GtkTickCallback callback, gpointer 
user_data, GDestroyNotify   notify);
+//TODO: void gtk_widget_remove_tick_callback (GtkWidget *widget,  guint id);
+
 
   _WRAP_SIGNAL(void show(),"show")
   _WRAP_SIGNAL(void hide(),"hide")


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