diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-08 09:15:06 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-08 09:15:06 +0800 |
commit | daae637bdf6ea311c306eefe298e5760e2af22dc (patch) | |
tree | 3ddeae0b03b604fab6a3668e280e266b06d797f1 /libempathy-gtk | |
parent | c6837f3edb97b06d1aff8e4300d58653b9484713 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 15 |
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 |