| 143 |
143 |
| 144 return pixbuf; |
144 return pixbuf; |
| 145 } |
145 } |
| 146 |
146 |
| 147 static void |
147 static void |
| 148 dialog_select_account_cb(GtkWidget *chooser, PidginDiscoDialog *dialog) |
148 dialog_select_account_cb(GObject *obj, G_GNUC_UNUSED GParamSpec *pspec, |
| 149 { |
149 gpointer data) |
| 150 PurpleAccount *account = pidgin_account_chooser_get_selected(PIDGIN_ACCOUNT_CHOOSER(chooser)); |
150 { |
| |
151 PidginDiscoDialog *dialog = data; |
| |
152 PurpleAccount *account = pidgin_account_chooser_get_selected(PIDGIN_ACCOUNT_CHOOSER(obj)); |
| 151 gboolean change = (account != dialog->account); |
153 gboolean change = (account != dialog->account); |
| 152 dialog->account = account; |
154 dialog->account = account; |
| 153 g_simple_action_set_enabled(dialog->browse_action, account != NULL); |
155 g_simple_action_set_enabled(dialog->browse_action, account != NULL); |
| 154 |
156 |
| 155 if (change) { |
157 if (change) { |