[gtk+/font-chooser: 61/86] GtkFontChooser: Improve bootstrapping of	the deprecated lists
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/font-chooser: 61/86] GtkFontChooser: Improve bootstrapping of	the deprecated lists
- Date: Sun, 10 Jul 2011 23:45:01 +0000 (UTC)
commit 762eefac54dc14385913a72f907f36ff4d3d511b
Author: Alberto Ruiz <aruiz gnome org>
Date:   Sun May 1 03:42:24 2011 +0100
    GtkFontChooser: Improve bootstrapping of the deprecated lists
 gtk/gtkfontchooser.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index cadb5cd..af3a98e 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -1346,6 +1346,10 @@ initialize_deprecated_widgets (GtkFontSelection *fontsel)
   font_list = gtk_tree_view_new_with_model (GTK_TREE_MODEL (priv->_font_model));
   face_list = gtk_tree_view_new_with_model (GTK_TREE_MODEL (priv->_face_model));
 
+  gtk_tree_view_set_headers_visible (size_list, FALSE);
+  gtk_tree_view_set_headers_visible (font_list, FALSE);
+  gtk_tree_view_set_headers_visible (face_list, FALSE);
+
   g_object_unref (priv->_size_model);
   g_object_unref (priv->_font_model);
   g_object_unref (priv->_face_model);
@@ -1373,6 +1377,10 @@ initialize_deprecated_widgets (GtkFontSelection *fontsel)
   priv->face_list = gtk_scrolled_window_new (NULL, NULL);
   priv->size_list = gtk_scrolled_window_new (NULL, NULL);
 
+  gtk_scrolled_window_set_policy (priv->font_list, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+  gtk_scrolled_window_set_policy (priv->face_list, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+  gtk_scrolled_window_set_policy (priv->size_list, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+
   gtk_container_add (GTK_CONTAINER (priv->font_list), font_list);
   gtk_container_add (GTK_CONTAINER (priv->face_list), face_list);
   gtk_container_add (GTK_CONTAINER (priv->size_list), size_list);
@@ -1387,7 +1395,7 @@ initialize_deprecated_widgets (GtkFontSelection *fontsel)
                     G_CALLBACK (size_list_cursor_changed_cb), fontsel);
 
   populate_font_model (fontsel);
-  cursor_changed_cb (priv->family_face_list, priv);
+  cursor_changed_cb (priv->family_face_list, fontsel);
 }
 
 #endif /* GTK_DISABLE_DEPRECATED */
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]