Update color on focus out of hex_entry. (#112665) (hex_focus_out): New

2003-05-23  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
	focus out of hex_entry.  (#112665)
	(hex_focus_out): New signal handler for focus out of hex entry.
This commit is contained in:
Matthias Clasen 2003-05-22 22:25:11 +00:00 committed by Matthias Clasen
parent e837bae836
commit a32adaf4f9
6 changed files with 43 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-05-23 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
focus out of hex_entry. (#112665)
(hex_focus_out): New signal handler for focus out of hex entry.
Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize):

View File

@ -1,3 +1,9 @@
2003-05-23 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
focus out of hex_entry. (#112665)
(hex_focus_out): New signal handler for focus out of hex entry.
Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize):

View File

@ -1,3 +1,9 @@
2003-05-23 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
focus out of hex_entry. (#112665)
(hex_focus_out): New signal handler for focus out of hex entry.
Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize):

View File

@ -1,3 +1,9 @@
2003-05-23 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
focus out of hex_entry. (#112665)
(hex_focus_out): New signal handler for focus out of hex entry.
Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize):

View File

@ -1,3 +1,9 @@
2003-05-23 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
focus out of hex_entry. (#112665)
(hex_focus_out): New signal handler for focus out of hex entry.
Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize):

View File

@ -1388,6 +1388,16 @@ hex_changed (GtkWidget *hex_entry,
g_free (text);
}
static gboolean
hex_focus_out (GtkWidget *hex_entry,
GdkEventFocus *event,
gpointer data)
{
hex_changed (hex_entry, data);
return FALSE;
}
static void
hsv_changed (GtkWidget *hsv,
gpointer data)
@ -1898,6 +1908,9 @@ gtk_color_selection_init (GtkColorSelection *colorsel)
g_signal_connect (priv->hex_entry, "activate",
G_CALLBACK (hex_changed), colorsel);
g_signal_connect (priv->hex_entry, "focus_out_event",
G_CALLBACK (hex_focus_out), colorsel);
gtk_tooltips_set_tip (priv->tooltips,
priv->hex_entry,
_("You can enter an HTML-style hexadecimal color value, or simply a color name such as 'orange' in this entry."), NULL);