| 129 g_return_if_fail(XMPP_DISCO_IS_SERVICE(service)); |
129 g_return_if_fail(XMPP_DISCO_IS_SERVICE(service)); |
| 130 |
130 |
| 131 xmpp_disco_register_service(service); |
131 xmpp_disco_register_service(service); |
| 132 } |
132 } |
| 133 |
133 |
| 134 static void discolist_cancel_cb(PidginDiscoList *pdl, const char *server) |
134 static void |
| 135 { |
135 discolist_cancel_cb(PidginDiscoList *pdl, G_GNUC_UNUSED const char *server) { |
| 136 pdl->dialog->prompt_handle = NULL; |
136 pdl->dialog->prompt_handle = NULL; |
| 137 |
137 |
| 138 pidgin_disco_list_set_in_progress(pdl, FALSE); |
138 pidgin_disco_list_set_in_progress(pdl, FALSE); |
| 139 pidgin_disco_list_unref(pdl); |
139 pidgin_disco_list_unref(pdl); |
| 140 } |
140 } |
| 309 g_simple_action_set_enabled(dialog->add_action, allow_add); |
309 g_simple_action_set_enabled(dialog->add_action, allow_add); |
| 310 g_simple_action_set_enabled(dialog->register_action, allow_register); |
310 g_simple_action_set_enabled(dialog->register_action, allow_register); |
| 311 } |
311 } |
| 312 |
312 |
| 313 static void |
313 static void |
| 314 row_expanded_cb(GtkTreeView *tree, GtkTreeIter *arg1, GtkTreePath *rg2, |
314 row_expanded_cb(G_GNUC_UNUSED GtkTreeView *tree, GtkTreeIter *arg1, |
| 315 gpointer user_data) |
315 G_GNUC_UNUSED GtkTreePath *rg2, gpointer user_data) |
| 316 { |
316 { |
| 317 PidginDiscoDialog *dialog = user_data; |
317 PidginDiscoDialog *dialog = user_data; |
| 318 XmppDiscoService *service; |
318 XmppDiscoService *service; |
| 319 GValue val; |
319 GValue val; |
| 320 |
320 |
| 324 service = g_value_get_pointer(&val); |
324 service = g_value_get_pointer(&val); |
| 325 xmpp_disco_service_expand(service); |
325 xmpp_disco_service_expand(service); |
| 326 } |
326 } |
| 327 |
327 |
| 328 static void |
328 static void |
| 329 row_activated_cb(GtkTreeView *tree_view, |
329 row_activated_cb(G_GNUC_UNUSED GtkTreeView *tree_view, |
| 330 GtkTreePath *path, |
330 GtkTreePath *path, |
| 331 GtkTreeViewColumn *column, |
331 G_GNUC_UNUSED GtkTreeViewColumn *column, |
| 332 gpointer user_data) |
332 gpointer user_data) |
| 333 { |
333 { |
| 334 PidginDiscoDialog *dialog = user_data; |
334 PidginDiscoDialog *dialog = user_data; |
| 335 GtkTreeIter iter; |
335 GtkTreeIter iter; |
| 336 XmppDiscoService *service; |
336 XmppDiscoService *service; |
| 337 XmppDiscoServiceFlags flags; |
337 XmppDiscoServiceFlags flags; |