[gimp/metadata-browser] plug-ins: set the format strings on the PDF loader's resolution menu



commit 57495eddce01342b4d5d949969728fe769b61343
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]