gimp r25482 - in trunk: . app/display
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25482 - in trunk: . app/display
- Date: Mon, 14 Apr 2008 12:05:18 +0100 (BST)
Author: neo
Date: Mon Apr 14 12:05:18 2008
New Revision: 25482
URL: http://svn.gnome.org/viewvc/gimp?rev=25482&view=rev
Log:
2008-04-14 Sven Neumann <sven gimp org>
* app/display/gimpstatusbar.c (gimp_statusbar_label_expose):
fixed
icon placement for right-to-left render direction.
Modified:
trunk/ChangeLog
trunk/app/display/gimpstatusbar.c
Modified: trunk/app/display/gimpstatusbar.c
==============================================================================
--- trunk/app/display/gimpstatusbar.c (original)
+++ trunk/app/display/gimpstatusbar.c Mon Apr 14 12:05:18 2008
@@ -1182,11 +1182,15 @@
pango_layout_index_to_pos (gtk_label_get_layout (GTK_LABEL (widget)), 0,
&rect);
+ /* the rectangle width is negative when rendering right-to-left */
+ x += PANGO_PIXELS (rect.x) + (rect.width < 0 ?
+ PANGO_PIXELS (rect.width) : 0);
+ y += PANGO_PIXELS (rect.y);
+
gdk_draw_pixbuf (widget->window, widget->style->black_gc,
statusbar->icon,
0, 0,
- x + PANGO_PIXELS (rect.x),
- y + PANGO_PIXELS (rect.y),
+ x, y,
gdk_pixbuf_get_width (statusbar->icon),
gdk_pixbuf_get_height (statusbar->icon),
GDK_RGB_DITHER_NORMAL, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]