comparison src/gtkpounce.c @ 13171:18d320fdf28c

[gaim-migrate @ 15534] SF Patch #1426979 from Sadrul Fixes SF Bug #1425702 Buddy Pounce Manager Crashes committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 08 Feb 2006 04:10:14 +0000
parents fcde3faa1f57
children 87d2d1230ba2
comparison
equal deleted inserted replaced
13170:5d5e9c65fa42 13171:18d320fdf28c
1064 static void 1064 static void
1065 pounces_manager_delete_confirm_cb(GaimPounce *pounce) 1065 pounces_manager_delete_confirm_cb(GaimPounce *pounce)
1066 { 1066 {
1067 GtkTreeIter iter; 1067 GtkTreeIter iter;
1068 1068
1069 if (pounces_manager_find_pounce(&iter, pounce)) 1069 if (pounces_manager && pounces_manager_find_pounce(&iter, pounce))
1070 gtk_list_store_remove(pounces_manager->model, &iter); 1070 gtk_list_store_remove(pounces_manager->model, &iter);
1071 1071
1072 gaim_request_close_with_handle(pounce);
1072 gaim_pounce_destroy(pounce); 1073 gaim_pounce_destroy(pounce);
1073 } 1074 }
1074 1075
1075 static void 1076 static void
1076 pounces_manager_delete_foreach(GtkTreeModel *model, GtkTreePath *path, 1077 pounces_manager_delete_foreach(GtkTreeModel *model, GtkTreePath *path,
1085 account = gaim_pounce_get_pouncer(pounce); 1086 account = gaim_pounce_get_pouncer(pounce);
1086 pouncer = gaim_account_get_username(account); 1087 pouncer = gaim_account_get_username(account);
1087 pouncee = gaim_pounce_get_pouncee(pounce); 1088 pouncee = gaim_pounce_get_pouncee(pounce);
1088 1089
1089 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); 1090 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer);
1090 gaim_request_action(NULL, NULL, buf, NULL, 0, pounce, 2, 1091 gaim_request_action(pounce, NULL, buf, NULL, 0, pounce, 2,
1091 _("Delete"), pounces_manager_delete_confirm_cb, 1092 _("Delete"), pounces_manager_delete_confirm_cb,
1092 _("Cancel"), g_free); 1093 _("Cancel"), g_free);
1093 g_free(buf); 1094 g_free(buf);
1094 } 1095 }
1095 1096