diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-05-15 20:55:09 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-05-15 20:55:09 +0000 |
commit | 030ac8095a0d31386a197c7fe066b2fd96095d0e (patch) | |
tree | 5a34e1ac0f1ebb519cc21acbd554f7bd98628197 /gtk/gtkfontsel.c | |
parent | b835fe2cd746b2024e43aeecb30aae2be9dd1814 (diff) | |
download | gtk+-030ac8095a0d31386a197c7fe066b2fd96095d0e.tar.gz |
Update from contents of size entry on focus out. (#76493, Lauris
Wed May 15 16:52:57 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c: Update from contents of size entry
on focus out. (#76493, Lauris Kaplinski)
* gtk/gtkclipboard.c (selection_get_cb): Fix backwads
info/time arguments. (#80226)
Diffstat (limited to 'gtk/gtkfontsel.c')
-rw-r--r-- | gtk/gtkfontsel.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 19d4b74816..6307d9d5b2 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -138,6 +138,9 @@ static void gtk_font_selection_show_available_sizes (GtkFontSelection *fs, gboolean first_time); static void gtk_font_selection_size_activate (GtkWidget *w, gpointer data); +static gboolean gtk_font_selection_size_focus_out (GtkWidget *w, + GdkEventFocus *event, + gpointer data); static void gtk_font_selection_select_size (GtkTreeSelection *selection, gpointer data); @@ -322,6 +325,9 @@ gtk_font_selection_init (GtkFontSelection *fontsel) gtk_signal_connect (GTK_OBJECT (fontsel->size_entry), "activate", (GtkSignalFunc) gtk_font_selection_size_activate, fontsel); + gtk_signal_connect_after (GTK_OBJECT (fontsel->size_entry), "focus_out_event", + (GtkSignalFunc) gtk_font_selection_size_focus_out, + fontsel); font_label = gtk_label_new_with_mnemonic (_("_Family:")); gtk_misc_set_alignment (GTK_MISC (font_label), 0.0, 0.5); @@ -995,6 +1001,16 @@ gtk_font_selection_size_activate (GtkWidget *w, gtk_font_selection_set_size (fontsel, new_size); } +static gboolean +gtk_font_selection_size_focus_out (GtkWidget *w, + GdkEventFocus *event, + gpointer data) +{ + gtk_font_selection_size_activate (w, data); + + return TRUE; +} + /* This is called when a size is selected in the list. */ static void gtk_font_selection_select_size (GtkTreeSelection *selection, |