[gtk+] API: remove gdk_drawable_get_size()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] API: remove gdk_drawable_get_size()
- Date: Sun, 26 Sep 2010 13:47:13 +0000 (UTC)
commit f52a1fcfbde5c1b1108d4a03a9bf5c409b59a73e
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 20 17:30:54 2010 +0200
API: remove gdk_drawable_get_size()
docs/reference/gdk/gdk3-sections.txt | 1 -
gdk/gdk.symbols | 1 -
gdk/gdkdraw.c | 27 ---------------------------
gdk/gdkdrawable.h | 10 ----------
gdk/gdkwindow.c | 18 ------------------
5 files changed, 0 insertions(+), 57 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index 412663b..eae8b44 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -263,7 +263,6 @@ GDK_TYPE_COLOR
<TITLE>Drawing Primitives</TITLE>
<FILE>drawing</FILE>
GdkDrawable
-gdk_drawable_get_size
gdk_drawable_get_clip_region
gdk_drawable_get_visible_region
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index e8cad5e..883b7c1 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -521,7 +521,6 @@ gdk_drag_get_protocol
#if IN_HEADER(__GDK_DRAWABLE_H__)
#if IN_FILE(__GDK_DRAW_C__)
gdk_drawable_get_clip_region
-gdk_drawable_get_size
gdk_drawable_get_type G_GNUC_CONST
gdk_drawable_get_visible_region
#endif
diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c
index 2b48a0a..2c5c4e2 100644
--- a/gdk/gdkdraw.c
+++ b/gdk/gdkdraw.c
@@ -48,33 +48,6 @@ gdk_drawable_init (GdkDrawable *drawable)
{
}
-/* Manipulation of drawables
- */
-
-/**
- * gdk_drawable_get_size:
- * @drawable: a #GdkDrawable
- * @width: (out) (allow-none): location to store drawable's width, or %NULL
- * @height: (out) (allow-none): location to store drawable's height, or %NULL
- *
- * Fills * width and * height with the size of @drawable.
- * @width or @height can be %NULL if you only want the other one.
- *
- * On the X11 platform, if @drawable is a #GdkWindow, the returned
- * size is the size reported in the most-recently-processed configure
- * event, rather than the current size on the X server.
- *
- **/
-void
-gdk_drawable_get_size (GdkDrawable *drawable,
- gint *width,
- gint *height)
-{
- g_return_if_fail (GDK_IS_DRAWABLE (drawable));
-
- GDK_DRAWABLE_GET_CLASS (drawable)->get_size (drawable, width, height);
-}
-
/**
* gdk_drawable_get_clip_region:
* @drawable: a #GdkDrawable
diff --git a/gdk/gdkdrawable.h b/gdk/gdkdrawable.h
index c052ee4..72f3dc1 100644
--- a/gdk/gdkdrawable.h
+++ b/gdk/gdkdrawable.h
@@ -56,10 +56,6 @@ struct _GdkDrawableClass
{
GObjectClass parent_class;
- void (*get_size) (GdkDrawable *drawable,
- gint *width,
- gint *height);
-
cairo_region_t* (*get_clip_region) (GdkDrawable *drawable);
cairo_region_t* (*get_visible_region) (GdkDrawable *drawable);
@@ -85,12 +81,6 @@ struct _GdkDrawableClass
GType gdk_drawable_get_type (void) G_GNUC_CONST;
-/* Manipulation of drawables
- */
-void gdk_drawable_get_size (GdkDrawable *drawable,
- gint *width,
- gint *height);
-
cairo_region_t *gdk_drawable_get_clip_region (GdkDrawable *drawable);
cairo_region_t *gdk_drawable_get_visible_region (GdkDrawable *drawable);
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index e588a1f..09ce9e0 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -223,10 +223,6 @@ static void gdk_window_drop_cairo_surface (GdkWindowObject *private)
static void gdk_window_set_cairo_clip (GdkDrawable *drawable,
cairo_t *cr);
-static void gdk_window_real_get_size (GdkDrawable *drawable,
- gint *width,
- gint *height);
-
static cairo_region_t* gdk_window_get_clip_region (GdkDrawable *drawable);
static cairo_region_t* gdk_window_get_visible_region (GdkDrawable *drawable);
@@ -371,7 +367,6 @@ gdk_window_class_init (GdkWindowObjectClass *klass)
object_class->set_property = gdk_window_set_property;
object_class->get_property = gdk_window_get_property;
- drawable_class->get_size = gdk_window_real_get_size;
drawable_class->ref_cairo_surface = gdk_window_ref_cairo_surface;
drawable_class->create_cairo_surface = gdk_window_create_cairo_surface;
drawable_class->set_cairo_clip = gdk_window_set_cairo_clip;
@@ -3580,19 +3575,6 @@ gdk_window_clear_region_internal (GdkWindow *window,
}
static void
-gdk_window_real_get_size (GdkDrawable *drawable,
- gint *width,
- gint *height)
-{
- GdkWindowObject *private = (GdkWindowObject *)drawable;
-
- if (width)
- *width = private->width;
- if (height)
- *height = private->height;
-}
-
-static void
gdk_window_drop_cairo_surface (GdkWindowObject *private)
{
if (private->cairo_surface)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]