diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-29 01:49:30 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:11:33 +0200 |
commit | a6ef35610765528cf254bcdd3a9f0d973dcf7959 (patch) | |
tree | 69061c8f0bbbd7df9c96f3949c1c4dab61c70567 /gdk/win32 | |
parent | ffed0768918fd95d7e80aba61513f99d54617f4c (diff) | |
download | gtk+-a6ef35610765528cf254bcdd3a9f0d973dcf7959.tar.gz |
API: Remove drawable getters for visual, screen and depth
Removed and replaced are:
gdk_drawable_get_visual() => gdk_window_get_visual()
gdk_drawable_get_screen() => gdk_window_get_screen()
gdk_drawable_get_depth() => gdk_visual_get_depth
(gdk_window_get_visual())
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkdrawable-win32.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gdk/win32/gdkdrawable-win32.c b/gdk/win32/gdkdrawable-win32.c index 2ad840ecab..849c901add 100644 --- a/gdk/win32/gdkdrawable-win32.c +++ b/gdk/win32/gdkdrawable-win32.c @@ -55,12 +55,6 @@ static cairo_surface_t *gdk_win32_create_cairo_surface (GdkDrawable *drawable, static GdkColormap* gdk_win32_get_colormap (GdkDrawable *drawable); -static gint gdk_win32_get_depth (GdkDrawable *drawable); - -static GdkScreen * gdk_win32_get_screen (GdkDrawable *drawable); - -static GdkVisual* gdk_win32_get_visual (GdkDrawable *drawable); - static void gdk_drawable_impl_win32_finalize (GObject *object); static const cairo_user_data_key_t gdk_win32_cairo_key; @@ -80,10 +74,6 @@ _gdk_drawable_impl_win32_class_init (GdkDrawableImplWin32Class *klass) drawable_class->create_cairo_surface = gdk_win32_create_cairo_surface; drawable_class->get_colormap = gdk_win32_get_colormap; - - drawable_class->get_depth = gdk_win32_get_depth; - drawable_class->get_screen = gdk_win32_get_screen; - drawable_class->get_visual = gdk_win32_get_visual; } static void @@ -257,26 +247,6 @@ _gdk_windowing_set_cairo_surface_size (cairo_surface_t *surface, return FALSE; } -static gint -gdk_win32_get_depth (GdkDrawable *drawable) -{ - /* This is a bit bogus but I'm not sure the other way is better */ - - return gdk_drawable_get_depth (GDK_DRAWABLE_IMPL_WIN32 (drawable)->wrapper); -} - -static GdkScreen* -gdk_win32_get_screen (GdkDrawable *drawable) -{ - return gdk_screen_get_default (); -} - -static GdkVisual* -gdk_win32_get_visual (GdkDrawable *drawable) -{ - return gdk_drawable_get_visual (GDK_DRAWABLE_IMPL_WIN32 (drawable)->wrapper); -} - HGDIOBJ gdk_win32_drawable_get_handle (GdkDrawable *drawable) { |