diff options
author | Javier Jardón <javierjc1982@gmail.com> | 2009-10-09 17:00:20 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-05-03 01:45:00 +0200 |
commit | 134690ed8fdb0a2ab904e63bf95e40b6f13d4b53 (patch) | |
tree | fd838e50a92062b92d146b3294ce7b750b26dbf3 /gdk | |
parent | b9b8efc528f826008c94ab8d9322f4441bc39ad2 (diff) | |
download | gtk+-134690ed8fdb0a2ab904e63bf95e40b6f13d4b53.tar.gz |
Remove deprecated code from GdkGc
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdk.symbols | 5 | ||||
-rw-r--r-- | gdk/gdkgc.c | 53 | ||||
-rw-r--r-- | gdk/gdkgc.h | 12 |
3 files changed, 0 insertions, 70 deletions
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index e58a3fafff..a38d3a5238 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -588,11 +588,6 @@ gdk_draw_layout_with_colors gdk_gc_new gdk_gc_get_type G_GNUC_CONST gdk_gc_new_with_values -#ifndef GDK_DISABLE_DEPRECATED -gdk_gc_ref -gdk_gc_unref -gdk_gc_set_font -#endif gdk_gc_get_values gdk_gc_set_values gdk_gc_set_foreground diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 42dc712270..fbdfb6d5ed 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -223,36 +223,6 @@ gdk_gc_finalize (GObject *object) } /** - * gdk_gc_ref: - * @gc: a #GdkGC - * - * Deprecated function; use g_object_ref() instead. - * - * Return value: the gc. - * - * Deprecated: 2.0: Use g_object_ref() instead. - **/ -GdkGC * -gdk_gc_ref (GdkGC *gc) -{ - return (GdkGC *) g_object_ref (gc); -} - -/** - * gdk_gc_unref: - * @gc: a #GdkGC - * - * Decrement the reference count of @gc. - * - * Deprecated: 2.0: Use g_object_unref() instead. - **/ -void -gdk_gc_unref (GdkGC *gc) -{ - g_object_unref (gc); -} - -/** * gdk_gc_get_values: * @gc: a #GdkGC. * @values: the #GdkGCValues structure in which to store the results. @@ -410,29 +380,6 @@ gdk_gc_set_background (GdkGC *gc, } /** - * gdk_gc_set_font: - * @gc: a #GdkGC. - * @font: the new font. - * - * Sets the font for a graphics context. (Note that - * all text-drawing functions in GDK take a @font - * argument; the value set here is used when that - * argument is %NULL.) - **/ -void -gdk_gc_set_font (GdkGC *gc, - GdkFont *font) -{ - GdkGCValues values; - - g_return_if_fail (GDK_IS_GC (gc)); - g_return_if_fail (font != NULL); - - values.font = font; - gdk_gc_set_values (gc, &values, GDK_GC_FONT); -} - -/** * gdk_gc_set_function: * @gc: a #GdkGC. * @function: the #GdkFunction to use diff --git a/gdk/gdkgc.h b/gdk/gdkgc.h index c64d2af5b4..8681faaf7e 100644 --- a/gdk/gdkgc.h +++ b/gdk/gdkgc.h @@ -226,11 +226,6 @@ GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable, GdkGCValues *values, GdkGCValuesMask values_mask); -#ifndef GDK_DISABLE_DEPRECATED -GdkGC *gdk_gc_ref (GdkGC *gc); -void gdk_gc_unref (GdkGC *gc); -#endif - void gdk_gc_get_values (GdkGC *gc, GdkGCValues *values); void gdk_gc_set_values (GdkGC *gc, @@ -240,10 +235,6 @@ void gdk_gc_set_foreground (GdkGC *gc, const GdkColor *color); void gdk_gc_set_background (GdkGC *gc, const GdkColor *color); -#ifndef GDK_DISABLE_DEPRECATED -void gdk_gc_set_font (GdkGC *gc, - GdkFont *font); -#endif /* GDK_DISABLE_DEPRECATED */ void gdk_gc_set_function (GdkGC *gc, GdkFunction function); void gdk_gc_set_fill (GdkGC *gc, @@ -293,9 +284,6 @@ void gdk_gc_set_rgb_bg_color (GdkGC *gc, const GdkColor *color); GdkScreen * gdk_gc_get_screen (GdkGC *gc); -#ifndef GDK_DISABLE_DEPRECATED -#define gdk_gc_destroy g_object_unref -#endif /* GDK_DISABLE_DEPRECATED */ G_END_DECLS |