[ekiga] Made the groups in the heap view widget open by default
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made the groups in the heap view widget open by default
- Date: Wed, 26 Feb 2014 09:33:20 +0000 (UTC)
commit d41a94eac30d6f2504800dd215b58ee71ad8e850
Author: Julien Puydt <jpuydt free fr>
Date: Fri Feb 21 21:50:04 2014 +0100
Made the groups in the heap view widget open by default
lib/engine/gui/gtk-frontend/heap-view.cpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/heap-view.cpp b/lib/engine/gui/gtk-frontend/heap-view.cpp
index a298fd6..52207a7 100644
--- a/lib/engine/gui/gtk-frontend/heap-view.cpp
+++ b/lib/engine/gui/gtk-frontend/heap-view.cpp
@@ -206,8 +206,17 @@ find_iter_for_presentity (HeapView* self,
} while (!found && gtk_tree_model_iter_next (model, iter));
}
- if (!found)
+ if (!found) {
+
gtk_tree_store_append (self->priv->store, iter, group_iter);
+ // ugly, but I didn't find how to make a group appear as expanded
+ // by default
+ GtkTreePath* path
+ = gtk_tree_model_get_path (GTK_TREE_MODEL (self->priv->store),
+ group_iter);
+ (void)gtk_tree_view_expand_row (self->priv->view, path, TRUE);
+ gtk_tree_path_free (path);
+ }
}
static bool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]