aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Millaire <millaire.gabriel@gmail.com>2009-05-17 03:57:22 +0800
committerGabriel Millaire <millaire.gabriel@gmail.com>2009-05-22 23:15:42 +0800
commitb3a804afbff0bda318d31dea243ffef18491c2d8 (patch)
tree33f205a1ccbdf6b27b115a7e9038e3306de1a7e4
parent39af082298a0bbd0e91e23e31e1e32fc71f8f4bf (diff)
downloadgsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.tar
gsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.tar.gz
gsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.tar.bz2
gsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.tar.lz
gsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.tar.xz
gsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.tar.zst
gsoc2013-empathy-b3a804afbff0bda318d31dea243ffef18491c2d8.zip
Connect to error signals
-rw-r--r--src/empathy-new-chatroom-dialog.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 5f8d19b3c..4b2e62b88 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -30,6 +30,7 @@
#include <gtk/gtk.h>
#include <glib.h>
#include <glib/gi18n.h>
+#include <glib/gprintf.h>
#include <libmissioncontrol/mission-control.h>
#include <libmissioncontrol/mc-account.h>
@@ -98,6 +99,12 @@ static void new_chatroom_dialog_new_room_cb (EmpathyTpRo
static void new_chatroom_dialog_listing_cb (EmpathyTpRoomlist *room_list,
gpointer unused,
EmpathyNewChatroomDialog *dialog);
+static void start_listing_error_cb (EmpathyTpRoomlist *room_list,
+ GError *error,
+ EmpathyNewChatroomDialog *dialog);
+static void stop_listing_error_cb (EmpathyTpRoomlist *room_list,
+ GError *error,
+ EmpathyNewChatroomDialog *dialog);
static void new_chatroom_dialog_model_clear (EmpathyNewChatroomDialog *dialog);
static void new_chatroom_dialog_model_row_activated_cb (GtkTreeView *tree_view,
GtkTreePath *path,
@@ -411,6 +418,12 @@ new_chatroom_dialog_account_changed_cb (GtkComboBox *combobox,
g_signal_connect (dialog->room_list, "notify::is-listing",
G_CALLBACK (new_chatroom_dialog_listing_cb),
dialog);
+ g_signal_connect (dialog->room_list, "error::start",
+ G_CALLBACK (start_listing_error_cb),
+ dialog);
+ g_signal_connect (dialog->room_list, "error::stop",
+ G_CALLBACK (stop_listing_error_cb),
+ dialog);
expanded = gtk_expander_get_expanded (GTK_EXPANDER (dialog->expander_browse));
if (expanded) {
@@ -487,6 +500,22 @@ new_chatroom_dialog_new_room_cb (EmpathyTpRoomlist *room_list,
}
static void
+start_listing_error_cb (EmpathyTpRoomlist *room_list,
+ GError *error,
+ EmpathyNewChatroomDialog *dialog)
+{
+ g_printf("Error when starting listing of chatrooms.");
+}
+
+static void
+stop_listing_error_cb (EmpathyTpRoomlist *room_list,
+ GError *error,
+ EmpathyNewChatroomDialog *dialog)
+{
+ g_printf("Error when stopping listing of chatrooms.");
+}
+
+static void
new_chatroom_dialog_listing_cb (EmpathyTpRoomlist *room_list,
gpointer unused,
EmpathyNewChatroomDialog *dialog)