summaryrefslogtreecommitdiff
path: root/gtk/gtkmodelbutton.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-02 19:11:53 +0200
committerTimm Bäder <mail@baedert.org>2017-05-05 11:18:05 +0200
commit91932ffbc719350fcf629cfa753681de871685f0 (patch)
treedb20b1984ce29deaf68a911f2dea1f24aaae2c69 /gtk/gtkmodelbutton.c
parent7625e40e8293aa2bf76bf2b53ce888d80cf644e2 (diff)
downloadgtk+-91932ffbc719350fcf629cfa753681de871685f0.tar.gz
button: Remove baseline_align value
It's unused.
Diffstat (limited to 'gtk/gtkmodelbutton.c')
-rw-r--r--gtk/gtkmodelbutton.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index baa568af73..7c84725f88 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -807,8 +807,6 @@ gtk_model_button_allocate (GtkCssGadget *gadget,
{
GtkWidget *widget;
GtkModelButton *button;
- PangoContext *pango_context;
- PangoFontMetrics *metrics;
GtkAllocation child_allocation;
GtkWidget *child;
gint check_min_width, check_nat_width;
@@ -874,16 +872,6 @@ gtk_model_button_allocate (GtkCssGadget *gadget,
gtk_widget_size_allocate_with_baseline (child, &child_allocation, baseline);
}
- pango_context = gtk_widget_get_pango_context (widget);
- metrics = pango_context_get_metrics (pango_context,
- pango_context_get_font_description (pango_context),
- pango_context_get_language (pango_context));
- GTK_BUTTON (button)->priv->baseline_align =
- (double)pango_font_metrics_get_ascent (metrics) /
- (pango_font_metrics_get_ascent (metrics) + pango_font_metrics_get_descent (metrics));
- pango_font_metrics_unref (metrics);
-
-
if (gtk_widget_get_realized (widget))
{
GtkAllocation border_allocation;