Don't close the dialog on focus out of the size entry. (#143505, David
2004-06-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't close the dialog on focus out of the size entry. (#143505, David Hawthorne)
This commit is contained in:
committed by
Matthias Clasen
parent
3127f29ef6
commit
a3d5971960
@ -1,3 +1,9 @@
|
|||||||
|
2004-06-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
|
||||||
|
close the dialog on focus out of the size entry. (#143505,
|
||||||
|
David Hawthorne)
|
||||||
|
|
||||||
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #138807.
|
Fix #138807.
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
2004-06-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
|
||||||
|
close the dialog on focus out of the size entry. (#143505,
|
||||||
|
David Hawthorne)
|
||||||
|
|
||||||
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #138807.
|
Fix #138807.
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
2004-06-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
|
||||||
|
close the dialog on focus out of the size entry. (#143505,
|
||||||
|
David Hawthorne)
|
||||||
|
|
||||||
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #138807.
|
Fix #138807.
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
2004-06-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
|
||||||
|
close the dialog on focus out of the size entry. (#143505,
|
||||||
|
David Hawthorne)
|
||||||
|
|
||||||
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
2004-06-02 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #138807.
|
Fix #138807.
|
||||||
|
|||||||
@ -998,7 +998,16 @@ gtk_font_selection_size_focus_out (GtkWidget *w,
|
|||||||
GdkEventFocus *event,
|
GdkEventFocus *event,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
gtk_font_selection_size_activate (w, data);
|
GtkFontSelection *fontsel;
|
||||||
|
gint new_size;
|
||||||
|
const gchar *text;
|
||||||
|
|
||||||
|
fontsel = GTK_FONT_SELECTION (data);
|
||||||
|
|
||||||
|
text = gtk_entry_get_text (GTK_ENTRY (fontsel->size_entry));
|
||||||
|
new_size = MAX (0.1, atof (text) * PANGO_SCALE + 0.5);
|
||||||
|
|
||||||
|
gtk_font_selection_set_size (fontsel, new_size);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user