[evince/hildon-2-28] Put the font properties treeview into a HildonPannableArea
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince/hildon-2-28] Put the font properties treeview into a HildonPannableArea
- Date: Mon, 26 Oct 2009 12:13:05 +0000 (UTC)
commit 25241cf5ca8d74501e799d9f49c524fd93907c1f
Author: Christian Persch <chpe gnome org>
Date: Sat Jun 6 22:46:01 2009 +0200
Put the font properties treeview into a HildonPannableArea
Disabled for now, since this makes the dialogue have not enough
height...
shell/ev-properties-fonts.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-properties-fonts.c b/shell/ev-properties-fonts.c
index ae7df67..beaf88c 100644
--- a/shell/ev-properties-fonts.c
+++ b/shell/ev-properties-fonts.c
@@ -27,6 +27,7 @@
#ifdef PLATFORM_HILDON
#include <hildon/hildon-gtk.h>
+#include <hildon/hildon-pannable-area.h>
#endif
#include "ev-document-fonts.h"
@@ -115,7 +116,8 @@ ev_properties_fonts_init (EvPropertiesFonts *properties)
gtk_container_set_border_width (GTK_CONTAINER (properties), 12);
gtk_box_set_spacing (GTK_BOX (properties), 6);
-
+
+#if 1 // #ifndef PLATFORM_HILDON
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow),
GTK_POLICY_AUTOMATIC,
@@ -123,11 +125,12 @@ ev_properties_fonts_init (EvPropertiesFonts *properties)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swindow),
GTK_SHADOW_IN);
-#ifndef PLATFORM_HILDON
properties->fonts_treeview = gtk_tree_view_new ();
#else
+ swindow = hildon_pannable_area_new ();
+
properties->fonts_treeview = hildon_gtk_tree_view_new (HILDON_SIZE_AUTO);
-#endif
+#endif /* !PLATFORM_HILDON */
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (properties->fonts_treeview),
FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]