[gtk+/rendering-cleanup] Fix compile warnings
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup] Fix compile warnings
- Date: Thu, 29 Jul 2010 12:21:45 +0000 (UTC)
commit c1c13443a669746aa5a4ee92d74f684e45cd535b
Author: Kristian Rietveld <kris gtk org>
Date: Thu Jul 29 14:20:32 2010 +0200
Fix compile warnings
gdk/gdkwindow.c | 9 +--------
gtk/gtkstyle.c | 1 -
gtk/gtktreeview.c | 5 -----
3 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 387ab8c..335eca2 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -239,13 +239,7 @@ static void gdk_window_real_set_colormap (GdkDrawable *drawable,
static GdkColormap* gdk_window_real_get_colormap (GdkDrawable *drawable);
static GdkDrawable* gdk_window_get_source_drawable (GdkDrawable *drawable);
-static GdkDrawable* gdk_window_get_composite_drawable (GdkDrawable *drawable,
- gint x,
- gint y,
- gint width,
- gint height,
- gint *composite_x_offset,
- gint *composite_y_offset);
+
static cairo_region_t* gdk_window_get_clip_region (GdkDrawable *drawable);
static cairo_region_t* gdk_window_get_visible_region (GdkDrawable *drawable);
@@ -3731,7 +3725,6 @@ gdk_window_clear_backing_region_redirect (GdkWindow *window,
GdkWindowObject *private = (GdkWindowObject *)window;
GdkWindowRedirect *redirect = private->redirect;
cairo_region_t *clip_region;
- GdkRectangle clipbox;
gint x_offset, y_offset;
GdkWindowPaint paint;
cairo_t *cr;
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index e9926d1..f7d1e69 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -5771,7 +5771,6 @@ draw_insertion_cursor (GtkWidget *widget,
gint stem_width;
gint arrow_width;
gint x, y;
- gint i;
gfloat cursor_aspect_ratio;
gint offset;
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 1722fbe..df98edc 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -3455,8 +3455,6 @@ gtk_tree_view_motion_draw_column_motion_arrow (GtkTreeView *tree_view)
}
else if (arrow_type == DRAG_COLUMN_WINDOW_STATE_ARROW)
{
- gint i, j = 1;
-
width = tree_view->priv->expander_size;
/* Get x, y, width, height of arrow */
@@ -3524,8 +3522,6 @@ gtk_tree_view_motion_draw_column_motion_arrow (GtkTreeView *tree_view)
else if (arrow_type == DRAG_COLUMN_WINDOW_STATE_ARROW_LEFT ||
arrow_type == DRAG_COLUMN_WINDOW_STATE_ARROW_RIGHT)
{
- gint i, j = 1;
-
width = tree_view->priv->expander_size;
/* Get x, y, width, height of arrow */
@@ -4225,7 +4221,6 @@ gtk_tree_view_draw_line (GtkTreeView *tree_view,
int y2)
{
cairo_t *cr;
- int line_width;
cr = gdk_cairo_create (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]