[maemo-commits] [maemo-commits] r11929 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue May 29 09:56:04 EEST 2007
Author: lucasr
Date: 2007-05-29 09:56:02 +0300 (Tue, 29 May 2007)
New Revision: 11929

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-select-plugins-dialog.c
Log:
2007-05-29  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hd-select-plugins-dialog.c: show vertical scrollbar when the
	list of plugins is longer than the space available. Fixes: NB#53976


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-05-28 18:27:36 UTC (rev 11928)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-05-29 06:56:02 UTC (rev 11929)
@@ -1,3 +1,8 @@
+2007-05-29  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hd-select-plugins-dialog.c: show vertical scrollbar when the
+	list of plugins is longer than the space available. Fixes: NB#53976
+
 2007-05-28  Johan Bilien  <johan.bilien at nokia.com>
 
 	* src/hd-panel-window.c: use the NORMAL state to fetch the

Modified: projects/haf/trunk/hildon-desktop/src/hd-select-plugins-dialog.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-select-plugins-dialog.c	2007-05-28 18:27:36 UTC (rev 11928)
+++ projects/haf/trunk/hildon-desktop/src/hd-select-plugins-dialog.c	2007-05-29 06:56:02 UTC (rev 11929)
@@ -238,6 +238,7 @@
   GtkWidget *treeview;
   GtkCellRenderer *cell_renderer;
   GtkListStore *plugin_list;
+  GtkRequisition req;
   gint response;
 
   plugin_list = hd_select_plugins_dialog_get_store (loaded_plugins, 
@@ -275,8 +276,9 @@
 
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrollwindow),
                                   GTK_POLICY_NEVER,
-                                  GTK_POLICY_NEVER);
+                                  GTK_POLICY_AUTOMATIC);
 
+
   treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (plugin_list));
 
   g_object_set (treeview, "allow-checkbox-mode", FALSE, NULL);
@@ -309,6 +311,9 @@
   gtk_container_add (GTK_CONTAINER (scrollwindow), treeview);
   gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), scrollwindow);
 
+  gtk_widget_size_request (treeview, &req); 
+  gtk_widget_set_size_request (scrollwindow, -1, req.height + 4);
+
   gtk_widget_show_all (GTK_DIALOG (dialog)->vbox);
 
   response = gtk_dialog_run (GTK_DIALOG (dialog));


More information about the maemo-commits mailing list