Commit a32adaf4 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent e837bae8
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> Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize): * gtk/gtkwidget.c (gtk_widget_realize):
......
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> Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize): * gtk/gtkwidget.c (gtk_widget_realize):
......
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> Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize): * gtk/gtkwidget.c (gtk_widget_realize):
......
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> Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize): * gtk/gtkwidget.c (gtk_widget_realize):
......
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> Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_realize): * gtk/gtkwidget.c (gtk_widget_realize):
......
...@@ -1388,6 +1388,16 @@ hex_changed (GtkWidget *hex_entry, ...@@ -1388,6 +1388,16 @@ hex_changed (GtkWidget *hex_entry,
g_free (text); g_free (text);
} }
static gboolean
hex_focus_out (GtkWidget *hex_entry,
GdkEventFocus *event,
gpointer data)
{
hex_changed (hex_entry, data);
return FALSE;
}
static void static void
hsv_changed (GtkWidget *hsv, hsv_changed (GtkWidget *hsv,
gpointer data) gpointer data)
...@@ -1898,6 +1908,9 @@ gtk_color_selection_init (GtkColorSelection *colorsel) ...@@ -1898,6 +1908,9 @@ gtk_color_selection_init (GtkColorSelection *colorsel)
g_signal_connect (priv->hex_entry, "activate", g_signal_connect (priv->hex_entry, "activate",
G_CALLBACK (hex_changed), colorsel); 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, gtk_tooltips_set_tip (priv->tooltips,
priv->hex_entry, priv->hex_entry,
_("You can enter an HTML-style hexadecimal color value, or simply a color name such as 'orange' in this entry."), NULL); _("You can enter an HTML-style hexadecimal color value, or simply a color name such as 'orange' in this entry."), NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment