[gtkmm] DragContext: Added get_source_window() and get_selected_action().



commit 1e819da69f8dd5c31bf6d0246735e3a97e844a81
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jul 14 08:56:55 2010 +0200

    DragContext: Added get_source_window() and get_selected_action().
    
    	* gdk/src/dragcontext.hg: Added get_source_window() and get_selected_action()

 ChangeLog              |    6 ++++++
 gdk/src/dragcontext.hg |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d28abbc..bc1418c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-14  Murray Cumming  <murrayc murrayc com>>
+
+	DragContext: Added get_source_window() and get_selected_action().
+
+	* gdk/src/dragcontext.hg: Added get_source_window() and get_selected_action()
+
 2010-07-06  Murray Cumming  <murrayc murrayc com>
 
 	Added copyright headers. Patch from Kalev Lember.
diff --git a/gdk/src/dragcontext.hg b/gdk/src/dragcontext.hg
index 47296b2..f64e450 100644
--- a/gdk/src/dragcontext.hg
+++ b/gdk/src/dragcontext.hg
@@ -82,6 +82,12 @@ public:
   _WRAP_METHOD(void set_icon_name(const Glib::ustring& name, int hot_x, int hot_y), gtk_drag_set_icon_name)
   _WRAP_METHOD(void set_icon(), gtk_drag_set_icon_default)
 
+  _WRAP_METHOD(Glib::RefPtr<Window> get_source_window(), gdk_drag_context_get_source_window, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<const Window> get_source_window() const, gdk_drag_context_get_source_window, refreturn, constversion)
+
+  _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)
+
   /** Get a list of targets offered by the source.
    * @result a list of targets offered by the source.
    */
@@ -90,6 +96,7 @@ public:
 
   _WRAP_METHOD(DragAction get_actions() const, gdk_drag_context_get_actions)
   _WRAP_METHOD(DragAction get_suggested_action() const, gdk_drag_context_get_suggested_action)
+  _WRAP_METHOD(DragAction get_selected_action() const, gdk_drag_context_get_selected_action)
 
   _WRAP_METHOD_DOCS_ONLY(gdk_drag_find_window_for_screen)
   void find_window_for_screen(const Glib::RefPtr<Window>& drag_window, const Glib::RefPtr<Screen>& screen, int x_root, int y_root, Glib::RefPtr<Window>& dest_window, DragProtocol* protocol) const;



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