chiark / gitweb /
properly scroll user list
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 19 Apr 2008 20:41:43 +0000 (21:41 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 19 Apr 2008 20:41:43 +0000 (21:41 +0100)
disobedience/misc.c
disobedience/users.c

index aaff4ae075248a777bb97bf095641e8ffe1bf680..ce58ab443fc6c73a8eb1ef997ef20234cee69638 100644 (file)
@@ -51,7 +51,8 @@ GtkWidget *scroll_widget(GtkWidget *child) {
   gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroller),
                                  GTK_POLICY_AUTOMATIC,
                                  GTK_POLICY_AUTOMATIC);
-  if(GTK_IS_LAYOUT(child)) {
+  if(GTK_IS_LAYOUT(child)
+     || GTK_IS_TREE_VIEW(child)) {
     /* Child widget has native scroll support */
     gtk_container_add(GTK_CONTAINER(scroller), child);
     /* Fix up the step increments if they are 0 (seems like an odd default?) */
index 903188733139892e36dfb6d9513dac23e6197fda..f4a0fbeee4deea1b2dee15b77873c2d228c61c3e 100644 (file)
@@ -642,7 +642,7 @@ void manage_users(void) {
 
   /* Buttons live below the list */
   vbox = gtk_vbox_new(FALSE, 2);
-  gtk_box_pack_start(GTK_BOX(vbox), tree, TRUE/*expand*/, TRUE/*fill*/, 0);
+  gtk_box_pack_start(GTK_BOX(vbox), scroll_widget(tree), TRUE/*expand*/, TRUE/*fill*/, 0);
   gtk_box_pack_start(GTK_BOX(vbox), buttons, FALSE/*expand*/, FALSE, 0);
 
   /* Create an empty user details table, and put an apply button below it */