[gimp/metadata-browser] app: remove unused variable in GimpSpinScale
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: remove unused variable in GimpSpinScale
- Date: Wed, 12 Sep 2012 22:54:04 +0000 (UTC)
commit 1af7f1bc4ea366a233b903692665723c4ad073c9
Author: Michael Natterer <mitch gimp org>
Date: Wed Feb 22 23:37:32 2012 +0100
app: remove unused variable in GimpSpinScale
app/widgets/gimpspinscale.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index 5b16ed2..5c2aded 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -236,7 +236,9 @@ gimp_spin_scale_size_request (GtkWidget *widget,
if (private->label)
{
- gint char_width, digit_width, char_pixels;
+ gint char_width;
+ gint digit_width;
+ gint char_pixels;
char_width = pango_font_metrics_get_approximate_char_width (metrics);
digit_width = pango_font_metrics_get_approximate_digit_width (metrics);
@@ -373,11 +375,10 @@ gimp_spin_scale_get_target (GtkWidget *widget,
gdouble x,
gdouble y)
{
- PangoFontMetrics *metrics;
- GtkAllocation allocation;
- PangoRectangle logical;
- gint layout_x;
- gint layout_y;
+ GtkAllocation allocation;
+ PangoRectangle logical;
+ gint layout_x;
+ gint layout_y;
gtk_widget_get_allocation (widget, &allocation);
gtk_entry_get_layout_offsets (GTK_ENTRY (widget), &layout_x, &layout_y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]