diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-05 00:43:59 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-05 18:23:50 +0800 |
commit | 395f226c197ba97bd5c1bfa3b2f47c3866a37bb9 (patch) | |
tree | 020b2e093fa1260565324048a36c298b099be23b /libempathy-gtk/empathy-log-window.c | |
parent | 1fe8edf35901e82ad858876af84f75f5352ebef3 (diff) | |
download | gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.tar gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.tar.gz gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.tar.bz2 gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.tar.lz gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.tar.xz gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.tar.zst gsoc2013-empathy-395f226c197ba97bd5c1bfa3b2f47c3866a37bb9.zip |
LogWindow: expand/collapse events when a row is activated
https://bugzilla.gnome.org/show_bug.cgi?id=653341
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 60bd102fc..7e665541f 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -2221,6 +2221,18 @@ log_window_events_changed_cb (GtkTreeSelection *selection, } static void +log_window_events_row_activated_cb (GtkTreeView *view, + GtkTreePath *path, + GtkTreeViewColumn *column, + EmpathyLogWindow *self) +{ + if (gtk_tree_view_row_expanded (view, path)) + gtk_tree_view_collapse_row (view, path); + else + gtk_tree_view_expand_row (view, path, FALSE); +} + +static void log_window_events_setup (EmpathyLogWindow *self) { GtkTreeView *view; @@ -2286,6 +2298,10 @@ log_window_events_setup (EmpathyLogWindow *self) G_CALLBACK (log_window_events_changed_cb), self); + g_signal_connect (view, "row-activated", + G_CALLBACK (log_window_events_row_activated_cb), + self); + g_object_unref (store); } |