[empathy: 26/53] Implement clear button.



commit 588532480256c991bf976dba129b9ec2eedb89ec
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Tue Apr 21 03:43:30 2009 +0100

    Implement clear button.
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
 src/empathy-debug-dialog.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index 63b6555..ba20ae8 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]