| 214 g_free(name); |
214 g_free(name); |
| 215 } |
215 } |
| 216 |
216 |
| 217 static gboolean |
217 static gboolean |
| 218 _search_func(GtkTreeModel *model, gint column, const gchar *key, |
218 _search_func(GtkTreeModel *model, gint column, const gchar *key, |
| 219 GtkTreeIter *iter, gpointer search_data) |
219 GtkTreeIter *iter, G_GNUC_UNUSED gpointer search_data) |
| 220 { |
220 { |
| 221 gboolean result; |
221 gboolean result; |
| 222 gchar *name, *fold, *fkey; |
222 gchar *name, *fold, *fkey; |
| 223 |
223 |
| 224 gtk_tree_model_get(model, iter, column, &name, -1); |
224 gtk_tree_model_get(model, iter, column, &name, -1); |
| 249 /****************************************************************************** |
249 /****************************************************************************** |
| 250 * Actions |
250 * Actions |
| 251 *****************************************************************************/ |
251 *****************************************************************************/ |
| 252 static void |
252 static void |
| 253 pidgin_roomlist_add_to_blist_cb(G_GNUC_UNUSED GSimpleAction *action, |
253 pidgin_roomlist_add_to_blist_cb(G_GNUC_UNUSED GSimpleAction *action, |
| 254 G_GNUC_UNUSED GVariant *parameter, |
254 G_GNUC_UNUSED GVariant *parameter, |
| 255 gpointer data) |
255 gpointer data) |
| 256 { |
256 { |
| 257 pidgin_roomlist_add_to_blist(data); |
257 pidgin_roomlist_add_to_blist(data); |
| 258 } |
258 } |
| 259 |
259 |
| 260 |
260 |
| 261 static void |
261 static void |
| 262 pidgin_roomlist_join_cb(GSimpleAction *action, GVariant *parameter, |
262 pidgin_roomlist_join_cb(G_GNUC_UNUSED GSimpleAction *action, |
| |
263 G_GNUC_UNUSED GVariant *parameter, |
| 263 gpointer data) |
264 gpointer data) |
| 264 { |
265 { |
| 265 pidgin_roomlist_join(data); |
266 pidgin_roomlist_join(data); |
| 266 } |
267 } |
| 267 |
268 |
| 278 /****************************************************************************** |
279 /****************************************************************************** |
| 279 * Callbacks |
280 * Callbacks |
| 280 *****************************************************************************/ |
281 *****************************************************************************/ |
| 281 static void |
282 static void |
| 282 pidgin_roomlist_response_cb(GtkDialog *gtk_dialog, gint response_id, |
283 pidgin_roomlist_response_cb(GtkDialog *gtk_dialog, gint response_id, |
| 283 gpointer data) |
284 G_GNUC_UNUSED gpointer data) |
| 284 { |
285 { |
| 285 PidginRoomlistDialog *dialog = PIDGIN_ROOMLIST_DIALOG(gtk_dialog); |
286 PidginRoomlistDialog *dialog = PIDGIN_ROOMLIST_DIALOG(gtk_dialog); |
| 286 |
287 |
| 287 switch(response_id) { |
288 switch(response_id) { |
| 288 case RESPONSE_STOP: |
289 case RESPONSE_STOP: |
| 347 gtk_widget_set_sensitive(dialog->add_button, found); |
348 gtk_widget_set_sensitive(dialog->add_button, found); |
| 348 gtk_widget_set_sensitive(dialog->join_button, found); |
349 gtk_widget_set_sensitive(dialog->join_button, found); |
| 349 } |
350 } |
| 350 |
351 |
| 351 static void |
352 static void |
| 352 row_activated_cb(GtkTreeView *tv, GtkTreePath *path, GtkTreeViewColumn *arg2, |
353 row_activated_cb(G_GNUC_UNUSED GtkTreeView *tv, GtkTreePath *path, |
| 353 gpointer data) |
354 G_GNUC_UNUSED GtkTreeViewColumn *arg2, gpointer data) |
| 354 { |
355 { |
| 355 PidginRoomlistDialog *dialog = data; |
356 PidginRoomlistDialog *dialog = data; |
| 356 PidginRoomlist *grl = NULL; |
357 PidginRoomlist *grl = NULL; |
| 357 GtkTreeIter iter; |
358 GtkTreeIter iter; |
| 358 PurpleRoomlistRoom *room; |
359 PurpleRoomlistRoom *room; |