diff --git a/app/widgets/gimpcoloreditor.c b/app/widgets/gimpcoloreditor.c index c5a6abdd17..f6c0f49bfd 100644 --- a/app/widgets/gimpcoloreditor.c +++ b/app/widgets/gimpcoloreditor.c @@ -264,10 +264,6 @@ gimp_color_editor_init (GimpColorEditor *editor) /* The hex triplet entry */ editor->hex_entry = gimp_color_hex_entry_new (); - gimp_help_set_help_data (editor->hex_entry, - _("Hexadecimal color notation as used in HTML and " - "CSS. This entry also accepts CSS color names."), - NULL); gtk_box_pack_end (GTK_BOX (vbox), editor->hex_entry, FALSE, FALSE, 0); gtk_widget_show (editor->hex_entry); diff --git a/app/widgets/gimpcolormapeditor.c b/app/widgets/gimpcolormapeditor.c index 8d6f7c972b..300d0f17c8 100644 --- a/app/widgets/gimpcolormapeditor.c +++ b/app/widgets/gimpcolormapeditor.c @@ -216,7 +216,6 @@ gimp_colormap_editor_init (GimpColormapEditor *editor) editor); editor->color_entry = gimp_color_hex_entry_new (); - gtk_entry_set_width_chars (GTK_ENTRY (editor->color_entry), 12); gimp_table_attach_aligned (GTK_TABLE (table), 0, 1, _("HTML notation:"), 0.0, 0.5, editor->color_entry, 1, TRUE); diff --git a/libgimpwidgets/gimpcolorhexentry.c b/libgimpwidgets/gimpcolorhexentry.c index 7393506fa4..94eb6c2b78 100644 --- a/libgimpwidgets/gimpcolorhexentry.c +++ b/libgimpwidgets/gimpcolorhexentry.c @@ -33,6 +33,9 @@ #include "gimpcellrenderercolor.h" #include "gimpcolorhexentry.h" +#include "gimphelpui.h" + +#include "libgimp/libgimp-intl.h" /** @@ -111,6 +114,11 @@ gimp_color_hex_entry_init (GimpColorHexEntry *entry) */ gtk_entry_set_width_chars (GTK_ENTRY (entry), 8); + gimp_help_set_help_data (GTK_WIDGET (entry), + _("Hexadecimal color notation as used in HTML and " + "CSS. This entry also accepts CSS color names."), + NULL); + gimp_rgba_set (&entry->color, 0.0, 0.0, 0.0, 1.0); store = gtk_list_store_new (NUM_COLUMNS, G_TYPE_STRING, GIMP_TYPE_RGB); diff --git a/libgimpwidgets/gimpcolorselection.c b/libgimpwidgets/gimpcolorselection.c index 0678ddab59..b86db40b7b 100644 --- a/libgimpwidgets/gimpcolorselection.c +++ b/libgimpwidgets/gimpcolorselection.c @@ -312,10 +312,6 @@ gimp_color_selection_init (GimpColorSelection *selection) /* The hex triplet entry */ entry = gimp_color_hex_entry_new (); - gimp_help_set_help_data (entry, - _("Hexadecimal color notation as used in HTML and " - "CSS. This entry also accepts CSS color names."), - NULL); gtk_box_pack_end (GTK_BOX (hbox), entry, TRUE, TRUE, 0); gtk_widget_show (entry); diff --git a/po-libgimp/POTFILES.in b/po-libgimp/POTFILES.in index d11bc6fdd7..8d4cb82f96 100644 --- a/po-libgimp/POTFILES.in +++ b/po-libgimp/POTFILES.in @@ -43,6 +43,7 @@ libgimpthumb/gimpthumbnail.c libgimpwidgets/gimpbrowser.c libgimpwidgets/gimpcolorbutton.c +libgimpwidgets/gimpcolorhexentry.c libgimpwidgets/gimpcolorprofilechooserdialog.c libgimpwidgets/gimpcolorprofilestore.c libgimpwidgets/gimpcolorprofileview.c