cheese r692 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: cheese r692 - in trunk: . src
- Date: Sat, 26 Apr 2008 19:35:36 +0100 (BST)
Author: acimitan
Date: Sat Apr 26 18:35:36 2008
New Revision: 692
URL: http://svn.gnome.org/viewvc/cheese?rev=692&view=rev
Log:
2008-04-26 Andrea Cimitan <andrea cimitan gmail com>
* src/cheese-countdown.c (on_expose):
the numbers are now aligned (increased size from 24 to 26)
Modified:
trunk/ChangeLog
trunk/src/cheese-countdown.c
Modified: trunk/src/cheese-countdown.c
==============================================================================
--- trunk/src/cheese-countdown.c (original)
+++ trunk/src/cheese-countdown.c Sat Apr 26 18:35:36 2008
@@ -344,7 +344,8 @@
CairoColor bgShade4;
gdouble fWidth = (gdouble) widget->allocation.width;
gdouble fHeight = (gdouble) widget->allocation.height;
- gint iOffsetX = (widget->allocation.width - 4 * 24) / 2;
+ /* 3 * 26 are the three numbers, 30 is the width of camera-icon.svg */
+ gint iOffsetX = (widget->allocation.width - 3 * 26 - 30) / 2;
gint iOffsetY = (widget->allocation.height - 30) / 2;
gdouble fAlpha1;
gdouble fAlpha2;
@@ -431,7 +432,7 @@
number = g_strdup_printf (_("%d "), 3);
iOffsetX += do_text (pContext,
number,
- 24 * PANGO_SCALE,
+ 26 * PANGO_SCALE,
"Bitstream Charter",
PANGO_WEIGHT_BOLD,
PANGO_STYLE_NORMAL);
@@ -449,7 +450,7 @@
number = g_strdup_printf (_("%d "), 2);
iOffsetX += do_text (pContext,
number,
- 24 * PANGO_SCALE,
+ 26 * PANGO_SCALE,
"Bitstream Charter",
PANGO_WEIGHT_BOLD,
PANGO_STYLE_NORMAL);
@@ -467,7 +468,7 @@
number = g_strdup_printf (_("%d "), 1);
iOffsetX += do_text (pContext,
number,
- 24 * PANGO_SCALE,
+ 26 * PANGO_SCALE,
"Bitstream Charter",
PANGO_WEIGHT_BOLD,
PANGO_STYLE_NORMAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]