aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-log-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r--libempathy-gtk/empathy-log-window.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index aa0370b94..9f6006473 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -96,6 +96,8 @@ static void log_window_button_next_clicked_cb (GtkWidget *wi
EmpathyLogWindow *window);
static void log_window_button_previous_clicked_cb (GtkWidget *widget,
EmpathyLogWindow *window);
+static void log_window_button_close_clicked_cb (GtkWidget *widget,
+ EmpathyLogWindow *window);
static void log_window_chats_changed_cb (GtkTreeSelection *selection,
EmpathyLogWindow *window);
static void log_window_chats_populate (EmpathyLogWindow *window);
@@ -263,6 +265,8 @@ empathy_log_window_show (TpAccount *account,
"entry_find", "activate", log_window_entry_find_activate_cb,
"button_previous", "clicked", log_window_button_previous_clicked_cb,
"button_next", "clicked", log_window_button_next_clicked_cb,
+ "button_close", "clicked", log_window_button_close_clicked_cb,
+ "button_close2", "clicked", log_window_button_close_clicked_cb,
"button_find", "clicked", log_window_button_find_clicked_cb,
"entry_chats", "changed", log_window_entry_chats_changed_cb,
"entry_chats", "activate", log_window_entry_chats_activate_cb,
@@ -759,6 +763,13 @@ log_window_button_previous_clicked_cb (GtkWidget *widget,
}
}
+static void
+log_window_button_close_clicked_cb (GtkWidget *widget,
+ EmpathyLogWindow *window)
+{
+ gtk_widget_destroy (window->window);
+}
+
/*
* Chats Code
*/