| 152 const gchar *name; |
152 const gchar *name; |
| 153 |
153 |
| 154 entry = (GtkWidget *)data; |
154 entry = (GtkWidget *)data; |
| 155 name = gtk_entry_get_text(GTK_ENTRY(entry)); |
155 name = gtk_entry_get_text(GTK_ENTRY(entry)); |
| 156 |
156 |
| 157 purple_request_file(entry, _("Select a file"), name, FALSE, |
157 purple_request_file_with_hint(entry, _("Select a file"), name, FALSE, |
| 158 G_CALLBACK(pounce_update_entry_fields), NULL, |
158 G_CALLBACK(pounce_update_entry_fields), NULL, |
| 159 NULL, NULL, NULL, |
159 NULL, NULL, NULL, |
| 160 entry); |
160 "buddy_pounce", entry); |
| 161 g_signal_connect_swapped(G_OBJECT(entry), "destroy", |
161 g_signal_connect_swapped(G_OBJECT(entry), "destroy", |
| 162 G_CALLBACK(purple_request_close_with_handle), entry); |
162 G_CALLBACK(purple_request_close_with_handle), entry); |
| 163 } |
163 } |
| 164 |
164 |
| 165 static void |
165 static void |
| 1106 account = purple_pounce_get_pouncer(pounce); |
1106 account = purple_pounce_get_pouncer(pounce); |
| 1107 pouncer = purple_account_get_username(account); |
1107 pouncer = purple_account_get_username(account); |
| 1108 pouncee = purple_pounce_get_pouncee(pounce); |
1108 pouncee = purple_pounce_get_pouncee(pounce); |
| 1109 |
1109 |
| 1110 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); |
1110 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); |
| 1111 purple_request_action(pounce, NULL, buf, NULL, 0, |
1111 purple_request_action_with_hint(pounce, NULL, buf, NULL, 0, |
| 1112 account, pouncee, NULL, |
1112 account, pouncee, NULL, |
| 1113 pounce, 2, |
1113 "pounces", pounce, 2, |
| 1114 _("Delete"), pounces_manager_delete_confirm_cb, |
1114 _("Delete"), pounces_manager_delete_confirm_cb, |
| 1115 _("Cancel"), NULL); |
1115 _("Cancel"), NULL); |
| 1116 g_free(buf); |
1116 g_free(buf); |
| 1117 } |
1117 } |
| 1118 |
1118 |