diff options
author | Gabriel Millaire <millaire.gabriel@gmail.com> | 2009-05-17 04:56:20 +0800 |
---|---|---|
committer | Gabriel Millaire <millaire.gabriel@gmail.com> | 2009-05-22 23:15:43 +0800 |
commit | b63427129077ecb85adcc54085b9b7162a0667bb (patch) | |
tree | bced82d781c5d44f92720d48a4dd73d8c75dfb4e /src/empathy-new-chatroom-dialog.c | |
parent | 96d040d7ce116f22e27cbf8acbdf10a7d3277df6 (diff) | |
download | gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.tar gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.tar.gz gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.tar.bz2 gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.tar.lz gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.tar.xz gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.tar.zst gsoc2013-empathy-b63427129077ecb85adcc54085b9b7162a0667bb.zip |
Set treeview insensitive and hide error message
Diffstat (limited to 'src/empathy-new-chatroom-dialog.c')
-rw-r--r-- | src/empathy-new-chatroom-dialog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index f593a4997..54643a5f2 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -433,6 +433,8 @@ new_chatroom_dialog_account_changed_cb (GtkComboBox *combobox, expanded = gtk_expander_get_expanded (GTK_EXPANDER (dialog->expander_browse)); if (expanded) { + gtk_widget_hide (dialog->viewport_error); + gtk_widget_set_sensitive (dialog->treeview, TRUE); new_chatroom_dialog_browse_start (dialog); } @@ -519,6 +521,7 @@ start_listing_error_cb (EmpathyTpRoomlist *room_list, { gtk_label_set_text (GTK_LABEL (dialog->label_error_message), "Could not start room listing"); gtk_widget_show_all (dialog->viewport_error); + gtk_widget_set_sensitive (dialog->treeview, FALSE); } static void @@ -528,6 +531,7 @@ stop_listing_error_cb (EmpathyTpRoomlist *room_list, { gtk_label_set_text (GTK_LABEL (dialog->label_error_message), "Could not stop room listing"); gtk_widget_show_all (dialog->viewport_error); + gtk_widget_set_sensitive (dialog->treeview, FALSE); } static void @@ -666,6 +670,8 @@ new_chatroom_dialog_expander_browse_activate_cb (GtkWidget *widget new_chatroom_dialog_browse_stop (dialog); gtk_window_set_resizable (GTK_WINDOW (dialog->window), FALSE); } else { + gtk_widget_hide (dialog->viewport_error); + gtk_widget_set_sensitive (dialog->treeview, TRUE); new_chatroom_dialog_browse_start (dialog); gtk_window_set_resizable (GTK_WINDOW (dialog->window), TRUE); } |