[empathy] Connect to error signals
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Connect to error signals
- Date: Fri, 22 May 2009 11:45:50 -0400 (EDT)
commit b3a804afbff0bda318d31dea243ffef18491c2d8
Author: Gabriel Millaire <millaire gabriel gmail com>
Date: Sat May 16 15:57:22 2009 -0400
Connect to error signals
---
src/empathy-new-chatroom-dialog.c | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 5f8d19b..4b2e62b 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]