[gthumb: 23/23] contact_sheet: small refactoring
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 23/23] contact_sheet: small refactoring
- Date: Sun, 26 Dec 2010 19:21:39 +0000 (UTC)
commit 8b8e48ceac9044c220ada66f1a4f4577c1120de4
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Dec 26 20:19:18 2010 +0100
contact_sheet: small refactoring
extensions/contact_sheet/gth-contact-sheet-theme.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/extensions/contact_sheet/gth-contact-sheet-theme.c b/extensions/contact_sheet/gth-contact-sheet-theme.c
index a73a89d..49100f4 100644
--- a/extensions/contact_sheet/gth-contact-sheet-theme.c
+++ b/extensions/contact_sheet/gth-contact-sheet-theme.c
@@ -29,6 +29,9 @@
#define DEFAULT_FONT "Sans 12"
#define FRAME_BORDER 5
+#define HEADER_TEXT _("Header")
+#define FOOTER_TEXT _("Footer")
+#define CAPTION_TEXT _("Caption")
static void
@@ -492,7 +495,7 @@ paint_thumbnail (GthContactSheetTheme *theme,
frame_rect.width,
FALSE,
font_scale,
- _("Caption"));
+ CAPTION_TEXT);
}
@@ -538,19 +541,19 @@ gth_contact_sheet_theme_paint_preview (GthContactSheetTheme *theme,
theme->header_font_name,
width,
font_scale,
- _("Header"),
+ HEADER_TEXT,
&header_rect);
get_text_bounds (theme,
theme->footer_font_name,
width,
font_scale,
- _("Footer"),
+ FOOTER_TEXT,
&footer_rect);
get_text_bounds (theme,
theme->caption_font_name,
size,
font_scale,
- _("Caption"),
+ CAPTION_TEXT,
&caption_rect);
n_columns = ((width- (theme->col_spacing * 2)) / (size + (FRAME_BORDER * 2) + theme->col_spacing));
@@ -582,7 +585,7 @@ gth_contact_sheet_theme_paint_preview (GthContactSheetTheme *theme,
width,
FALSE,
font_scale,
- _("Header"));
+ HEADER_TEXT);
/* footer */
@@ -595,7 +598,7 @@ gth_contact_sheet_theme_paint_preview (GthContactSheetTheme *theme,
width,
TRUE,
font_scale,
- _("Footer"));
+ FOOTER_TEXT);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]