[gthumb] [image_print] fixed the default print font value
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] [image_print] fixed the default print font value
- Date: Fri, 12 Mar 2010 11:38:55 +0000 (UTC)
commit a20cd92ec105cbb8196c804d26d43ad36c3de739
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Mar 12 12:37:59 2010 +0100
[image_print] fixed the default print font value
[bug #612629]
.../image_print/data/gthumb_image_print.schemas.in | 2 +-
extensions/image_print/gth-image-print-job.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/extensions/image_print/data/gthumb_image_print.schemas.in b/extensions/image_print/data/gthumb_image_print.schemas.in
index 5ca8d45..9e31623 100644
--- a/extensions/image_print/data/gthumb_image_print.schemas.in
+++ b/extensions/image_print/data/gthumb_image_print.schemas.in
@@ -19,7 +19,7 @@
<applyto>/apps/gthumb/ext/image_print/font_name</applyto>
<owner>gthumb</owner>
<type>string</type>
- <default>[sans serif] [normal] [10]</default>
+ <default>sans normal 10</default>
<locale name="C">
<short></short>
<long>
diff --git a/extensions/image_print/gth-image-print-job.c b/extensions/image_print/gth-image-print-job.c
index d55920e..10050aa 100644
--- a/extensions/image_print/gth-image-print-job.c
+++ b/extensions/image_print/gth-image-print-job.c
@@ -31,6 +31,7 @@
#include "preferences.h"
+#define DEFAULT_FONT_NAME "sans normal 10"
#define GET_WIDGET(name) _gtk_builder_get_widget (self->priv->builder, (name))
@@ -135,7 +136,7 @@ gth_image_print_job_init (GthImagePrintJob *self)
self->priv->page_setup = NULL;
self->priv->current_page = 0;
self->priv->caption_attributes = eel_gconf_get_string (PREF_IMAGE_PRINT_CAPTION, "");
- self->priv->font_name = eel_gconf_get_string (PREF_IMAGE_PRINT_FONT_NAME, "sans 10");
+ self->priv->font_name = eel_gconf_get_string (PREF_IMAGE_PRINT_FONT_NAME, DEFAULT_FONT_NAME);
self->priv->selected = NULL;
self->priv->requested_images_per_page = eel_gconf_get_integer (PREF_IMAGE_PRINT_IMAGES_PER_PAGE, 1);
self->priv->unit = eel_gconf_get_enum (PREF_IMAGE_PRINT_UNIT, GTH_TYPE_METRIC, GTH_METRIC_PIXELS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]