[gimp/gtk3-port: 298/457] spinscale: Decrease height
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 298/457] spinscale: Decrease height
- Date: Sat, 19 May 2018 18:28:42 +0000 (UTC)
commit 1f74b9e5d7653978de352bb860db98cb26b03c8f
Author: Timm Bäder <mail baedert org>
Date: Mon Aug 1 21:51:05 2016 +0200
spinscale: Decrease height
app/widgets/gimpspinscale.c | 19 ++++---------------
1 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index a2d292c..3da3431 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -297,25 +297,14 @@ gimp_spin_scale_get_preferred_height (GtkWidget *widget,
gint *minimum_height,
gint *natural_height)
{
- PangoContext *context = gtk_widget_get_pango_context (widget);
- PangoFontMetrics *metrics;
- gint height;
-
GTK_WIDGET_CLASS (parent_class)->get_preferred_height (widget,
minimum_height,
natural_height);
- metrics = pango_context_get_metrics (context,
- pango_context_get_font_description (context),
- pango_context_get_language (context));
-
- height = PANGO_PIXELS (pango_font_metrics_get_ascent (metrics) +
- pango_font_metrics_get_descent (metrics));
-
- *minimum_height += height;
- *natural_height += height;
-
- pango_font_metrics_unref (metrics);
+ /* Just increase this a bit to make the clickable area larger */
+ *minimum_height *= 1.2;
+ *natural_height *= 1.2;
+ return;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]