[gimp] plug-ins: set the format strings on the PDF loader's resolution menu
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: set the format strings on the PDF loader's resolution menu
- Date: Fri, 18 Nov 2011 15:41:44 +0000 (UTC)
commit 0f08e870f44ee51d14ef21b3a06d94e63ad570ce
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 18 16:40:49 2011 +0100
plug-ins: set the format strings on the PDF loader's resolution menu
so it says "pixels/foo" and not just "foo".
plug-ins/common/file-pdf-load.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index c55f780..cb70e32 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -1422,6 +1422,10 @@ gimp_resolution_entry_new (const gchar *width_label,
model = gtk_combo_box_get_model (GTK_COMBO_BOX (gre->unitmenu));
gimp_unit_store_set_has_pixels (GIMP_UNIT_STORE (model), FALSE);
gimp_unit_store_set_has_percent (GIMP_UNIT_STORE (model), FALSE);
+ g_object_set (model,
+ "short-format", _("pixels/%a"),
+ "long-format", _("pixels/%a"),
+ NULL);
gimp_unit_combo_box_set_active (GIMP_UNIT_COMBO_BOX (gre->unitmenu),
initial_unit);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]