[gtk+/gtk-2-22] x11: Deprecate GdkGC functions
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] x11: Deprecate GdkGC functions
- Date: Thu, 12 Aug 2010 01:03:18 +0000 (UTC)
commit cedf52fb81b3df8b74196f37618f49afc7d36f3b
Author: Benjamin Otte <otte redhat com>
Date: Thu Aug 12 01:53:57 2010 +0200
x11: Deprecate GdkGC functions
They are gone in GTK3, just like the rest of GdkGC.
gdk/x11/gdkgc-x11.c | 4 ++++
gdk/x11/gdkx.h | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkgc-x11.c b/gdk/x11/gdkgc-x11.c
index 0a6869a..c6ce3d0 100644
--- a/gdk/x11/gdkgc-x11.c
+++ b/gdk/x11/gdkgc-x11.c
@@ -673,6 +673,8 @@ gdk_gc_get_screen (GdkGC *gc)
* Returns the display of a #GdkGC.
*
* Return value: an Xlib <type>Display*</type>.
+ *
+ * Deprecated: 2.22: #GdkGC has been replaced by #cairo_t.
**/
Display *
gdk_x11_gc_get_xdisplay (GdkGC *gc)
@@ -689,6 +691,8 @@ gdk_x11_gc_get_xdisplay (GdkGC *gc)
* Returns the X GC of a #GdkGC.
*
* Return value: an Xlib <type>GC</type>.
+ *
+ * Deprecated: 2.22: #GdkGC has been replaced by #cairo_t.
**/
GC
gdk_x11_gc_get_xgc (GdkGC *gc)
diff --git a/gdk/x11/gdkx.h b/gdk/x11/gdkx.h
index d8aa42c..9bc577a 100644
--- a/gdk/x11/gdkx.h
+++ b/gdk/x11/gdkx.h
@@ -50,8 +50,10 @@ Display *gdk_x11_cursor_get_xdisplay (GdkCursor *cursor);
Cursor gdk_x11_cursor_get_xcursor (GdkCursor *cursor);
Display *gdk_x11_display_get_xdisplay (GdkDisplay *display);
Visual * gdk_x11_visual_get_xvisual (GdkVisual *visual);
+#if !defined(GDK_DISABLE_DEPRECATED) || defined(GDK_COMPILATION)
Display *gdk_x11_gc_get_xdisplay (GdkGC *gc);
GC gdk_x11_gc_get_xgc (GdkGC *gc);
+#endif
Screen * gdk_x11_screen_get_xscreen (GdkScreen *screen);
int gdk_x11_screen_get_screen_number (GdkScreen *screen);
void gdk_x11_window_set_user_time (GdkWindow *window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]