[gimp/soc-2010-cage-2] libgimpwidgets: use the short and long format strings for the unit combo



commit af3234788a4867b6554d19add3d2a5b9d5d5f891
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 5 16:28:54 2010 +0100

    libgimpwidgets: use the short and long format strings for the unit combo
    
    where the short one gets used for the combo itself, and the long one
    for the popup.

 libgimpwidgets/gimpunitcombobox.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimpwidgets/gimpunitcombobox.c b/libgimpwidgets/gimpunitcombobox.c
index af9acbf..ac945d2 100644
--- a/libgimpwidgets/gimpunitcombobox.c
+++ b/libgimpwidgets/gimpunitcombobox.c
@@ -63,7 +63,7 @@ gimp_unit_combo_box_init (GimpUnitComboBox *combo)
   cell = gtk_cell_renderer_text_new ();
   gtk_cell_layout_pack_start (layout, cell, TRUE);
   gtk_cell_layout_set_attributes (layout, cell,
-                                  "text", GIMP_UNIT_STORE_UNIT_PLURAL,
+                                  "text", GIMP_UNIT_STORE_UNIT_LONG_FORMAT,
                                   NULL);
 }
 
@@ -88,7 +88,7 @@ gimp_unit_combo_box_style_set (GtkWidget *widget,
                        NULL);
   gtk_cell_layout_pack_start (layout, cell, TRUE);
   gtk_cell_layout_set_attributes (layout, cell,
-                                  "text",  GIMP_UNIT_STORE_UNIT_ABBREVIATION,
+                                  "text",  GIMP_UNIT_STORE_UNIT_SHORT_FORMAT,
                                   NULL);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]