plug-ins: set the format strings on the PDF loader's resolution menu

so it says "pixels/foo" and not just "foo".
This commit is contained in:
Michael Natterer
2011-11-18 16:40:49 +01:00
parent 262cc1c946
commit 0f08e870f4

View File

@ -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);