[gtkmm] gdkmm: Add some more methods, wrapping new GTK+ API.



commit f2f5fe71ef064b7c4a12d117063aa3f6909c8272
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Sep 15 22:28:09 2010 +0200

    gdkmm: Add some more methods, wrapping new GTK+ API.
    
    * gdk/src/display.hg: Added is_closed().
    * gdk/src/dragcontext.hg: Added get/set_device().
    * gdk/src/visual.hg: A a missing include to fix the previous commit.

 ChangeLog              |    8 ++++++++
 gdk/src/display.hg     |    5 +++--
 gdk/src/dragcontext.hg |    5 +++++
 gdk/src/visual.hg      |    3 ++-
 4 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2ac8b55..80ee334 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-09-15  Murray Cumming  <murrayc murrayc com>
 
+	gdkmm: Add some more methods, wrapping new GTK+ API.
+
+	* gdk/src/display.hg: Added is_closed().
+	* gdk/src/dragcontext.hg: Added get/set_device().
+	* gdk/src/visual.hg: A a missing include to fix the previous commit.
+
+2010-09-15  Murray Cumming  <murrayc murrayc com>
+
 	gdkmm: Visual: Wrapped remaining methods.
 
 	* gdk/src/visual.hg: Added get_visual_type(), get_depth(), get_byte_order(), 
diff --git a/gdk/src/display.hg b/gdk/src/display.hg
index 1b2ea3d..3afa372 100644
--- a/gdk/src/display.hg
+++ b/gdk/src/display.hg
@@ -69,6 +69,8 @@ public:
   _WRAP_METHOD(void beep(), gdk_display_beep)
   _WRAP_METHOD(void sync(), gdk_display_sync)
   _WRAP_METHOD(void	close(), gdk_display_close)
+  _WRAP_METHOD(bool is_closed() const, gdk_display_is_closed)
+
 
   _IGNORE(gdk_display_list_devices) //deprecated
 
@@ -142,8 +144,6 @@ public:
    
   _WRAP_METHOD(Glib::RefPtr<const Window> get_window_at_device_position(const Glib::RefPtr<Device>& device, int& win_x, int& win_y), gdk_display_get_window_at_device_position)
   _WRAP_METHOD(void warp_device(const Glib::RefPtr<Device>& device, const Glib::RefPtr<Screen>& screen, int x, int y), gdk_display_warp_device)
-                           
-  _WRAP_METHOD(GdkDisplayDeviceHooks* set_device_hooks(const GdkDisplayDeviceHooks* new_hooks), dk_display_set_device_hooks)
 
                                  
   _WRAP_METHOD(void warp_pointer(const Glib::RefPtr<Screen>& screen, int x, int y), gdk_display_warp_pointer)
@@ -186,6 +186,7 @@ public:
   _WRAP_METHOD(Glib::RefPtr<const Pixmap> lookup_pixmap(NativeWindow anid) const, gdk_pixmap_lookup_for_display, constversion)
 
   _WRAP_METHOD(void flush(), gdk_display_flush)
+  //TODO: Read the docs to know what the types are really: _WRAP_METHOD(GdkDisplayDeviceHooks* set_device_hooks(const GdkDisplayDeviceHooks *new_hooks), gdk_display_set_device_hooks)
   _WRAP_METHOD(bool supports_cursor_alpha() const, gdk_display_supports_cursor_alpha)
   _WRAP_METHOD(bool supports_cursor_color() const, gdk_display_supports_cursor_color)
   _WRAP_METHOD(guint get_default_cursor_size() const, gdk_display_get_default_cursor_size)
diff --git a/gdk/src/dragcontext.hg b/gdk/src/dragcontext.hg
index f64e450..a2ed0e0 100644
--- a/gdk/src/dragcontext.hg
+++ b/gdk/src/dragcontext.hg
@@ -22,6 +22,7 @@
 #include <gdkmm/color.h>
 #include <gdkmm/pixbuf.h>
 #include <gdkmm/bitmap.h>
+#include <gdkmm/device.h>
 #include <glibmm/object.h>
 #include <gdk/gdk.h>
 #include <glibmm/listhandle.h>
@@ -88,6 +89,10 @@ public:
   _WRAP_METHOD(Glib::RefPtr<Window> get_destination_window(), gdk_drag_context_get_destination_window, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Window> get_destination_window() const, gdk_drag_context_get_destination_window, refreturn, constversion)
 
+  _WRAP_METHOD(void set_device(const Glib::RefPtr<Device>& device), gdk_drag_context_set_device)
+  _WRAP_METHOD(Glib::RefPtr<Device> get_device(), gdk_drag_context_get_device, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<const Device> get_device() const, gdk_drag_context_get_device, refreturn, constversion)
+
   /** Get a list of targets offered by the source.
    * @result a list of targets offered by the source.
    */
diff --git a/gdk/src/visual.hg b/gdk/src/visual.hg
index 2dd5e00..393299e 100644
--- a/gdk/src/visual.hg
+++ b/gdk/src/visual.hg
@@ -21,7 +21,8 @@
 
 #include <glibmm/object.h>
 #include <gdkmm/screen.h>
-#include <gdk/gdk.h>
+#include <gdkmm/types.h>
+//#include <gdk/gdk.h>
 
 _DEFS(gdkmm,gdk)
 _PINCLUDE(glibmm/private/object_p.h)



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