aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-debug-dialog.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-20 08:29:14 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-24 08:52:47 +0800
commit53ac3ca75ee31a2d62d0d0bb96f8344764949a36 (patch)
treed0a4cbb7feb92e706b1a357c5e3ef4538139f5f0 /src/empathy-debug-dialog.c
parent181bac302b8b30c2ba9f409e051087f8e154fb2c (diff)
downloadgsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.tar
gsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.tar.gz
gsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.tar.bz2
gsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.tar.lz
gsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.tar.xz
gsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.tar.zst
gsoc2013-empathy-53ac3ca75ee31a2d62d0d0bb96f8344764949a36.zip
Only connect to NewDebugMessage if the paused button is not pressed.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/empathy-debug-dialog.c')
-rw-r--r--src/empathy-debug-dialog.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index db7b8475e..f59d5731a 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -63,6 +63,7 @@ typedef struct
GtkWidget *account_chooser;
GtkListStore *store;
TpProxySignalConnection *signal_connection;
+ gboolean paused;
gboolean dispose_run;
} EmpathyDebugDialogPriv;
@@ -175,9 +176,12 @@ debug_dialog_get_messages_cb (TpProxy *proxy,
g_value_get_string (g_value_array_get_nth (values, 3)));
}
- /* Connect to NewDebugMessage */
- priv->signal_connection = emp_cli_debug_connect_to_new_debug_message (proxy,
- debug_dialog_new_debug_message_cb, debug_dialog, NULL, NULL, NULL);
+ if (!priv->paused)
+ {
+ /* Connect to NewDebugMessage */
+ priv->signal_connection = emp_cli_debug_connect_to_new_debug_message (proxy,
+ debug_dialog_new_debug_message_cb, debug_dialog, NULL, NULL, NULL);
+ }
}
static void
@@ -295,9 +299,11 @@ debug_dialog_constructor (GType type,
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
/* Pause */
+ priv->paused = FALSE;
image = gtk_image_new_from_stock (GTK_STOCK_MEDIA_PAUSE, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
item = gtk_toggle_tool_button_new ();
+ gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (item), !priv->paused);
gtk_widget_show (GTK_WIDGET (item));
gtk_tool_item_set_is_important (GTK_TOOL_ITEM (item), TRUE);
gtk_tool_button_set_label (GTK_TOOL_BUTTON (item), _("Pause"));