| 108 GList *entries; |
108 GList *entries; |
| 109 } PidginJoinChatData; |
109 } PidginJoinChatData; |
| 110 |
110 |
| 111 typedef struct |
111 typedef struct |
| 112 { |
112 { |
| 113 /** PidginScrollBook used to hold error minidialogs. Gets packed |
113 /** Used to hold error minidialogs. Gets packed |
| 114 * inside PidginBuddyList.error_buttons |
114 * inside PidginBuddyList.error_buttons |
| 115 */ |
115 */ |
| 116 GtkWidget *error_scrollbook; |
116 PidginScrollBook *error_scrollbook; |
| 117 |
117 |
| 118 /** Pointer to the mini-dialog about having signed on elsewhere, if one |
118 /** Pointer to the mini-dialog about having signed on elsewhere, if one |
| 119 * is showing; @c NULL otherwise. |
119 * is showing; @c NULL otherwise. |
| 120 */ |
120 */ |
| 121 PidginMiniDialog *signed_on_elsewhere; |
121 PidginMiniDialog *signed_on_elsewhere; |
| 122 } PidginBuddyListPrivate; |
122 } PidginBuddyListPrivate; |
| 123 |
123 |
| 124 #define PIDGIN_BUDDY_LIST_GET_PRIVATE(list) \ |
124 #define PIDGIN_BUDDY_LIST_GET_PRIVATE(list) \ |
| 4536 |
4536 |
| 4537 static void |
4537 static void |
| 4538 remove_generic_error_dialog(PurpleAccount *account) |
4538 remove_generic_error_dialog(PurpleAccount *account) |
| 4539 { |
4539 { |
| 4540 PidginBuddyListPrivate *priv = PIDGIN_BUDDY_LIST_GET_PRIVATE(gtkblist); |
4540 PidginBuddyListPrivate *priv = PIDGIN_BUDDY_LIST_GET_PRIVATE(gtkblist); |
| 4541 remove_child_widget_by_account(GTK_CONTAINER(priv->error_scrollbook), |
4541 remove_child_widget_by_account( |
| 4542 account); |
4542 GTK_CONTAINER(priv->error_scrollbook->notebook), account); |
| 4543 } |
4543 } |
| 4544 |
4544 |
| 4545 |
4545 |
| 4546 /* Notifications about accounts which were disconnected with |
4546 /* Notifications about accounts which were disconnected with |
| 4547 * PURPLE_CONNECTION_ERROR_NAME_IN_USE |
4547 * PURPLE_CONNECTION_ERROR_NAME_IN_USE |
| 5228 */ |
5228 */ |
| 5229 gtkblist->error_buttons = gtk_vbox_new(FALSE, 0); |
5229 gtkblist->error_buttons = gtk_vbox_new(FALSE, 0); |
| 5230 gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->error_buttons, FALSE, FALSE, 0); |
5230 gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->error_buttons, FALSE, FALSE, 0); |
| 5231 gtk_container_set_border_width(GTK_CONTAINER(gtkblist->error_buttons), 0); |
5231 gtk_container_set_border_width(GTK_CONTAINER(gtkblist->error_buttons), 0); |
| 5232 |
5232 |
| 5233 priv->error_scrollbook = pidgin_scroll_book_new(); |
5233 priv->error_scrollbook = PIDGIN_SCROLL_BOOK(pidgin_scroll_book_new()); |
| 5234 gtk_box_pack_start(GTK_BOX(gtkblist->error_buttons), |
5234 gtk_box_pack_start(GTK_BOX(gtkblist->error_buttons), |
| 5235 priv->error_scrollbook, FALSE, FALSE, 0); |
5235 GTK_WIDGET(priv->error_scrollbook), FALSE, FALSE, 0); |
| 5236 |
5236 |
| 5237 |
5237 |
| 5238 /* Add the statusbox */ |
5238 /* Add the statusbox */ |
| 5239 gtkblist->statusbox = pidgin_status_box_new(); |
5239 gtkblist->statusbox = pidgin_status_box_new(); |
| 5240 gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->statusbox, FALSE, TRUE, 0); |
5240 gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->statusbox, FALSE, TRUE, 0); |