projects
/
dockapps
/
hvclock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5333297
)
Fixed centering of text in calendar mode
author
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 2 Jun 2013 12:19:13 +0000
(08:19 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 2 Jun 2013 12:19:45 +0000
(08:19 -0400)
src/clock.c
patch
|
blob
|
history
diff --git
a/src/clock.c
b/src/clock.c
index
f86b025
..
798d152
100644
(file)
--- a/
src/clock.c
+++ b/
src/clock.c
@@
-325,7
+325,7
@@
calendar_display_test(GtkWidget *clock, struct tm *ts, cairo_t *cr,
char str[32];
diameter = 2 * get_clock_face_radius(clock);
- center_x =
clock->allocation.width /
2;
+ center_x =
(clock->allocation.width / 2) -
2;
start_y = (clock->allocation.height / 2) - (diameter / 2);
cairo_set_font_size(cr, diameter * font_ratio);