| 1510 _("You have dragged an image"), |
1510 _("You have dragged an image"), |
| 1511 _("You can send this image as a file transfer, " |
1511 _("You can send this image as a file transfer, " |
| 1512 "embed it into this message, or use it as the buddy icon for this user."), |
1512 "embed it into this message, or use it as the buddy icon for this user."), |
| 1513 DND_FILE_TRANSFER, _("OK"), (GCallback)dnd_image_ok_callback, |
1513 DND_FILE_TRANSFER, _("OK"), (GCallback)dnd_image_ok_callback, |
| 1514 _("Cancel"), (GCallback)dnd_image_cancel_callback, |
1514 _("Cancel"), (GCallback)dnd_image_cancel_callback, |
| 1515 account, who, NULL, |
1515 purple_request_cpar_from_account(account), |
| 1516 data, |
1516 data, |
| 1517 _("Set as buddy icon"), DND_BUDDY_ICON, |
1517 _("Set as buddy icon"), DND_BUDDY_ICON, |
| 1518 _("Send image file"), DND_FILE_TRANSFER, |
1518 _("Send image file"), DND_FILE_TRANSFER, |
| 1519 _("Insert in message"), DND_IM_IMAGE, |
1519 _("Insert in message"), DND_IM_IMAGE, |
| 1520 NULL); |
1520 NULL); |
| 1521 else if (!(im || ft)) |
1521 else if (!(im || ft)) |
| 1522 purple_request_yes_no(NULL, NULL, _("You have dragged an image"), |
1522 purple_request_yes_no(NULL, NULL, _("You have dragged an image"), |
| 1523 _("Would you like to set it as the buddy icon for this user?"), |
1523 _("Would you like to set it as the buddy icon for this user?"), |
| 1524 PURPLE_DEFAULT_ACTION_NONE, |
1524 PURPLE_DEFAULT_ACTION_NONE, |
| 1525 account, who, NULL, |
1525 purple_request_cpar_from_account(account), |
| 1526 data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); |
1526 data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); |
| 1527 else |
1527 else |
| 1528 purple_request_choice(NULL, NULL, |
1528 purple_request_choice(NULL, NULL, |
| 1529 _("You have dragged an image"), |
1529 _("You have dragged an image"), |
| 1530 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") : |
1530 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") : |
| 1531 _("You can insert this image into this message, or use it as the buddy icon for this user")), |
1531 _("You can insert this image into this message, or use it as the buddy icon for this user")), |
| 1532 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), |
1532 GINT_TO_POINTER(ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), |
| 1533 _("OK"), (GCallback)dnd_image_ok_callback, |
1533 _("OK"), (GCallback)dnd_image_ok_callback, |
| 1534 _("Cancel"), (GCallback)dnd_image_cancel_callback, |
1534 _("Cancel"), (GCallback)dnd_image_cancel_callback, |
| 1535 account, who, NULL, |
1535 purple_request_cpar_from_account(account), |
| 1536 data, |
1536 data, |
| 1537 _("Set as buddy icon"), DND_BUDDY_ICON, |
1537 _("Set as buddy icon"), DND_BUDDY_ICON, |
| 1538 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), |
1538 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), |
| 1539 NULL); |
1539 NULL); |
| 1540 g_object_unref(G_OBJECT(pb)); |
1540 g_object_unref(G_OBJECT(pb)); |
| 3354 PurpleConversation *conv; |
3354 PurpleConversation *conv; |
| 3355 if (!gtkconv) |
3355 if (!gtkconv) |
| 3356 return TRUE; |
3356 return TRUE; |
| 3357 conv = gtkconv->active_conv; |
3357 conv = gtkconv->active_conv; |
| 3358 purple_request_file(conv, _("Save File"), NULL, TRUE, |
3358 purple_request_file(conv, _("Save File"), NULL, TRUE, |
| 3359 G_CALLBACK(savefile_write_cb), G_CALLBACK(g_free), |
3359 G_CALLBACK(savefile_write_cb), G_CALLBACK(g_free), |
| 3360 purple_conversation_get_account(conv), NULL, conv, |
3360 purple_request_cpar_from_conversation(conv), |
| 3361 (gpointer)g_strdup(url)); |
3361 (gpointer)g_strdup(url)); |
| 3362 return TRUE; |
3362 return TRUE; |
| 3363 } |
3363 } |
| 3364 |
3364 |
| 3365 static gboolean |
3365 static gboolean |
| 3366 audio_context_menu(GtkWebView *webview, WebKitDOMHTMLAnchorElement *link, GtkWidget *menu) |
3366 audio_context_menu(GtkWebView *webview, WebKitDOMHTMLAnchorElement *link, GtkWidget *menu) |