diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2011-02-09 00:57:50 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:31 +0800 |
commit | 8efc1bc6f91e06ca61b00eb8119c9c36697e43a6 (patch) | |
tree | 95ec3e7ac41deec84bfd02de6ee05faf245b3dea /libgnomecanvas/gnome-canvas-rich-text.c | |
parent | be15d6730130da3f9e2fa6579233d5a9b304a7ea (diff) | |
download | gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.tar gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.tar.gz gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.tar.bz2 gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.tar.lz gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.tar.xz gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.tar.zst gsoc2013-evolution-8efc1bc6f91e06ca61b00eb8119c9c36697e43a6.zip |
Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
Diffstat (limited to 'libgnomecanvas/gnome-canvas-rich-text.c')
-rw-r--r-- | libgnomecanvas/gnome-canvas-rich-text.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libgnomecanvas/gnome-canvas-rich-text.c b/libgnomecanvas/gnome-canvas-rich-text.c index f836c12f1c..8c1e4142d9 100644 --- a/libgnomecanvas/gnome-canvas-rich-text.c +++ b/libgnomecanvas/gnome-canvas-rich-text.c @@ -2028,11 +2028,10 @@ gnome_canvas_rich_text_draw (GnomeCanvasItem *item, gint height) { GnomeCanvasRichText *text = GNOME_CANVAS_RICH_TEXT (item); - GtkStyle *style; GtkWidget *widget; cairo_matrix_t i2c; gdouble ax, ay, ax2, ay2; - gint x1, y1, x2, y2; + gint x1, x2; gnome_canvas_item_i2c_matrix (item, &i2c); @@ -2045,14 +2044,11 @@ gnome_canvas_rich_text_draw (GnomeCanvasItem *item, cairo_matrix_transform_point (&i2c, &ax2, &ay2); x1 = ax; - y1 = ay; x2 = ax2; - y2 = ay2; gtk_text_layout_set_screen_width (text->_priv->layout, x2 - x1); widget = GTK_WIDGET (item->canvas); - style = gtk_widget_get_style (widget); /* FIXME: should last arg be NULL? */ gtk_text_layout_draw (text->_priv->layout, widget, cr, NULL); |