[totem] grilo: Avoid lingering horizontal scrollbars
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Avoid lingering horizontal scrollbars
- Date: Thu, 30 Jun 2011 14:54:19 +0000 (UTC)
commit 0c25b666937026d8baae2859f80670e7a99faa2e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jun 30 15:49:37 2011 +0100
grilo: Avoid lingering horizontal scrollbars
When closing an expanded tree item in the browse sidebar.
src/plugins/grilo/totem-grilo.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 59f8148..62b1ab1 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -491,6 +491,7 @@ browse_cb (GrlMediaSource *source,
path = gtk_tree_model_get_path (self->priv->browser_model, &parent);
gtk_tree_view_expand_row (GTK_TREE_VIEW (self->priv->browser), path, FALSE);
+ gtk_tree_view_columns_autosize (GTK_TREE_VIEW (self->priv->browser));
gtk_tree_path_free (path);
}
@@ -743,6 +744,7 @@ browser_activated_cb (GtkTreeView *tree_view,
if (gtk_tree_model_iter_has_child (model, &iter)) {
if (gtk_tree_view_row_expanded (tree_view, path)) {
gtk_tree_view_collapse_row (tree_view, path);
+ gtk_tree_view_columns_autosize (GTK_TREE_VIEW (self->priv->browser));
} else {
gtk_tree_view_expand_row (tree_view, path, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]