aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2009-10-30 22:15:42 +0800
committerFelix Kaser <f.kaser@gmx.net>2009-11-10 22:26:17 +0800
commit815f0ae2dc1aef40831a83e9ce758b5015a28fc2 (patch)
treef9001d330d7decce4bba2869d0665d8cde40d82c
parenta8a0b7d81176d5d151149df7be45b168a00b3fd5 (diff)
downloadgsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.tar
gsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.tar.gz
gsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.tar.bz2
gsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.tar.lz
gsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.tar.xz
gsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.tar.zst
gsoc2013-empathy-815f0ae2dc1aef40831a83e9ce758b5015a28fc2.zip
use only one button in error-infobar
-rw-r--r--src/empathy-main-window.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index b8386868a..679935631 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -78,15 +78,6 @@
/* Name in the geometry file */
#define GEOMETRY_NAME "main-window"
-/* Response ID for GtkInfoBar-Edit Button */
-#define INFO_BAR_RESPONSE_EDIT 8
-
-/* Response ID for GtkInfoBar-Retry Button */
-#define INFO_BAR_RESPONSE_RETRY 12
-
-/* Response ID for GtkInfoBar-Disable Button */
-#define INFO_BAR_RESPONSE_DISABLE 14
-
typedef struct {
EmpathyContactListView *list_view;
EmpathyContactListStore *list_store;
@@ -325,14 +316,7 @@ main_window_error_infobar_button_clicked_cb (GtkInfoBar *info_bar,
account = g_object_get_data (G_OBJECT (info_bar), "account");
switch (response_id) {
- case INFO_BAR_RESPONSE_EDIT:
- empathy_accounts_dialog_show (GTK_WINDOW (window->window), account);
- break;
- case INFO_BAR_RESPONSE_DISABLE:
- empathy_account_set_enabled_async (account, FALSE, NULL, NULL);
- break;
- case INFO_BAR_RESPONSE_RETRY:
- empathy_account_reconnect_async (account, NULL, NULL);
+ case GTK_RESPONSE_CLOSE:
break;
default:
break;
@@ -369,9 +353,7 @@ main_window_error_display (EmpathyMainWindow *window,
return;
}
- info_bar = gtk_info_bar_new_with_buttons (GTK_STOCK_EDIT, INFO_BAR_RESPONSE_EDIT,
- _("_Retry"), INFO_BAR_RESPONSE_RETRY,
- _("_Disable"), INFO_BAR_RESPONSE_DISABLE, NULL);
+ info_bar = gtk_info_bar_new_with_buttons (GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), GTK_MESSAGE_WARNING);
g_signal_connect (info_bar, "response",
G_CALLBACK (main_window_error_infobar_button_clicked_cb),