From 1ae1f1ba6ed8479ce8cc9f3824f55edd2e7795c0 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 29 Jan 2002 21:29:55 +0000 Subject: Show correct size in the size entry. 2002-01-29 Anders Carlsson * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct size in the size entry. --- gtk/gtkfontsel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk/gtkfontsel.c') diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 88eb915c2..3ecf53e14 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -901,6 +901,7 @@ gtk_font_selection_select_size (GtkTreeSelection *selection, GtkTreeModel *model; GtkTreeIter iter; gint new_size; + gchar buffer[128]; fontsel = GTK_FONT_SELECTION (data); @@ -913,6 +914,10 @@ gtk_font_selection_select_size (GtkTreeSelection *selection, { /* If the size was selected by the user we set the selected_size. */ fontsel->size = new_size; + + sprintf (buffer, "%i", fontsel->size / PANGO_SCALE); + gtk_entry_set_text (GTK_ENTRY (fontsel->size_entry), buffer); + gtk_font_selection_load_font (fontsel); } } -- cgit v1.2.1