Author: rpmcruz
Date: Thu Aug 7 20:56:17 2008
New Revision: 49841
URL: http://svn.opensuse.org/viewcvs/yast?rev=49841&view=rev
Log:
* src/ygtklinklabel.c: small cosmetic fix.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/ygtklinklabel.c
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=49841&r1=49840&r2=49841&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Thu Aug 7 20:56:17 2008
@@ -1,3 +1,7 @@
+2008-08-07 Ricardo Cruz
+
+ * src/ygtklinklabel.c: small cosmetic fix.
+
2008-08-04 Ricardo Cruz
* src/YGUtils.cc: convert_to_xhtml() bug fix: allow '=' to be used
Modified: trunk/gtk/src/ygtklinklabel.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtklinklabel.c?rev=49841&r1=49840&r2=49841&view=diff
==============================================================================
--- trunk/gtk/src/ygtklinklabel.c (original)
+++ trunk/gtk/src/ygtklinklabel.c Thu Aug 7 20:56:17 2008
@@ -114,6 +114,8 @@
requisition->height = PANGO_PIXELS (ascent + descent);
}
+#define SPACING 4
+
static void ygtk_link_label_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
@@ -130,9 +132,9 @@
pango_layout_get_extents (label->link_layout, NULL, &link_logical);
gint link_width = link_logical.width / PANGO_SCALE;
gint x;
- width = width - link_logical.width + 4*PANGO_SCALE;
+ width = width - link_logical.width - SPACING*PANGO_SCALE;
if (logical.width < width && label->link_always_visible)
- x = allocation->x + logical.width/PANGO_SCALE + 4;
+ x = allocation->x + logical.width/PANGO_SCALE + SPACING;
else
x = allocation->x + (allocation->width - link_width);
gdk_window_move_resize (label->link_window, x,
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org