[gtkmm] Display, Event: Remove ClientEvent methods.



commit 3713f77c31406c580ffbcda8ba6e60b499d4cd30
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Feb 1 10:26:24 2011 +0100

    Display, Event: Remove ClientEvent methods.
    
    * gdk/src/gdk_methods.defs: Regenerated with h2defs.py.
    * gdk/src/display.hg: Remove add_client_message_filter().
    * gdk/srd/screen.hg: Remove send_client_message().
    * gtk/src/widget.hg: Remove client_event signal.

 ChangeLog                |    9 +++++++
 gdk/src/display.hg       |    3 --
 gdk/src/event.ccg        |    5 ----
 gdk/src/event.hg         |    4 ---
 gdk/src/gdk_methods.defs |   55 ----------------------------------------------
 gtk/src/widget.hg        |    1 -
 6 files changed, 9 insertions(+), 68 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ef9822c..012a1ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-02-01  Murray Cumming  <murrayc murrayc-desktop>
+
+	Display, Event: Remove ClientEvent methods. 
+
+	* gdk/src/gdk_methods.defs: Regenerated with h2defs.py.
+	* gdk/src/display.hg: Remove add_client_message_filter().
+	* gdk/srd/screen.hg: Remove send_client_message().
+	* gtk/src/widget.hg: Remove client_event signal.
+
 2011-02-01  Murray Cumming  <murrayc murrayc com>
 
 	Plug, Socket: Use the X11 Window type. Not my idea.
diff --git a/gdk/src/display.hg b/gdk/src/display.hg
index 17d5545..87bfd56 100644
--- a/gdk/src/display.hg
+++ b/gdk/src/display.hg
@@ -83,9 +83,6 @@ public:
   _WRAP_METHOD(void put_event(GdkEvent* event), gdk_display_put_event)
   _WRAP_METHOD(bool has_pending() const, gdk_display_has_pending)
 
-  //TODO: Use a slot here, though this is probably never used anyway:
-  //Find out whether we can use a string representation for the atom - look for examples of this function's use.
-  _WRAP_METHOD(void add_client_message_filter(Glib::ustring& message_type, GdkFilterFunc func, gpointer data), gdk_display_add_client_message_filter)
 
   _WRAP_METHOD(void set_double_click_time(guint msec), gdk_display_set_double_click_time)
   _WRAP_METHOD(void set_double_click_distance(guint distance), gdk_display_set_double_click_distance)
diff --git a/gdk/src/event.ccg b/gdk/src/event.ccg
index e04bf36..5029f75 100644
--- a/gdk/src/event.ccg
+++ b/gdk/src/event.ccg
@@ -25,10 +25,5 @@
 namespace Gdk
 {
 
-bool Event::send_client_message(const Glib::RefPtr<Display>& display, NativeWindow winid)
-{
-  return gdk_event_send_client_message_for_display(Glib::unwrap(display), gobj(), winid);
-}
-
 } //namespace Gdk
 
diff --git a/gdk/src/event.hg b/gdk/src/event.hg
index 38bcfcb..57bf767 100644
--- a/gdk/src/event.hg
+++ b/gdk/src/event.hg
@@ -75,10 +75,6 @@ public:
   _IGNORE(gdk_event_set_screen) //deprecated
   _WRAP_METHOD(Glib::RefPtr<Screen> get_screen(), gdk_event_get_screen, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Screen> get_screen() const, gdk_event_get_screen, refreturn, constversion)
-
-  _WRAP_METHOD(bool send_client_message(NativeWindow winid), gdk_event_send_client_message)
-  bool send_client_message(const Glib::RefPtr<Display>& display, NativeWindow winid);
-  _IGNORE(gdk_event_send_client_message_for_display)
 };
 
 } // namespace Gdk
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index 362079b..448d002 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -1221,17 +1221,6 @@
   (return-type "gboolean")
 )
 
-(define-method add_client_message_filter
-  (of-object "GdkDisplay")
-  (c-name "gdk_display_add_client_message_filter")
-  (return-type "none")
-  (parameters
-    '("GdkAtom" "message_type")
-    '("GdkFilterFunc" "func")
-    '("gpointer" "data")
-  )
-)
-
 (define-method set_double_click_time
   (of-object "GdkDisplay")
   (c-name "gdk_display_set_double_click_time")
@@ -2022,41 +2011,6 @@
   )
 )
 
-(define-function gdk_add_client_message_filter
-  (c-name "gdk_add_client_message_filter")
-  (return-type "none")
-  (parameters
-    '("GdkAtom" "message_type")
-    '("GdkFilterFunc" "func")
-    '("gpointer" "data")
-  )
-)
-
-(define-method send_client_message
-  (of-object "GdkEvent")
-  (c-name "gdk_event_send_client_message")
-  (return-type "gboolean")
-  (parameters
-    '("GdkNativeWindow" "winid")
-  )
-)
-
-(define-method send_clientmessage_toall
-  (of-object "GdkEvent")
-  (c-name "gdk_event_send_clientmessage_toall")
-  (return-type "none")
-)
-
-(define-function gdk_event_send_client_message_for_display
-  (c-name "gdk_event_send_client_message_for_display")
-  (return-type "gboolean")
-  (parameters
-    '("GdkDisplay*" "display")
-    '("GdkEvent*" "event")
-    '("GdkNativeWindow" "winid")
-  )
-)
-
 
 
 ;; From gdk.h
@@ -2845,15 +2799,6 @@
   )
 )
 
-(define-method broadcast_client_message
-  (of-object "GdkScreen")
-  (c-name "gdk_screen_broadcast_client_message")
-  (return-type "none")
-  (parameters
-    '("GdkEvent*" "event")
-  )
-)
-
 (define-function gdk_screen_get_default
   (c-name "gdk_screen_get_default")
   (return-type "GdkScreen*")
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 04791b5..3e01bb3 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -639,7 +639,6 @@ dnl
   _WRAP_SIGNAL(bool proximity_in_event(GdkEventProximity* event), "proximity_in_event")
   _WRAP_SIGNAL(bool proximity_out_event(GdkEventProximity* event), "proximity_out_event")
   _WRAP_SIGNAL(bool visibility_notify_event(GdkEventVisibility* event), "visibility_notify_event")
-  _WRAP_SIGNAL(bool client_event(GdkEventClient* event), "client_event")
   _WRAP_SIGNAL(bool window_state_event(GdkEventWindowState* event), "window_state_event")
 
   //We use the optional custom_c_callback parameter with _WRAP_SIGNAL() for some of these,



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