forked from AuroraMiddleware/gtk
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:
parent
eb50860063
commit
1ae1f1ba6e
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user