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.
This commit is contained in:
Anders Carlsson 2002-01-29 21:29:55 +00:00 committed by Anders Carlsson
parent eb50860063
commit 1ae1f1ba6e
8 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -1,3 +1,8 @@
2002-01-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.
Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com> Tue Jan 29 16:11:55 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use

View File

@ -901,6 +901,7 @@ gtk_font_selection_select_size (GtkTreeSelection *selection,
GtkTreeModel *model; GtkTreeModel *model;
GtkTreeIter iter; GtkTreeIter iter;
gint new_size; gint new_size;
gchar buffer[128];
fontsel = GTK_FONT_SELECTION (data); 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. */ /* If the size was selected by the user we set the selected_size. */
fontsel->size = new_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); gtk_font_selection_load_font (fontsel);
} }
} }