type of requestor parameter in gdk_selection_send_notify()
- From: Sven Neumann <sven gimp org>
- To: Gtk Development List <gtk-devel-list gnome org>
- Subject: type of requestor parameter in gdk_selection_send_notify()
- Date: 07 Jan 2002 12:05:21 +0100
Hi,
the following patch adds a missing GDK backend abstraction by changing
the type of the requestor parameter in gdk_selection_send_notify()
from guint32 to GdkNativeWindow. This fixes some compiler warnings.
OK to commit?
Salut, Sven
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.2766
diff -u -p -r1.2766 ChangeLog
--- ChangeLog 2002/01/07 08:02:21 1.2766
+++ ChangeLog 2002/01/07 10:56:43
@@ -1,3 +1,12 @@
+2002-01-07 Sven Neumann <sven gimp org>
+
+ * gdk/gdkselection.h (gdk_selection_send_notify): changed type of
+ requestor parameter to GdkNativeWindow.
+
+ * gdk/linux-fb/gdkselection-fb.c
+ * gdk/win32/gdkselection-win32.c
+ * gdk/x11/gdkselection-x11.c: changed accordingly.
+
2002-01-07 Anders Carlsson <andersca gnu org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
Index: gdk/gdkselection.h
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/gdkselection.h,v
retrieving revision 1.4
diff -u -p -r1.4 gdkselection.h
--- gdk/gdkselection.h 2001/10/31 21:52:29 1.4
+++ gdk/gdkselection.h 2002/01/07 10:56:43
@@ -37,24 +37,24 @@ typedef GdkAtom GdkSelectionType;
/* Selections
*/
-gboolean gdk_selection_owner_set (GdkWindow *owner,
- GdkAtom selection,
- guint32 time,
- gboolean send_event);
-GdkWindow* gdk_selection_owner_get (GdkAtom selection);
-void gdk_selection_convert (GdkWindow *requestor,
- GdkAtom selection,
- GdkAtom target,
- guint32 time);
-gboolean gdk_selection_property_get (GdkWindow *requestor,
- guchar **data,
- GdkAtom *prop_type,
- gint *prop_format);
-void gdk_selection_send_notify (guint32 requestor,
- GdkAtom selection,
- GdkAtom target,
- GdkAtom property,
- guint32 time);
+gboolean gdk_selection_owner_set (GdkWindow *owner,
+ GdkAtom selection,
+ guint32 time,
+ gboolean send_event);
+GdkWindow* gdk_selection_owner_get (GdkAtom selection);
+void gdk_selection_convert (GdkWindow *requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ guint32 time);
+gboolean gdk_selection_property_get (GdkWindow *requestor,
+ guchar **data,
+ GdkAtom *prop_type,
+ gint *prop_format);
+void gdk_selection_send_notify (GdkNativeWindow requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ GdkAtom property,
+ guint32 time);
#ifdef __cplusplus
}
Index: gdk/linux-fb/gdkselection-fb.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/linux-fb/gdkselection-fb.c,v
retrieving revision 1.8
diff -u -p -r1.8 gdkselection-fb.c
--- gdk/linux-fb/gdkselection-fb.c 2001/09/08 00:30:13 1.8
+++ gdk/linux-fb/gdkselection-fb.c 2002/01/07 10:56:43
@@ -204,11 +204,11 @@ gdk_selection_property_get (GdkWindow *
void
-gdk_selection_send_notify (guint32 requestor,
- GdkAtom selection,
- GdkAtom target,
- GdkAtom property,
- guint32 time)
+gdk_selection_send_notify (GdkNativeWindow requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ GdkAtom property,
+ guint32 time)
{
GdkEvent *event;
GdkWindow *event_window;
Index: gdk/win32/gdkselection-win32.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/win32/gdkselection-win32.c,v
retrieving revision 1.19
diff -u -p -r1.19 gdkselection-win32.c
--- gdk/win32/gdkselection-win32.c 2001/10/29 06:50:55 1.19
+++ gdk/win32/gdkselection-win32.c 2002/01/07 10:56:43
@@ -370,11 +370,11 @@ _gdk_selection_property_delete (GdkWindo
}
void
-gdk_selection_send_notify (guint32 requestor,
- GdkAtom selection,
- GdkAtom target,
- GdkAtom property,
- guint32 time)
+gdk_selection_send_notify (GdkNativeWindow requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ GdkAtom property,
+ guint32 time)
{
gchar *sel_name, *tgt_name, *prop_name;
Index: gdk/x11/gdkselection-x11.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/x11/gdkselection-x11.c,v
retrieving revision 1.21
diff -u -p -r1.21 gdkselection-x11.c
--- gdk/x11/gdkselection-x11.c 2001/12/29 00:24:25 1.21
+++ gdk/x11/gdkselection-x11.c 2002/01/07 10:56:43
@@ -274,11 +274,11 @@ gdk_selection_property_get (GdkWindow *
void
-gdk_selection_send_notify (guint32 requestor,
- GdkAtom selection,
- GdkAtom target,
- GdkAtom property,
- guint32 time)
+gdk_selection_send_notify (GdkNativeWindow requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ GdkAtom property,
+ guint32 time)
{
XSelectionEvent xevent;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]