aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-21 10:43:30 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-24 08:52:49 +0800
commit588532480256c991bf976dba129b9ec2eedb89ec (patch)
tree1d7dd3b54ad3479e7c8ec3abc60db0d86eea6edb /src
parentd8de0a0b75eb671ad69f6212bbfbf4aa4aa2f397 (diff)
downloadgsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.tar
gsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.tar.gz
gsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.tar.bz2
gsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.tar.lz
gsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.tar.xz
gsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.tar.zst
gsoc2013-empathy-588532480256c991bf976dba129b9ec2eedb89ec.zip
Implement clear button.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/empathy-debug-dialog.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index 63b655599..ba20ae8b0 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -397,6 +397,15 @@ debug_dialog_filter_changed_cb (GtkComboBox *filter,
GTK_TREE_MODEL_FILTER (priv->store_filter));
}
+static void
+debug_dialog_clear_clicked_cb (GtkToolButton *clear_button,
+ EmpathyDebugDialog *debug_dialog)
+{
+ EmpathyDebugDialogPriv *priv = GET_PRIV (debug_dialog);
+
+ gtk_list_store_clear (priv->store);
+}
+
static GObject *
debug_dialog_constructor (GType type,
guint n_construct_params,
@@ -460,6 +469,8 @@ debug_dialog_constructor (GType type,
/* Clear */
item = gtk_tool_button_new_from_stock (GTK_STOCK_CLEAR);
+ g_signal_connect (item, "clicked",
+ G_CALLBACK (debug_dialog_clear_clicked_cb), object);
gtk_widget_show (GTK_WIDGET (item));
gtk_tool_item_set_is_important (GTK_TOOL_ITEM (item), TRUE);
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);