app, libgimpwidgets: all GimpColorHexEntries should have the same tooltip

Set the tooltip in GimpColorHexEntry itself and remove all other
tooltip setting. This just moves the translatable string sround in
libgimpwidgets/, and even removes it from app/.

(cherry picked from commit 2b8b780b6a)
This commit is contained in:
Michael Natterer
2018-06-24 14:19:25 +02:00
parent eb57f0d0b3
commit 94235e4447
5 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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