[empathy: 47/53] Clean up EmpathyDebugDialogPriv.
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 47/53] Clean up EmpathyDebugDialogPriv.
- Date: Thu, 4 Jun 2009 12:19:00 -0400 (EDT)
commit ea5fbd90e9e36f1081cab4a0d2d92bc9eef25696
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Thu Jun 4 14:19:51 2009 +0100
Clean up EmpathyDebugDialogPriv.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
src/empathy-debug-dialog.c | 29 ++++++++++++++++++++---------
1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index f5ac636..df62fa6 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -69,16 +69,27 @@ enum
#define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyDebugDialog)
typedef struct
{
- GtkWidget *filter;
- GtkWidget *view;
+ /* Toolbar items */
GtkWidget *cm_chooser;
+ GtkWidget *filter;
+
+ /* TreeView */
GtkListStore *store;
GtkTreeModel *store_filter;
+ GtkWidget *view;
+
+ /* Connection */
TpProxy *proxy;
- TpProxySignalConnection *signal_connection;
+ TpProxySignalConnection *new_debug_message_signal;
TpProxySignalConnection *name_owner_changed_signal;
+
+ /* Whether NewDebugMessage will be fired */
gboolean paused;
+
+ /* CM chooser store */
GtkListStore *cms;
+
+ /* Misc. */
gboolean dispose_run;
} EmpathyDebugDialogPriv;
@@ -216,7 +227,7 @@ debug_dialog_get_messages_cb (TpProxy *proxy,
}
/* Connect to NewDebugMessage */
- priv->signal_connection = emp_cli_debug_connect_to_new_debug_message (
+ priv->new_debug_message_signal = emp_cli_debug_connect_to_new_debug_message (
proxy, debug_dialog_new_debug_message_cb, debug_dialog,
NULL, NULL, NULL);
@@ -272,10 +283,10 @@ debug_dialog_cm_chooser_changed_cb (GtkComboBox *cm_chooser,
debug_dialog_set_enabled (debug_dialog, FALSE);
/* Disconnect from previous NewDebugMessage signal */
- if (priv->signal_connection != NULL)
+ if (priv->new_debug_message_signal != NULL)
{
- tp_proxy_signal_connection_disconnect (priv->signal_connection);
- priv->signal_connection = NULL;
+ tp_proxy_signal_connection_disconnect (priv->new_debug_message_signal);
+ priv->new_debug_message_signal = NULL;
}
if (priv->proxy != NULL)
@@ -1144,8 +1155,8 @@ debug_dialog_dispose (GObject *object)
g_object_unref (priv->proxy);
}
- if (priv->signal_connection != NULL)
- tp_proxy_signal_connection_disconnect (priv->signal_connection);
+ if (priv->new_debug_message_signal != NULL)
+ tp_proxy_signal_connection_disconnect (priv->new_debug_message_signal);
if (priv->cms != NULL)
g_object_unref (priv->cms);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]