summaryrefslogtreecommitdiff
path: root/gtk/gtkfontsel.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2002-01-29 21:29:55 +0000
committerAnders Carlsson <andersca@src.gnome.org>2002-01-29 21:29:55 +0000
commit1ae1f1ba6ed8479ce8cc9f3824f55edd2e7795c0 (patch)
tree65b913726952f4429d1f1f8c297821747a7f462d /gtk/gtkfontsel.c
parenteb50860063b0589d903360323f9816014e9db5c9 (diff)
downloadgdk-pixbuf-1ae1f1ba6ed8479ce8cc9f3824f55edd2e7795c0.tar.gz
Show correct size in the size entry.
2002-01-29 Anders Carlsson <andersca@gnu.org> * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct size in the size entry.
Diffstat (limited to 'gtk/gtkfontsel.c')
-rw-r--r--gtk/gtkfontsel.c5
1 files changed, 5 insertions, 0 deletions
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);
}
}