[gimp/soc-2011-gimpunitentry: 52/68] GimpUnitEntries: rename add_label to add_preview_label



commit 0ccd092aa38a2a3ef37cd7c32f93b83df2baf1f4
Author: Enrico Schröder <enni schroeder gmail com>
Date:   Tue Jul 19 11:27:09 2011 +0200

    GimpUnitEntries: rename add_label to add_preview_label
    
    (and remove preview label from New Layer dialog)

 app/dialogs/layer-options-dialog.c |    1 -
 libgimpwidgets/gimpunitentries.c   |    8 ++++----
 libgimpwidgets/gimpunitentries.h   |    2 +-
 libgimpwidgets/gimpwidgets.def     |    2 +-
 libgimpwidgets/test-unitentrygui.c |    2 +-
 5 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/app/dialogs/layer-options-dialog.c b/app/dialogs/layer-options-dialog.c
index 8e32c65..22e9f30 100644
--- a/app/dialogs/layer-options-dialog.c
+++ b/app/dialogs/layer-options-dialog.c
@@ -141,7 +141,6 @@ layer_options_dialog_new (GimpImage    *image,
       options->unit_entries = GIMP_UNIT_ENTRIES (gimp_unit_entries_new ());
       width_entry = gimp_unit_entries_add_entry_defaults  (options->unit_entries, "width", _("Width:"));
       height_entry = gimp_unit_entries_add_entry_defaults (options->unit_entries, "height", _("Height:"));
-      gimp_unit_entries_add_label (options->unit_entries, GIMP_UNIT_PIXEL, "width", "height");
       
       gimp_unit_entry_set_unit        (GIMP_UNIT_ENTRY (width_entry), GIMP_UNIT_PIXEL);
       
diff --git a/libgimpwidgets/gimpunitentries.c b/libgimpwidgets/gimpunitentries.c
index 7ce47d0..547396b 100644
--- a/libgimpwidgets/gimpunitentries.c
+++ b/libgimpwidgets/gimpunitentries.c
@@ -172,10 +172,10 @@ gimp_unit_entries_add_entry_defaults (GimpUnitEntries *entries,
 
 /* add preview label showing value of the two given entries in given unit */
 void 
-gimp_unit_entries_add_label (GimpUnitEntries *entries,
-                             GimpUnit         unit,
-                             const gchar     *id1,
-                             const gchar     *id2)
+gimp_unit_entries_add_preview_label (GimpUnitEntries *entries,
+                                     GimpUnit         unit,
+                                     const gchar     *id1,
+                                     const gchar     *id2)
 {
   GtkWidget     *label = gtk_label_new("preview");
   GimpUnitEntry *entry1 = gimp_unit_entries_get_entry (entries, id1);
diff --git a/libgimpwidgets/gimpunitentries.h b/libgimpwidgets/gimpunitentries.h
index 5f8bba9..2461fc5 100644
--- a/libgimpwidgets/gimpunitentries.h
+++ b/libgimpwidgets/gimpunitentries.h
@@ -69,7 +69,7 @@ GtkWidget*      gimp_unit_entries_add_entry             (GimpUnitEntries *entrie
 GtkWidget*      gimp_unit_entries_add_entry_defaults    (GimpUnitEntries *entries, 
                                                          const gchar     *id, 
                                                          const gchar     *label);
-void            gimp_unit_entries_add_label             (GimpUnitEntries *entries, 
+void            gimp_unit_entries_add_preview_label     (GimpUnitEntries *entries, 
                                                          GimpUnit         unit, 
                                                          const char      *id1, 
                                                          const char      *id2);
diff --git a/libgimpwidgets/gimpwidgets.def b/libgimpwidgets/gimpwidgets.def
index 0017fb0..2bea867 100644
--- a/libgimpwidgets/gimpwidgets.def
+++ b/libgimpwidgets/gimpwidgets.def
@@ -382,7 +382,7 @@ EXPORTS
        gimp_unit_entries_add_chain_button
        gimp_unit_entries_add_entry
        gimp_unit_entries_add_entry_defaults
-       gimp_unit_entries_add_label
+       gimp_unit_entries_add_preview_label
        gimp_unit_entries_get_chain_button
        gimp_unit_entries_get_entry
        gimp_unit_entries_get_entry_count
diff --git a/libgimpwidgets/test-unitentrygui.c b/libgimpwidgets/test-unitentrygui.c
index 0580207..f16dfcb 100644
--- a/libgimpwidgets/test-unitentrygui.c
+++ b/libgimpwidgets/test-unitentrygui.c
@@ -43,7 +43,7 @@ create_interface(void)
   entries = GIMP_UNIT_ENTRIES (gimp_unit_entries_new ());
   gimp_unit_entries_add_entry_defaults (entries, "width", "Width");
   gimp_unit_entries_add_entry_defaults (entries, "height", "Height");
-  gimp_unit_entries_add_label (entries, GIMP_UNIT_PIXEL, "width", "height");
+  gimp_unit_entries_add_preview_label (entries, GIMP_UNIT_PIXEL, "width", "height");
 
   gimp_unit_entries_add_chain_button (entries, "width", "height");
 


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