[gtk+/font-chooser: 3/84] GtkFontChooser: Create fundamental widgets for the new GtkFontSelection
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser: 3/84] GtkFontChooser: Create fundamental widgets for the new GtkFontSelection
- Date: Fri, 20 May 2011 08:58:45 +0000 (UTC)
commit c4103c554c0e9ca453af8f54889a23fa6cea3159
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]