aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 05:46:22 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 05:46:22 +0800
commitd25cf54e8cc0dd24731cc528881a8863b30321b8 (patch)
tree8181d04ffa2c0f71d803bca00783f32437bec3a7
parent2c8c5507c716c4a3ed236037697ef0fa11b99fa3 (diff)
downloadgsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.tar
gsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.tar.gz
gsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.tar.bz2
gsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.tar.lz
gsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.tar.xz
gsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.tar.zst
gsoc2013-empathy-d25cf54e8cc0dd24731cc528881a8863b30321b8.zip
Don't display an empty treeview if there are no connections on opening.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/empathy-debug-dialog.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index 2f3c822fd..f6fe6e8b2 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -962,7 +962,6 @@ debug_dialog_constructor (GType type,
gtk_widget_show (GTK_WIDGET (item));
gtk_container_add (GTK_CONTAINER (item), priv->cm_chooser);
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
- debug_dialog_fill_cm_chooser (EMPATHY_DEBUG_DIALOG (object));
g_signal_connect (priv->cm_chooser, "changed",
G_CALLBACK (debug_dialog_cm_chooser_changed_cb), object);
gtk_widget_show (GTK_WIDGET (priv->cm_chooser));
@@ -1127,15 +1126,18 @@ debug_dialog_constructor (GType type,
gtk_container_add (GTK_CONTAINER (priv->scrolled_win), priv->view);
gtk_widget_show (priv->scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), priv->scrolled_win, TRUE, TRUE, 0);
/* Not supported label */
priv->not_supported_label = g_object_ref (gtk_label_new (
_("The selected connection manager does not support the remote "
"debugging extension.")));
gtk_widget_show (priv->not_supported_label);
+ gtk_box_pack_start (GTK_BOX (vbox), priv->not_supported_label, TRUE, TRUE, 0);
+
+ priv->view_visible = FALSE;
- priv->view_visible = TRUE;
+ debug_dialog_set_toolbar_sensitivity (EMPATHY_DEBUG_DIALOG (object), FALSE);
+ debug_dialog_fill_cm_chooser (EMPATHY_DEBUG_DIALOG (object));
gtk_widget_show (GTK_WIDGET (object));
return object;