[gtk+] GtkFontChooser: Create fundamental widgets for the new GtkFontSelection
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkFontChooser: Create fundamental widgets for the new GtkFontSelection
- Date: Mon, 15 Aug 2011 23:46:33 +0000 (UTC)
commit 810eda9cca4bc25469335df73b82e6f873639c96
Author: Alberto Ruiz <aruiz gnome org>
Date: Fri Apr 15 21:40:57 2011 +0100
GtkFontChooser: Create fundamental widgets for the new GtkFontSelection
gtk/gtkfontchooser.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 30fb81f..a2fc26c 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -85,7 +85,7 @@ struct _GtkFontSelectionPrivate
GtkWidget *search_entry;
GtkWidget *family_face_list;
GtkWidget *size_slider;
- GtkWidget *size_spinner;
+ GtkWidget *size_spin;
gint size;
PangoFontFace *face;
@@ -299,6 +299,23 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
GtkFontSelectionPrivate);
priv = fontsel->priv;
gtk_widget_push_composite_child ();
+
+ priv->search_entry = gtk_entry_new ();
+ priv->family_face_list = gtk_tree_view_new ();
+ priv->size_slider = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
+ font_sizes[0],
+ font_sizes[(sizeof (font_sizes) /
+ sizeof (guint16)) - 1],
+ 1);
+ priv->size_spin = gtk_spin_button_new_with_range (font_sizes[0],
+ font_sizes[(sizeof (font_sizes) /
+ sizeof (guint16)) - 1],
+ 1);
+
+ priv->size = 12 * PANGO_SCALE;
+ priv->face = NULL;
+ priv->family = NULL;
+
gtk_widget_pop_composite_child();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]