/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2012, 2014 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdlib.h>
#include <string.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
inset_rectangle (const GdkRectangle *src,
const GtkBorder *inset,
PangoRectangle logical;
GtkRequisition req;
- if (gtk_widget_get_direction (base) == GTK_TEXT_DIR_LTR)
- xalign = xalign;
- else
+ if (gtk_widget_get_direction (base) == GTK_TEXT_DIR_RTL)
xalign = 1.0 - xalign;
pango_layout_get_pixel_extents (layout, NULL, &logical);
get_layout_location (base, &label_area, layout, xpad, ypad, xalign, yalign,
&x, &y);
- gtk_paint_layout (label_style, cr, state_type, FALSE,
+ gtk_paint_layout (label_style, cr, state_type, FALSE,
base, "label", x, y, layout);
g_object_unref (layout);