aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-log-window.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-08-08 09:15:06 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-08-08 09:15:06 +0800
commitdaae637bdf6ea311c306eefe298e5760e2af22dc (patch)
tree3ddeae0b03b604fab6a3668e280e266b06d797f1 /libempathy-gtk/empathy-log-window.c
parentc6837f3edb97b06d1aff8e4300d58653b9484713 (diff)
downloadgsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.tar
gsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.tar.gz
gsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.tar.bz2
gsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.tar.lz
gsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.tar.xz
gsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.tar.zst
gsoc2013-empathy-daae637bdf6ea311c306eefe298e5760e2af22dc.zip
Reimplement log_window_maybe_expand_events()
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r--libempathy-gtk/empathy-log-window.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index cd1daac22..bb8b1ce42 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -2982,16 +2982,13 @@ log_window_what_setup (EmpathyLogWindow *self)
static void
log_window_maybe_expand_events (void)
{
- // GtkTreeView *view;
- // GtkTreeModel *model;
+ GtkTreeModel *model = GTK_TREE_MODEL (log_window->priv->store_events);
- // FIXME: reimplement
- // view = GTK_TREE_VIEW (log_window->priv->treeview_events);
- // model = gtk_tree_view_get_model (view);
-
- // /* If there's only one result, expand it */
- // if (gtk_tree_model_iter_n_children (model, NULL) == 1)
- // gtk_tree_view_expand_all (view);
+ /* If there's only one result, expand it */
+ if (gtk_tree_model_iter_n_children (model, NULL) == 1)
+ webkit_web_view_execute_script (
+ WEBKIT_WEB_VIEW (log_window->priv->webview),
+ "javascript:expandAll()");
}
static gboolean