pidgin/gtknotify.c

branch
release-2.x.y
changeset 40764
d687fda4047d
parent 38941
ed369ee7bb86
child 40771
cfb55052d83a
equal deleted inserted replaced
40761:f8ecce79cb9a 40764:d687fda4047d
29 #include <gdk/gdkkeysyms.h> 29 #include <gdk/gdkkeysyms.h>
30 30
31 #include "account.h" 31 #include "account.h"
32 #include "connection.h" 32 #include "connection.h"
33 #include "debug.h" 33 #include "debug.h"
34 #include "glibcompat.h"
34 #include "prefs.h" 35 #include "prefs.h"
35 #include "pidginstock.h" 36 #include "pidginstock.h"
36 #include "util.h" 37 #include "util.h"
37 38
38 #include "gtkblist.h" 39 #include "gtkblist.h"
347 gtk_tree_model_get_iter(GTK_TREE_MODEL(pounce_dialog->treemodel), 348 gtk_tree_model_get_iter(GTK_TREE_MODEL(pounce_dialog->treemodel),
348 &iter, list->data); 349 &iter, list->data);
349 gtk_tree_model_get(GTK_TREE_MODEL(pounce_dialog->treemodel), &iter, 350 gtk_tree_model_get(GTK_TREE_MODEL(pounce_dialog->treemodel), &iter,
350 PIDGIN_POUNCE_DATA, &pounce_data, 351 PIDGIN_POUNCE_DATA, &pounce_data,
351 -1); 352 -1);
352 g_list_foreach(list, (GFunc)gtk_tree_path_free, NULL); 353 g_list_free_full(list, (GDestroyNotify)gtk_tree_path_free);
353 g_list_free(list);
354 354
355 pounces = purple_pounces_get_all(); 355 pounces = purple_pounces_get_all();
356 for (; pounces != NULL; pounces = pounces->next) { 356 for (; pounces != NULL; pounces = pounces->next) {
357 PurplePounce *pounce = pounces->data; 357 PurplePounce *pounce = pounces->data;
358 if (pounce == pounce_data->pounce) { 358 if (pounce == pounce_data->pounce) {
480 } 480 }
481 } 481 }
482 482
483 button = bd->button; 483 button = bd->button;
484 button->callback(purple_account_get_connection(data->account), row, data->user_data); 484 button->callback(purple_account_get_connection(data->account), row, data->user_data);
485 g_list_foreach(row, (GFunc)g_free, NULL); 485 g_list_free_full(row, (GDestroyNotify)g_free);
486 g_list_free(row);
487 } 486 }
488 487
489 static void * 488 static void *
490 pidgin_notify_message(PurpleNotifyMsgType type, const char *title, 489 pidgin_notify_message(PurpleNotifyMsgType type, const char *title,
491 const char *primary, const char *secondary) 490 const char *primary, const char *secondary)

mercurial