[gtk+/font-selection-new: 3/73] GtkFontSelection: Create fundamental widgets for the new GtkFontSelection
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-selection-new: 3/73] GtkFontSelection: Create fundamental widgets for the new GtkFontSelection
- Date: Sat, 7 May 2011 18:12:29 +0000 (UTC)
commit 18ab5b05dc589c110759c687ee656ede586cf3cb
Author: Alberto Ruiz <aruiz gnome org>
Date: Fri Apr 15 21:40:57 2011 +0100
GtkFontSelection: Create fundamental widgets for the new GtkFontSelection
gtk/gtkfontsel.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 30fb81f..a2fc26c 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.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]