# HG changeset patch # User Richard Laager # Date 1195254202 0 # Node ID ca17c133d6c33383d990601bdbebb06dfc2b1c4c # Parent 7b30d02a36aa59647be77380fbf2075d568884b5# Parent 9c3ddecda3ce326ac99ac16f58299ef3bf52c760 merge of '12ad71995f63338f624cb01c1e25710a0307ca31' and 'f656cfabc030952447ce96cc94dc83bb8b9ea0d6' diff -r 9c3ddecda3ce -r ca17c133d6c3 ChangeLog --- a/ChangeLog Fri Nov 16 23:01:37 2007 +0000 +++ b/ChangeLog Fri Nov 16 23:03:22 2007 +0000 @@ -12,8 +12,6 @@ remove the plugin from the list of saved plugins so it won't load at the next startup. Previously, we were ignoring this case, which could lead to crashes. - * Mark dialog windows as transient for appropriate parent windows to - help window managers do the right thing (Gabriel Schulhof) Finch: * If a plugin says it can't be unloaded, we now display an error and diff -r 9c3ddecda3ce -r ca17c133d6c3 ChangeLog.API --- a/ChangeLog.API Fri Nov 16 23:01:37 2007 +0000 +++ b/ChangeLog.API Fri Nov 16 23:03:22 2007 +0000 @@ -15,42 +15,6 @@ from being saved in the saved plugins list, so it'll won't be loaded at the next startup. - * pidgin_dialogs_about_with_parent() - * pidgin_log_show_contact_with_parent() - * pidgin_log_show_with_parent() - * pidgin_plugin_dialog_show_with_parent() - * pidgin_pounce_editor_show_with_parent() - * pidgin_pounces_manager_show_with_parent() - * pidgin_syslog_show_with_parent() - - * purple_request_accept_cancel_with_hint() - * purple_request_action_varg_with_hint() - * purple_request_action_with_hint() - * purple_request_choice_varg_with_hint() - * purple_request_choice_with_hint() - * purple_request_fields_with_hint() - * purple_request_file_with_hint() - * purple_request_folder_with_hint() - * purple_request_input_with_hint() - * purple_request_ok_cancel_with_hint() - * purple_request_yes_no_with_hint() - - UI hints set by libpurple: - * PURPLE_REQUEST_UI_HINT_ACCOUNT - * PURPLE_REQUEST_UI_HINT_BLIST - * PURPLE_REQUEST_UI_HINT_BUDDY - * PURPLE_REQUEST_UI_HINT_CONV - * PURPLE_REQUEST_UI_HINT_REGISTER - * PURPLE_REQUEST_UI_HINT_XFER - - Common UI hints set by UIs: - * PURPLE_REQUEST_UI_HINT_ACCOUNTMGR - * PURPLE_REQUEST_UI_HINT_CERTMGR - * PURPLE_REQUEST_UI_HINT_PLUGINMGR - * PURPLE_REQUEST_UI_HINT_POUNCEMGR - * PURPLE_REQUEST_UI_HINT_PREFSMGR - * PURPLE_REQUEST_UI_HINT_STATUSMGR - Changed: * purple_plugin_unload() now honors the return value of a plugin's unload function and can actually return FALSE now. @@ -58,27 +22,6 @@ when a dependent plugin fails to unload. The UI should do something appropriate. - Deprecated: - * pidgin_dialogs_about() - * pidgin_log_show_contact() - * pidgin_log_show() - * pidgin_plugin_dialog_show() - * pidgin_pounce_editor_show() - * pidgin_pounces_manager_show() - * pidgin_syslog_show() - - * purple_request_accept_cancel() - * purple_request_action_varg() - * purple_request_action() - * purple_request_choice_varg() - * purple_request_choice() - * purple_request_fields() - * purple_request_file() - * purple_request_folder() - * purple_request_input() - * purple_request_ok_cancel() - * purple_request_yes_no() - version 2.2.2 (??/??/????): libpurple: Changed: diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntaccount.c --- a/finch/gntaccount.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntaccount.c Fri Nov 16 23:03:22 2007 +0000 @@ -633,7 +633,7 @@ purple_account_get_username(account)); purple_request_action_with_hint(account, _("Delete Account"), prompt, NULL, 0, - account, NULL, NULL, PURPLE_REQUEST_UI_HINT_ACCOUNTMGR, account, 2, + account, NULL, NULL, PURPLE_UI_REQUEST_HINT_ACCOUNTMGR, account, 2, _("Delete"), really_delete_account, _("Cancel"), NULL); g_free(prompt); @@ -884,7 +884,7 @@ purple_request_action_with_hint(NULL, NULL, _("Add buddy to your list?"), buffer, PURPLE_DEFAULT_ACTION_NONE, account, remote_user, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, data, 2, + PURPLE_REQUEST_HINT_BLIST, data, 2, _("Add"), G_CALLBACK(add_user_cb), _("Cancel"), G_CALLBACK(free_add_user_data)); g_free(buffer); @@ -972,7 +972,7 @@ widget = purple_request_action_with_hint(NULL, _("Authorize buddy?"), buffer, NULL, PURPLE_DEFAULT_ACTION_NONE, account, remote_user, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, aa, 2, + PURPLE_REQUEST_HINT_BLIST, aa, 2, _("Authorize"), authorize_and_add_cb, _("Deny"), deny_no_add_cb); gnt_screen_release(widget); @@ -999,7 +999,7 @@ uihandle = purple_request_action_with_hint(NULL, _("Authorize buddy?"), buffer, NULL, PURPLE_DEFAULT_ACTION_NONE, account, remote_user, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, user_data, 2, + PURPLE_REQUEST_HINT_BLIST, user_data, 2, _("Authorize"), auth_cb, _("Deny"), deny_cb); } diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntblist.c --- a/finch/gntblist.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntblist.c Fri Nov 16 23:03:22 2007 +0000 @@ -343,7 +343,7 @@ _("Add"), G_CALLBACK(add_buddy_cb), _("Cancel"), NULL, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static void @@ -420,7 +420,7 @@ _("You can edit more information from the context menu later."), fields, _("Add"), G_CALLBACK(add_chat_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static void @@ -455,7 +455,7 @@ NULL, FALSE, FALSE, NULL, _("Add"), G_CALLBACK(add_group_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static PurpleBlistUiOps blist_ui_ops = @@ -802,7 +802,7 @@ purple_request_fields_with_hint(NULL, _("Edit Chat"), NULL, _("Please Update the necessary fields."), fields, _("Edit"), G_CALLBACK(chat_components_edit_ok), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, chat); + PURPLE_REQUEST_HINT_BLIST, chat); } static void @@ -1004,7 +1004,7 @@ name, FALSE, FALSE, NULL, text, G_CALLBACK(rename_blist_node), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, node); + PURPLE_REQUEST_HINT_BLIST, node); g_free(prompt); } @@ -1096,7 +1096,7 @@ primary, sec, 1, account, name, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, node, 2, + PURPLE_REQUEST_HINT_BLIST, node, 2, _("Remove"), finch_blist_remove_node, _("Cancel"), NULL); g_free(primary); @@ -2223,7 +2223,7 @@ _("OK"), G_CALLBACK(send_im_select_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static void @@ -2286,7 +2286,7 @@ _("Join"), G_CALLBACK(join_chat_select_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntcertmgr.c --- a/finch/gntcertmgr.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntcertmgr.c Fri Nov 16 23:03:22 2007 +0000 @@ -90,7 +90,7 @@ _("OK"), G_CALLBACK(tls_peers_mgmt_import_ok2_cb), _("Cancel"), G_CALLBACK(tls_peers_mgmt_import_cancel2_cb), NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CERTMGR, crt); + PURPLE_UI_REQUEST_HINT_CERTMGR, crt); g_free(default_hostname); } else { gchar * secondary; @@ -112,7 +112,7 @@ FALSE, G_CALLBACK(tls_peers_mgmt_import_ok_cb), NULL, - NULL, NULL, NULL, PURPLE_REQUEST_UI_HINT_CERTMGR, NULL ); + NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_CERTMGR, NULL ); } /* Save certs in some file */ @@ -161,7 +161,7 @@ G_CALLBACK(tls_peers_mgmt_export_ok_cb), G_CALLBACK(purple_certificate_destroy), NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CERTMGR, crt); + PURPLE_UI_REQUEST_HINT_CERTMGR, crt); } /* Show information about a cert */ @@ -236,7 +236,7 @@ purple_request_yes_no_with_hint((void *)key, _("Confirm certificate delete"), primary, NULL, 2, - NULL, NULL, NULL, PURPLE_REQUEST_UI_HINT_CERTMGR, + NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_CERTMGR, g_strdup(key), tls_peers_mgmt_delete_confirm_cb, g_free); diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntconn.c --- a/finch/gntconn.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntconn.c Fri Nov 16 23:03:22 2007 +0000 @@ -132,7 +132,7 @@ purple_request_action_with_hint(account, NULL, primary, secondary, 2, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, account, 3, + PURPLE_REQUEST_HINT_BLIST, account, 3, _("OK"), NULL, _("Modify Account"), PURPLE_CALLBACK(ce_modify_account_cb), _("Re-enable Account"), PURPLE_CALLBACK(ce_enable_account_cb)); diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntplugin.c --- a/finch/gntplugin.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntplugin.c Fri Nov 16 23:03:22 2007 +0000 @@ -472,6 +472,6 @@ return purple_request_fields_with_hint(NULL, _("Preferences"), NULL, NULL, fields, _("Save"), G_CALLBACK(finch_request_save_in_prefs), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_PLUGINMGR, NULL); + PURPLE_UI_REQUEST_HINT_PLUGINMGR, NULL); } diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntpounce.c --- a/finch/gntpounce.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntpounce.c Fri Nov 16 23:03:22 2007 +0000 @@ -662,7 +662,7 @@ buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); purple_request_action_with_hint(pounce, NULL, buf, NULL, 0, account, pouncee, NULL, - PURPLE_REQUEST_UI_HINT_POUNCEMGR, pounce, 2, + PURPLE_UI_REQUEST_HINT_POUNCEMGR, pounce, 2, _("Delete"), pounces_manager_delete_confirm_cb, _("Cancel"), NULL); g_free(buf); diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntprefs.c --- a/finch/gntprefs.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntprefs.c Fri Nov 16 23:03:22 2007 +0000 @@ -264,6 +264,6 @@ pref_request.window = purple_request_fields_with_hint(NULL, _("Preferences"), NULL, NULL, fields, _("Save"), G_CALLBACK(save_cb), _("Cancel"), free_strings, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_PREFSMGR, NULL); + PURPLE_UI_REQUEST_HINT_PREFSMGR, NULL); } diff -r 9c3ddecda3ce -r ca17c133d6c3 finch/gntstatus.c --- a/finch/gntstatus.c Fri Nov 16 23:01:37 2007 +0000 +++ b/finch/gntstatus.c Fri Nov 16 23:03:22 2007 +0000 @@ -140,7 +140,7 @@ purple_request_action_with_hint(saved, _("Delete Status"), ask, NULL, 0, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_STATUSMGR, saved, 2, + PURPLE_UI_REQUEST_HINT_STATUSMGR, saved, 2, _("Delete"), really_delete_status, _("Cancel"), NULL); g_free(ask); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/account.c --- a/libpurple/account.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/account.c Fri Nov 16 23:03:22 2007 +0000 @@ -1015,7 +1015,7 @@ _("OK"), ok_cb, _("Cancel"), cancel_cb, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, user_data); + PURPLE_REQUEST_HINT_ACCOUNT, user_data); g_free(primary); } @@ -1304,7 +1304,7 @@ _("OK"), G_CALLBACK(change_password_cb), _("Cancel"), NULL, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, account); + PURPLE_REQUEST_HINT_ACCOUNT, account); } static void @@ -1339,7 +1339,7 @@ _("Save"), G_CALLBACK(set_user_info_cb), _("Cancel"), NULL, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, account); + PURPLE_REQUEST_HINT_ACCOUNT, account); } void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/certificate.c --- a/libpurple/certificate.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/certificate.c Fri Nov 16 23:03:22 2007 +0000 @@ -572,7 +572,7 @@ NULL, /* No account */ NULL, /* No other user */ NULL, /* No associated conversation */ - PURPLE_REQUEST_UI_HINT_BLIST, + PURPLE_REQUEST_HINT_BLIST, vrq, x509_singleuse_verify_cb, x509_singleuse_verify_cb ); @@ -1195,7 +1195,7 @@ NULL, /* No account */ NULL, /* No other user */ NULL, /* No associated conversation */ - PURPLE_REQUEST_UI_HINT_BLIST, + PURPLE_REQUEST_HINT_BLIST, x509_tls_cached_ua_ctx_new(vrq, reason), 3, /* Number of actions */ _("Accept"), x509_tls_cached_user_auth_accept_cb, diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/conversation.c --- a/libpurple/conversation.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/conversation.c Fri Nov 16 23:03:22 2007 +0000 @@ -1211,7 +1211,7 @@ purple_request_action_with_hint(conv, NULL, _("Send Message"), text, 0, purple_conversation_get_account(conv), NULL, conv, - PURPLE_REQUEST_UI_HINT_CONV, data, 2, + PURPLE_REQUEST_HINT_CONV, data, 2, _("_Send Message"), G_CALLBACK(purple_conv_send_confirm_cb), _("Cancel"), NULL); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/ft.c --- a/libpurple/ft.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/ft.c Fri Nov 16 23:03:22 2007 +0000 @@ -314,7 +314,7 @@ G_CALLBACK(purple_xfer_choose_file_ok_cb), G_CALLBACK(purple_xfer_choose_file_cancel_cb), purple_xfer_get_account(xfer), xfer->who, NULL, - PURPLE_REQUEST_UI_HINT_XFER, xfer); + PURPLE_REQUEST_HINT_XFER, xfer); return 0; } @@ -362,7 +362,7 @@ purple_request_accept_cancel_with_hint(xfer, NULL, buf, NULL, PURPLE_DEFAULT_ACTION_NONE, xfer->account, xfer->who, NULL, - PURPLE_REQUEST_UI_HINT_XFER, xfer, + PURPLE_REQUEST_HINT_XFER, xfer, G_CALLBACK(purple_xfer_choose_file), G_CALLBACK(cancel_recv_cb)); @@ -405,7 +405,7 @@ purple_request_accept_cancel_with_hint(xfer, NULL, buf, buf2, PURPLE_DEFAULT_ACTION_NONE, xfer->account, xfer->who, NULL, - PURPLE_REQUEST_UI_HINT_XFER, xfer, + PURPLE_REQUEST_HINT_XFER, xfer, G_CALLBACK(ask_accept_ok), G_CALLBACK(ask_accept_cancel)); g_free(buf); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/plugins/autoaccept.c --- a/libpurple/plugins/autoaccept.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/plugins/autoaccept.c Fri Nov 16 23:03:22 2007 +0000 @@ -164,7 +164,7 @@ _("_Save"), G_CALLBACK(save_cb), _("_Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_XFER, node, + PURPLE_REQUEST_HINT_XFER, node, _("Ask"), FT_ASK, _("Auto Accept"), FT_ACCEPT, _("Auto Reject"), FT_REJECT, diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/plugins/buddynote.c --- a/libpurple/plugins/buddynote.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/plugins/buddynote.c Fri Nov 16 23:03:22 2007 +0000 @@ -50,7 +50,7 @@ _("Save"), G_CALLBACK(do_it_cb), _("Cancel"), G_CALLBACK(dont_do_it_cb), NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, node); + PURPLE_REQUEST_HINT_BUDDY, node); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/plugins/idle.c --- a/libpurple/plugins/idle.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/plugins/idle.c Fri Nov 16 23:03:22 2007 +0000 @@ -169,7 +169,7 @@ _("_Set"), G_CALLBACK(idle_action_ok), _("_Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, NULL); + PURPLE_REQUEST_HINT_ACCOUNT, NULL); } static void @@ -203,7 +203,7 @@ _("_Unset"), G_CALLBACK(unidle_action_ok), _("_Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, NULL); + PURPLE_REQUEST_HINT_ACCOUNT, NULL); } static void @@ -229,7 +229,7 @@ _("_Set"), G_CALLBACK(idle_all_action_ok), _("_Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, NULL); + PURPLE_REQUEST_HINT_ACCOUNT, NULL); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/plugins/offlinemsg.c --- a/libpurple/plugins/offlinemsg.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/plugins/offlinemsg.c Fri Nov 16 23:03:22 2007 +0000 @@ -161,7 +161,7 @@ _("You can edit/delete the pounce from the `Buddy Pounces' dialog"), 1, offline->account, offline->who, offline->conv, - PURPLE_REQUEST_UI_HINT_BUDDY, offline, 2, + PURPLE_REQUEST_HINT_BUDDY, offline, 2, _("Yes"), record_pounce, _("No"), cancel_poune); g_free(ask); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/plugins/perl/common/Request.xs diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/gg/gg.c --- a/libpurple/protocols/gg/gg.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/gg/gg.c Fri Nov 16 23:03:22 2007 +0000 @@ -336,7 +336,7 @@ purple_request_file_with_hint(action, _("Save buddylist..."), NULL, TRUE, G_CALLBACK(ggp_callback_buddylist_save_ok), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, gc); + PURPLE_REQUEST_HINT_BLIST, gc); } /* }}} */ @@ -350,7 +350,7 @@ purple_request_file_with_hint(action, "Load buddylist from file...", NULL, FALSE, G_CALLBACK(ggp_callback_buddylist_load_ok), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, gc); + PURPLE_REQUEST_HINT_BLIST, gc); } /* }}} */ @@ -506,7 +506,7 @@ _("OK"), G_CALLBACK(ggp_callback_register_account_ok), _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel), purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_REGISTER, gc); + PURPLE_REQUEST_HINT_REGISTER, gc); } /* }}} */ @@ -665,7 +665,7 @@ _("OK"), G_CALLBACK(ggp_callback_find_buddies), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, gc); + PURPLE_REQUEST_HINT_BLIST, gc); } /* }}} */ @@ -802,7 +802,7 @@ fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); g_free(msg); } @@ -883,7 +883,7 @@ _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, gc); + PURPLE_REQUEST_HINT_BUDDY, gc); g_free(msg); } /* }}} */ diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/auth.c --- a/libpurple/protocols/jabber/auth.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/auth.c Fri Nov 16 23:03:22 2007 +0000 @@ -321,7 +321,7 @@ purple_request_yes_no_with_hint(js->gc, _("Plaintext Authentication"), _("Plaintext Authentication"), msg, - 2, js->gc->account, NULL, NULL, PURPLE_REQUEST_UI_HINT_ACCOUNT, js->gc->account, + 2, js->gc->account, NULL, NULL, PURPLE_REQUEST_HINT_ACCOUNT, js->gc->account, allow_cyrus_plaintext_auth, disallow_plaintext_auth); g_free(msg); @@ -512,7 +512,7 @@ msg, 2, purple_connection_get_account(js->gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, purple_connection_get_account(js->gc), + PURPLE_REQUEST_HINT_ACCOUNT, purple_connection_get_account(js->gc), allow_plaintext_auth, disallow_plaintext_auth); g_free(msg); return; @@ -600,7 +600,7 @@ _("This server requires plaintext authentication over an unencrypted connection. Allow this and continue authentication?"), 2, purple_connection_get_account(js->gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, purple_connection_get_account(js->gc), + PURPLE_REQUEST_HINT_ACCOUNT, purple_connection_get_account(js->gc), allow_plaintext_auth, disallow_plaintext_auth); return; } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.c Fri Nov 16 23:03:22 2007 +0000 @@ -727,7 +727,7 @@ _("Save"), G_CALLBACK(jabber_format_info), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } /*---------------------------------------*/ @@ -2415,7 +2415,7 @@ _("Search"), G_CALLBACK(user_search_cb), _("Cancel"), G_CALLBACK(user_search_cancel_cb), purple_connection_get_account(js->gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, usi); + PURPLE_REQUEST_HINT_ACCOUNT, usi); g_free(instructions); } @@ -2451,7 +2451,7 @@ _("Search Directory"), PURPLE_CALLBACK(jabber_user_search), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, js); + PURPLE_REQUEST_HINT_ACCOUNT, js); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/chat.c --- a/libpurple/protocols/jabber/chat.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/chat.c Fri Nov 16 23:03:22 2007 +0000 @@ -785,7 +785,7 @@ _("Find Rooms"), PURPLE_CALLBACK(roomlist_ok_cb), _("Cancel"), PURPLE_CALLBACK(roomlist_cancel_cb), purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, js); + PURPLE_REQUEST_HINT_CONV, js); return js->roomlist; } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Fri Nov 16 23:03:22 2007 +0000 @@ -1007,7 +1007,7 @@ _("Register"), G_CALLBACK(jabber_register_cb), _("Cancel"), G_CALLBACK(jabber_register_cancel_cb), purple_connection_get_account(js->gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_REGISTER, cbdata); + PURPLE_REQUEST_HINT_REGISTER, cbdata); else { char *title = registered?g_strdup_printf(_("Change Account Registration at %s"), from) :g_strdup_printf(_("Register New Account at %s"), from); @@ -1016,7 +1016,7 @@ registered?_("Change Registration"):_("Register"), G_CALLBACK(jabber_register_cb), _("Cancel"), G_CALLBACK(jabber_register_cancel_cb), purple_connection_get_account(js->gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_REGISTER, cbdata); + PURPLE_REQUEST_HINT_REGISTER, cbdata); g_free(title); } @@ -1712,7 +1712,7 @@ fields, _("OK"), G_CALLBACK(jabber_password_change_cb), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, js); + PURPLE_REQUEST_HINT_ACCOUNT, js); } GList *jabber_actions(PurplePlugin *plugin, gpointer context) diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/presence.c Fri Nov 16 23:03:22 2007 +0000 @@ -520,7 +520,7 @@ " accept the default settings?"), /* Default Action */ 1, purple_connection_get_account(js->gc), NULL, chat->conv, - PURPLE_REQUEST_UI_HINT_CONV, chat, 2, + PURPLE_REQUEST_HINT_CONV, chat, 2, _("_Configure Room"), G_CALLBACK(jabber_chat_request_room_configure), _("_Accept Defaults"), G_CALLBACK(jabber_chat_create_instant_room)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/si.c --- a/libpurple/protocols/jabber/si.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/si.c Fri Nov 16 23:03:22 2007 +0000 @@ -872,7 +872,7 @@ purple_request_fields_with_hint(jsx->js->gc, _("Select a Resource"), msg, NULL, fields, _("Send File"), G_CALLBACK(resource_select_ok_cb), _("Cancel"), G_CALLBACK(resource_select_cancel_cb), - jsx->js->gc->account, xfer->who, NULL, PURPLE_REQUEST_UI_HINT_XFER, xfer); + jsx->js->gc->account, xfer->who, NULL, PURPLE_REQUEST_HINT_XFER, xfer); g_free(msg); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/usermood.c --- a/libpurple/protocols/jabber/usermood.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/usermood.c Fri Nov 16 23:03:22 2007 +0000 @@ -201,7 +201,7 @@ _("Set"), G_CALLBACK(do_mood_set_from_fields), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, gc); + PURPLE_REQUEST_HINT_BLIST, gc); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/usernick.c --- a/libpurple/protocols/jabber/usernick.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/usernick.c Fri Nov 16 23:03:22 2007 +0000 @@ -76,7 +76,7 @@ purple_request_input_with_hint(js->gc, _("Set User Nickname"), _("Please specify a new nickname for you."), _("This information is visible to all contacts on your contact list, so choose something appropriate."), oldnickname, FALSE, FALSE, NULL, _("Set"), PURPLE_CALLBACK(do_nick_set), _("Cancel"), NULL, - purple_connection_get_account(js->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, js); + purple_connection_get_account(js->gc), NULL, NULL, PURPLE_REQUEST_HINT_BLIST, js); g_free(oldnickname); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/jabber/xdata.c --- a/libpurple/protocols/jabber/xdata.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/jabber/xdata.c Fri Nov 16 23:03:22 2007 +0000 @@ -399,7 +399,7 @@ _("OK"), G_CALLBACK(jabber_x_data_ok_cb), _("Cancel"), G_CALLBACK(jabber_x_data_cancel_cb), purple_connection_get_account(js->gc), /* XXX Do we have a who here? */ NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, data); + PURPLE_REQUEST_HINT_ACCOUNT, data); g_free(title); g_free(instructions); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/msn/dialog.c --- a/libpurple/protocols/msn/dialog.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/msn/dialog.c Fri Nov 16 23:03:22 2007 +0000 @@ -137,7 +137,7 @@ purple_request_action_with_hint(gc, NULL, msg, reason, PURPLE_DEFAULT_ACTION_NONE, purple_connection_get_account(gc), data->who, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, data, 2, + PURPLE_REQUEST_HINT_BLIST, data, 2, _("Yes"), G_CALLBACK(msn_add_cb), _("No"), G_CALLBACK(msn_rem_cb)); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/msn/msn.c --- a/libpurple/protocols/msn/msn.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/msn/msn.c Fri Nov 16 23:03:22 2007 +0000 @@ -289,7 +289,7 @@ _("OK"), G_CALLBACK(msn_act_id), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void @@ -306,7 +306,7 @@ _("OK"), G_CALLBACK(msn_set_home_phone_cb), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void @@ -323,7 +323,7 @@ _("OK"), G_CALLBACK(msn_set_work_phone_cb), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void @@ -340,7 +340,7 @@ _("OK"), G_CALLBACK(msn_set_mobile_phone_cb), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void @@ -356,7 +356,7 @@ "to your cell phone or other mobile device?"), -1, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc, 3, + PURPLE_REQUEST_HINT_ACCOUNT, gc, 3, _("Allow"), G_CALLBACK(enable_msn_pages_cb), _("Disallow"), G_CALLBACK(disable_msn_pages_cb), _("Cancel"), NULL); @@ -405,7 +405,7 @@ _("Page"), G_CALLBACK(send_to_mobile_cb), _("Close"), G_CALLBACK(close_mobile_page_cb), purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, data); + PURPLE_REQUEST_HINT_ACCOUNT, data); } static gboolean diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/novell/novell.c --- a/libpurple/protocols/novell/novell.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/novell/novell.c Fri Nov 16 23:03:22 2007 +0000 @@ -1915,7 +1915,7 @@ purple_request_action_with_hint(gc, title, primary, secondary, PURPLE_DEFAULT_ACTION_NONE, purple_connection_get_account(gc), name, NULL, - PURPLE_REQUEST_UI_HINT_CONV, parms, 2, + PURPLE_REQUEST_HINT_CONV, parms, 2, _("Yes"), G_CALLBACK(_join_conference_cb), _("No"), G_CALLBACK(_reject_conference_cb)); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Fri Nov 16 23:03:22 2007 +0000 @@ -1454,7 +1454,7 @@ _("_OK"), G_CALLBACK(purple_parse_auth_securid_request_yes_cb), _("_Cancel"), G_CALLBACK(purple_parse_auth_securid_request_no_cb), account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); g_free(primary); return 1; @@ -2246,7 +2246,7 @@ _("_OK"), G_CALLBACK(purple_auth_request), _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), purple_connection_get_account(gc), name, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, data); + PURPLE_REQUEST_HINT_BLIST, data); } @@ -2295,7 +2295,7 @@ _("_OK"), G_CALLBACK(purple_auth_dontgrant), _("_Cancel"), G_CALLBACK(oscar_free_name_data), purple_connection_get_account(data->gc), data->name, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, data); + PURPLE_REQUEST_HINT_BLIST, data); } /* When someone sends you buddies */ @@ -2481,7 +2481,7 @@ "to your buddy list?"), PURPLE_DEFAULT_ACTION_NONE, purple_connection_get_account(gc), data->name, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, data, 2, + PURPLE_REQUEST_HINT_BLIST, data, 2, _("_Add"), G_CALLBACK(purple_icq_buddyadd), _("_Decline"), G_CALLBACK(oscar_free_name_data)); g_free(message); @@ -5236,7 +5236,7 @@ purple_request_yes_no_with_hint(gc, NULL, _("Authorization Given"), dialog_msg, PURPLE_DEFAULT_ACTION_NONE, purple_connection_get_account(gc), sn, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, data, + PURPLE_REQUEST_HINT_BLIST, data, G_CALLBACK(purple_icq_buddyadd), G_CALLBACK(oscar_free_name_data)); g_free(dialog_msg); @@ -5937,7 +5937,7 @@ _("_OK"), G_CALLBACK(oscar_ssi_editcomment), _("_Cancel"), G_CALLBACK(oscar_free_name_data), purple_connection_get_account(gc), data->name, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, data); + PURPLE_REQUEST_HINT_BUDDY, data); g_free(title); g_free(comment); @@ -5988,7 +5988,7 @@ "wish to continue?"), 0, purple_connection_get_account(gc), data->who, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, data, 2, + PURPLE_REQUEST_HINT_BUDDY, data, 2, _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); g_free(buf); @@ -6145,7 +6145,7 @@ _("OK"), G_CALLBACK(oscar_icq_privacy_opts), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { @@ -6218,7 +6218,7 @@ _("_OK"), G_CALLBACK(oscar_change_email), _("_Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void oscar_show_awaitingauth(PurplePluginAction *action) @@ -6288,7 +6288,7 @@ _("_Search"), G_CALLBACK(search_by_email_cb), _("_Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void oscar_show_set_info(PurplePluginAction *action) diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/oscar/peer.c --- a/libpurple/protocols/oscar/peer.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/oscar/peer.c Fri Nov 16 23:03:22 2007 +0000 @@ -1041,7 +1041,7 @@ "risk."), PURPLE_DEFAULT_ACTION_NONE, account, sn, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, conn, 2, + PURPLE_REQUEST_HINT_BUDDY, conn, 2, _("C_onnect"), G_CALLBACK(peer_connection_got_proposition_yes_cb), _("Cancel"), G_CALLBACK(peer_connection_got_proposition_no_cb)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/qq/buddy_opt.c --- a/libpurple/protocols/qq/buddy_opt.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/qq/buddy_opt.c Fri Nov 16 23:03:22 2007 +0000 @@ -213,7 +213,7 @@ _("Sorry, you are not my type..."), TRUE, FALSE, NULL, _("Reject"), G_CALLBACK(_qq_reject_add_request_real), _("Cancel"), NULL, purple_connection_get_account(gc), nombre, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, g2); + PURPLE_REQUEST_HINT_BUDDY, g2); g_free(nombre); } @@ -410,7 +410,7 @@ (_qq_send_packet_add_buddy_auth_with_gc_and_uid), _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid), purple_connection_get_account(gc), nombre, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, g); + PURPLE_REQUEST_HINT_BUDDY, g); g_free(msg); g_free(nombre); } else { /* add OK */ diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/qq/group.c --- a/libpurple/protocols/qq/group.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/qq/group.c Fri Nov 16 23:03:22 2007 +0000 @@ -123,7 +123,7 @@ _("Search"), G_CALLBACK(_qq_group_search_callback), _("Cancel"), G_CALLBACK(_qq_group_search_cancel_callback), purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, gc); + PURPLE_REQUEST_HINT_CONV, gc); return qd->roomlist; } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/qq/group_im.c --- a/libpurple/protocols/qq/group_im.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/qq/group_im.c Fri Nov 16 23:03:22 2007 +0000 @@ -137,7 +137,7 @@ msg, reason, 2, purple_connection_get_account(gc), nombre, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g, 3, + PURPLE_REQUEST_HINT_CONV, g, 3, _("Approve"), G_CALLBACK (qq_group_approve_application_with_struct), diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/qq/group_join.c --- a/libpurple/protocols/qq/group_join.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/qq/group_join.c Fri Nov 16 23:03:22 2007 +0000 @@ -139,7 +139,7 @@ G_CALLBACK(_qq_group_join_auth_with_gc_and_id), _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid), purple_connection_get_account(gc), group->group_name_utf8, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g); + PURPLE_REQUEST_HINT_CONV, g); g_free(msg); } @@ -362,7 +362,7 @@ ("Note, if you are the creator, \nthis operation will eventually remove this Qun."), 1, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g, 2, _("Cancel"), + PURPLE_REQUEST_HINT_CONV, g, 2, _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid), _("Continue"), G_CALLBACK(_qq_group_exit_with_gc_and_id)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/qq/group_opt.c --- a/libpurple/protocols/qq/group_opt.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/qq/group_opt.c Fri Nov 16 23:03:22 2007 +0000 @@ -123,7 +123,7 @@ qq_send_packet_get_info(g->gc, g->member, TRUE); /* we want to see window */ purple_request_action_with_hint(g->gc, NULL, _("Do you want to approve the request?"), "", 2, purple_connection_get_account(g->gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g, 2, + PURPLE_REQUEST_HINT_CONV, g, 2, _("Reject"), G_CALLBACK(qq_group_reject_application_with_struct), _("Approve"), G_CALLBACK(qq_group_approve_application_with_struct)); } @@ -143,7 +143,7 @@ _("Send"), G_CALLBACK(_qq_group_reject_application_real), _("Cancel"), G_CALLBACK(_qq_group_do_nothing_with_struct), purple_connection_get_account(g->gc), nombre, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g); + PURPLE_REQUEST_HINT_CONV, g); g_free(msg1); g_free(msg2); @@ -394,7 +394,7 @@ ("Would you like to set up the Qun details now?"), 1, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g, 2, + PURPLE_REQUEST_HINT_CONV, g, 2, _("Setup"), G_CALLBACK(qq_group_setup_with_gc_and_uid), _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/qq/sys_msg.c --- a/libpurple/protocols/qq/sys_msg.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/qq/sys_msg.c Fri Nov 16 23:03:22 2007 +0000 @@ -83,10 +83,10 @@ qq_send_packet_get_info(gc, uid, TRUE); /* we want to see window */ nombre = uid_to_purple_name(uid); - purple_request_action_with_hint + purple_request_action (gc, NULL, _("Do you want to approve the request?"), "", 2, purple_connection_get_account(gc), nombre, NULL, - PURPLE_REQUEST_UI_HINT_CONV, g, 2, + PURPLE_REQUEST_HINT_CONV, g, 2, _("Reject"), G_CALLBACK(qq_reject_add_request_with_gc_and_uid), _("Approve"), G_CALLBACK(qq_approve_add_request_with_gc_and_uid)); g_free(nombre); @@ -106,11 +106,11 @@ qq_send_packet_get_info(gc, uid, TRUE); /* we want to see window */ nombre = uid_to_purple_name(uid); - purple_request_action_with_hint + purple_request_action (gc, NULL, _("Do you want to add this buddy?"), "", 2, purple_connection_get_account(gc), nombre, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, g, 2, - _("Cancel"), NULL, + PURPLE_REQUEST_HINT_BUDDY, g, 2, + _("Cancel"), NULL, _("Add"), G_CALLBACK(qq_add_buddy_with_gc_and_uid)); g_free(nombre); } @@ -168,7 +168,7 @@ purple_request_action_with_hint(gc, NULL, message, _("Would you like to add him?"), 2, purple_connection_get_account(gc), name, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, g, 3, + PURPLE_REQUEST_HINT_BUDDY, g, 3, _("Cancel"), NULL, _("Add"), G_CALLBACK(qq_add_buddy_with_gc_and_uid), _("Search"), G_CALLBACK(_qq_search_before_add_with_gc_and_uid)); @@ -239,10 +239,10 @@ reason = g_strdup_printf(_("Message: %s"), msg_utf8); _qq_sys_msg_log_write(gc, message, from); - purple_request_action_with_hint + purple_request_action (gc, NULL, message, reason, 2, purple_connection_get_account(gc), name, NULL, - PURPLE_REQUEST_UI_HINT_BUDDY, g, 3, + PURPLE_REQUEST_HINT_BUDDY, g, 3, _("Reject"), G_CALLBACK(qq_reject_add_request_with_gc_and_uid), _("Approve"), @@ -262,7 +262,7 @@ purple_request_action_with_hint(gc, NULL, message, _("Would you like to add him?"), 2, purple_connection_get_account(gc), name, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, g2, 3, + PURPLE_REQUEST_HINT_BLIST, g2, 3, _("Cancel"), NULL, _("Add"), G_CALLBACK(qq_add_buddy_with_gc_and_uid), _("Search"), G_CALLBACK(_qq_search_before_add_with_gc_and_uid)); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/sametime/sametime.c --- a/libpurple/protocols/sametime/sametime.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/sametime/sametime.c Fri Nov 16 23:03:22 2007 +0000 @@ -3387,7 +3387,7 @@ _("Create"), G_CALLBACK(conf_create_prompt_join), _("Cancel"), G_CALLBACK(conf_create_prompt_cancel), acct, purple_buddy_get_name(buddy), NULL, - PURPLE_REQUEST_UI_HINT_CONV, buddy); + PURPLE_REQUEST_HINT_CONV, buddy); g_free(msg1); } @@ -3473,7 +3473,7 @@ _("Invite"), G_CALLBACK(conf_select_prompt_invite), _("Cancel"), G_CALLBACK(conf_select_prompt_cancel), acct, purple_buddy_get_name(buddy), NULL, - PURPLE_REQUEST_UI_HINT_CONV, buddy); + PURPLE_REQUEST_HINT_CONV, buddy); g_free(msg); } @@ -3644,7 +3644,7 @@ _("Connect"), G_CALLBACK(prompt_host_ok_cb), _("Cancel"), G_CALLBACK(prompt_host_cancel_cb), acct, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, gc); + PURPLE_REQUEST_HINT_CONV, gc); g_free(msg); } @@ -5218,7 +5218,7 @@ purple_request_file_with_hint(gc, title, NULL, FALSE, G_CALLBACK(st_import_action_cb), NULL, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, gc); + PURPLE_REQUEST_HINT_CONV, gc); g_free(title); } @@ -5258,7 +5258,7 @@ purple_request_file_with_hint(gc, title, NULL, TRUE, G_CALLBACK(st_export_action_cb), NULL, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, gc); + PURPLE_REQUEST_HINT_CONV, gc); g_free(title); } @@ -5396,7 +5396,7 @@ _("Add Group"), G_CALLBACK(remote_group_multi_cb), _("Cancel"), G_CALLBACK(remote_group_multi_cleanup), purple_connection_get_account(gc), result->name, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, pd); + PURPLE_REQUEST_HINT_BLIST, pd); g_free(msg); } @@ -5486,7 +5486,7 @@ _("Add"), G_CALLBACK(remote_group_action_cb), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, gc); + PURPLE_REQUEST_HINT_BLIST, gc); } @@ -5611,7 +5611,7 @@ _("Search"), G_CALLBACK(search_action_cb), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, gc); + PURPLE_REQUEST_HINT_BLIST, gc); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/buddy.c --- a/libpurple/protocols/silc/buddy.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/buddy.c Fri Nov 16 23:03:22 2007 +0000 @@ -314,7 +314,7 @@ purple_request_action_with_hint(client->application, _("Key Agreement Request"), tmp, hostname ? tmp2 : NULL, 1, gc->account, client_entry->nickname, - NULL, PURPLE_REQUEST_UI_HINT_BLIST, a, 2, _("Yes"), G_CALLBACK(silcpurple_buddy_keyagr_request_cb), + NULL, PURPLE_REQUEST_HINT_BLIST, a, 2, _("Yes"), G_CALLBACK(silcpurple_buddy_keyagr_request_cb), _("No"), G_CALLBACK(silcpurple_buddy_keyagr_request_cb)); } @@ -453,7 +453,7 @@ _("Set IM Password"), NULL, FALSE, TRUE, NULL, _("OK"), G_CALLBACK(silcpurple_buddy_privkey_cb), _("Cancel"), G_CALLBACK(silcpurple_buddy_privkey_cb), - gc->account, NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, p); + gc->account, NULL, NULL, PURPLE_REQUEST_HINT_BLIST, p); silc_client_list_free(sg->client, sg->conn, clients); } @@ -1059,7 +1059,7 @@ purple_request_file_with_hint(r->client->application, _("Open..."), NULL, FALSE, G_CALLBACK(silcpurple_add_buddy_ask_import), G_CALLBACK(silcpurple_add_buddy_ask_pk_cancel), - purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_UI_HINT_BLIST, r); + purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_HINT_BLIST, r); } @@ -1072,7 +1072,7 @@ purple_request_action_with_hint(r->client->application, _("Add Buddy"), tmp, _("To add the buddy you must import his/her public key. " "Press Import to import a public key."), 0, - purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_UI_HINT_BLIST, r, 2, + purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_HINT_BLIST, r, 2, _("Cancel"), G_CALLBACK(silcpurple_add_buddy_ask_pk_cb), _("_Import..."), G_CALLBACK(silcpurple_add_buddy_ask_pk_cb)); } @@ -1189,7 +1189,7 @@ fields, _("OK"), G_CALLBACK(silcpurple_add_buddy_select_cb), _("Cancel"), G_CALLBACK(silcpurple_add_buddy_select_cancel), - purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_UI_HINT_BLIST, r); + purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_HINT_BLIST, r); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/chat.c --- a/libpurple/protocols/silc/chat.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/chat.c Fri Nov 16 23:03:22 2007 +0000 @@ -301,10 +301,10 @@ f = purple_request_fields_get_field(fields, "list"); if (!purple_request_field_list_get_selected(f)) { /* Add new public key */ - purple_request_file_with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE, + purple_request_file)with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE, G_CALLBACK(silcpurple_chat_chpk_add), G_CALLBACK(silcpurple_chat_chpk_cancel), - purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, sgc); + purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); return; } @@ -445,7 +445,7 @@ _("Channel Authentication"), t, fields, _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), - purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, sgc); + purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); if (channel_pubkeys) silc_dlist_uninit(channel_pubkeys); return; @@ -480,7 +480,7 @@ _("Channel Authentication"), t, fields, _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), - purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, sgc); + purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); } static void @@ -614,7 +614,7 @@ purple_request_fields_with_hint(gc, _("Add Channel Private Group"), NULL, tmp, fields, _("Add"), G_CALLBACK(silcpurple_chat_prv_add), _("Cancel"), G_CALLBACK(silcpurple_chat_prv_cancel), - purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, p); + purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, p); } @@ -744,7 +744,7 @@ tmp, FALSE, FALSE, NULL, _("OK"), G_CALLBACK(silcpurple_chat_ulimit_cb), _("Cancel"), G_CALLBACK(silcpurple_chat_ulimit_cb), - purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, s); + purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, s); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/ops.c --- a/libpurple/protocols/silc/ops.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/ops.c Fri Nov 16 23:03:22 2007 +0000 @@ -1814,7 +1814,7 @@ _("Passphrase required"), NULL, FALSE, TRUE, NULL, _("OK"), G_CALLBACK(silc_ask_passphrase_cb), _("Cancel"), G_CALLBACK(silc_ask_passphrase_cb), - purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, internal); + purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_BLIST, internal); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/pk.c --- a/libpurple/protocols/silc/pk.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/pk.c Fri Nov 16 23:03:22 2007 +0000 @@ -109,7 +109,7 @@ purple_request_action_with_hint(gc, _("Verify Public Key"), tmp, tmp2, PURPLE_DEFAULT_ACTION_NONE, - purple_connection_get_account(gc), entity, NULL, PURPLE_REQUEST_UI_HINT_BLIST, verify, 3, + purple_connection_get_account(gc), entity, NULL, PURPLE_REQUEST_HINT_BLIST, verify, 3, _("Yes"), G_CALLBACK(silcpurple_verify_cb), _("No"), G_CALLBACK(silcpurple_verify_cb), _("_View..."), G_CALLBACK(silcpurple_verify_details)); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/silc.c --- a/libpurple/protocols/silc/silc.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/silc.c Fri Nov 16 23:03:22 2007 +0000 @@ -821,7 +821,7 @@ fields, _("OK"), G_CALLBACK(silcpurple_attrs_cb), _("Cancel"), G_CALLBACK(silcpurple_attrs_cancel), - gc->account, NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, gc); + gc->account, NULL, NULL, PURPLE_REQUEST_HINT_BLIST, gc); } static void @@ -1029,7 +1029,7 @@ _("Create New SILC Key Pair"), NULL, fields, _("Generate Key Pair"), G_CALLBACK(silcpurple_create_keypair_cb), _("Cancel"), G_CALLBACK(silcpurple_create_keypair_cancel), - gc->account, NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, gc); + gc->account, NULL, NULL, PURPLE_REQUEST_HINT_BLIST, gc); g_strfreev(u); silc_free(hostname); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/util.c --- a/libpurple/protocols/silc/util.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/util.c Fri Nov 16 23:03:22 2007 +0000 @@ -379,7 +379,7 @@ purple_request_action_with_hint(sg->gc, _("Public Key Information"), _("Public Key Information"), buf, 0, purple_connection_get_account(sg->gc), - NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, context, 1, _("Close"), callback); + NULL, NULL, PURPLE_REQUEST_HINT_BLIST, context, 1, _("Close"), callback); g_free(buf); silc_free(fingerprint); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc/wb.c --- a/libpurple/protocols/silc/wb.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc/wb.c Fri Nov 16 23:03:22 2007 +0000 @@ -300,7 +300,7 @@ req->sg = sg; purple_request_action_with_hint(gc, _("Whiteboard"), tmp, NULL, 1, - sg->account, sender->nickname, NULL, PURPLE_REQUEST_UI_HINT_BLIST, req, 2, + sg->account, sender->nickname, NULL, PURPLE_REQUEST_HINT_BLIST, req, 2, _("Yes"), G_CALLBACK(silcpurple_wb_request_cb), _("No"), G_CALLBACK(silcpurple_wb_request_cb)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/buddy.c --- a/libpurple/protocols/silc10/buddy.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/buddy.c Fri Nov 16 23:03:22 2007 +0000 @@ -311,7 +311,7 @@ purple_request_action_with_hint(client->application, _("Key Agreement Request"), tmp, hostname ? tmp2 : NULL, 1, gc->account, client_entry->nickname, - NULL, a, PURPLE_REQUEST_UI_HINT_BLIST, 2, _("Yes"), G_CALLBACK(silcpurple_buddy_keyagr_request_cb), + NULL, a, PURPLE_REQUEST_HINT_BLIST, 2, _("Yes"), G_CALLBACK(silcpurple_buddy_keyagr_request_cb), _("No"), G_CALLBACK(silcpurple_buddy_keyagr_request_cb)); } @@ -466,7 +466,7 @@ _("Set IM Password"), NULL, FALSE, TRUE, NULL, _("OK"), G_CALLBACK(silcpurple_buddy_privkey_cb), _("Cancel"), G_CALLBACK(silcpurple_buddy_privkey_cb), - gc->account, NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, p); + gc->account, NULL, NULL, PURPLE_REQUEST_HINT_BLIST, p); silc_free(clients); silc_free(nickname); @@ -1067,7 +1067,7 @@ purple_request_file_with_hint(r->client->application, _("Open..."), NULL, FALSE, G_CALLBACK(silcpurple_add_buddy_ask_import), G_CALLBACK(silcpurple_add_buddy_ask_pk_cancel), - purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_UI_HINT_BLIST, r); + purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_HINT_BLIST, r); } @@ -1080,7 +1080,7 @@ purple_request_action_with_hint(r->client->application, _("Add Buddy"), tmp, _("To add the buddy you must import his/her public key. " "Press Import to import a public key."), 0, - purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_UI_HINT_BLIST, r, 2, + purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_HINT_BLIST, r, 2, _("Cancel"), G_CALLBACK(silcpurple_add_buddy_ask_pk_cb), _("_Import..."), G_CALLBACK(silcpurple_add_buddy_ask_pk_cb)); } @@ -1187,7 +1187,7 @@ fields, _("OK"), G_CALLBACK(silcpurple_add_buddy_select_cb), _("Cancel"), G_CALLBACK(silcpurple_add_buddy_select_cancel), - purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_UI_HINT_BLIST, r); + purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), NULL, PURPLE_REQUEST_HINT_BLIST, r); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/chat.c --- a/libpurple/protocols/silc10/chat.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/chat.c Fri Nov 16 23:03:22 2007 +0000 @@ -291,7 +291,7 @@ purple_request_file_with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE, G_CALLBACK(silcpurple_chat_chpk_add), G_CALLBACK(silcpurple_chat_chpk_cancel), - purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, sgc); + purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); return; } @@ -423,7 +423,7 @@ _("Channel Authentication"), t, fields, _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), - purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, sgc); + purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); return; } sgc->pubkeys = silc_buffer_copy(channel_pubkeys); @@ -462,7 +462,7 @@ _("Channel Authentication"), t, fields, _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), - purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, sgc); + purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); silc_argument_payload_free(chpks); } @@ -598,7 +598,7 @@ purple_request_fields_with_hint(gc, _("Add Channel Private Group"), NULL, tmp, fields, _("Add"), G_CALLBACK(silcpurple_chat_prv_add), _("Cancel"), G_CALLBACK(silcpurple_chat_prv_cancel), - purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, p); + purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, p); } @@ -728,7 +728,7 @@ tmp, FALSE, FALSE, NULL, _("OK"), G_CALLBACK(silcpurple_chat_ulimit_cb), _("Cancel"), G_CALLBACK(silcpurple_chat_ulimit_cb), - purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_CONV, s); + purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, s); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/ops.c --- a/libpurple/protocols/silc10/ops.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/ops.c Fri Nov 16 23:03:22 2007 +0000 @@ -1293,7 +1293,7 @@ if (client_entry->attrs) purple_request_action_with_hint(gc, _("User Information"), _("User Information"), - buf, 1, PURPLE_REQUEST_UI_HINT_BLIST, client_entry, 2, + buf, 1, PURPLE_REQUEST_HINT_BLIST, client_entry, 2, _("OK"), G_CALLBACK(silcpurple_whois_more), _("_More..."), G_CALLBACK(silcpurple_whois_more), gc->account, NULL, NULL); else @@ -1902,7 +1902,7 @@ _("Passphrase required"), NULL, FALSE, TRUE, NULL, _("OK"), G_CALLBACK(silc_ask_passphrase_cb), _("Cancel"), G_CALLBACK(silc_ask_passphrase_cb), - purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, internal); + purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_BLIST, internal); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/pk.c --- a/libpurple/protocols/silc10/pk.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/pk.c Fri Nov 16 23:03:22 2007 +0000 @@ -115,7 +115,7 @@ purple_request_action_with_hint(gc, _("Verify Public Key"), tmp, tmp2, PURPLE_DEFAULT_ACTION_NONE, - purple_connection_get_account(gc), entity, NULL, verify, PURPLE_REQUEST_UI_HINT_BLIST, 3, + purple_connection_get_account(gc), entity, NULL, verify, PURPLE_REQUEST_HINT_BLIST, 3, _("Yes"), G_CALLBACK(silcpurple_verify_cb), _("No"), G_CALLBACK(silcpurple_verify_cb), _("_View..."), G_CALLBACK(silcpurple_verify_details)); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/silc.c --- a/libpurple/protocols/silc10/silc.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/silc.c Fri Nov 16 23:03:22 2007 +0000 @@ -734,7 +734,7 @@ fields, _("OK"), G_CALLBACK(silcpurple_attrs_cb), _("Cancel"), G_CALLBACK(silcpurple_attrs_cancel), - gc->account, NULL, NULL, PURPLE_REQUEST_UI_HINT_BLIST, gc); + gc->account, NULL, NULL, PURPLE_REQUEST_HINT_BLIST, gc); } static void diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/util.c --- a/libpurple/protocols/silc10/util.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/util.c Fri Nov 16 23:03:22 2007 +0000 @@ -374,7 +374,7 @@ purple_request_action_with_hint(sg->gc, _("Public Key Information"), _("Public Key Information"), buf, 0, purple_connection_get_account(sg->gc), - NULL, NULL, context, PURPLE_REQUEST_UI_HINT_BLIST, 1, _("Close"), callback); + NULL, NULL, context, PURPLE_REQUEST_HINT_BLIST, 1, _("Close"), callback); g_free(buf); silc_free(fingerprint); diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/silc10/wb.c --- a/libpurple/protocols/silc10/wb.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/silc10/wb.c Fri Nov 16 23:03:22 2007 +0000 @@ -300,7 +300,7 @@ req->sg = sg; purple_request_action_with_hint(gc, _("Whiteboard"), tmp, NULL, 1, - sg->account, sender->nickname, NULL, PURPLE_REQUEST_UI_HINT_CONV, req, 2, + sg->account, sender->nickname, NULL, PURPLE_REQUEST_HINT_CONV, req, 2, _("Yes"), G_CALLBACK(silcpurple_wb_request_cb), _("No"), G_CALLBACK(silcpurple_wb_request_cb)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/toc/toc.c --- a/libpurple/protocols/toc/toc.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/toc/toc.c Fri Nov 16 23:03:22 2007 +0000 @@ -2217,7 +2217,7 @@ } purple_request_accept_cancel_with_hint(ft->gc, NULL, buf, NULL, - PURPLE_DEFAULT_ACTION_NONE, PURPLE_REQUEST_UI_HINT_XFER, ft, + PURPLE_DEFAULT_ACTION_NONE, PURPLE_REQUEST_HINT_XFER, ft, G_CALLBACK(toc_accept_ft), G_CALLBACK(toc_reject_ft)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Fri Nov 16 23:03:22 2007 +0000 @@ -1033,7 +1033,7 @@ _("OK"), G_CALLBACK(yahoo_buddy_add_deny_cb), _("Cancel"), G_CALLBACK(yahoo_buddy_add_deny_noreason_cb), purple_connection_get_account(add_req->gc), add_req->who, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, add_req); + PURPLE_REQUEST_HINT_BLIST, add_req); } static void yahoo_buddy_denied_our_add(PurpleConnection *gc, const char *who, const char *reason) @@ -2067,7 +2067,7 @@ "will remove and ignore the buddy."), who); purple_request_yes_no_with_hint(gc, NULL, _("Ignore buddy?"), buf, 0, gc->account, who, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, b, + PURPLE_REQUEST_HINT_BLIST, b, G_CALLBACK(ignore_buddy), G_CALLBACK(keep_buddy)); break; @@ -3499,7 +3499,7 @@ _("OK"), G_CALLBACK(yahoo_act_id), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); + PURPLE_REQUEST_HINT_ACCOUNT, gc); } static void yahoo_show_chat_goto(PurplePluginAction *action) @@ -3510,7 +3510,7 @@ _("OK"), G_CALLBACK(yahoo_chat_goto), _("Cancel"), NULL, purple_connection_get_account(gc), NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, gc); + PURPLE_REQUEST_HINT_CONV, gc); } static GList *yahoo_actions(PurplePlugin *plugin, gpointer context) { diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/request.c --- a/libpurple/request.c Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/request.c Fri Nov 16 23:03:22 2007 +0000 @@ -1230,7 +1230,7 @@ { return purple_request_input_with_hint( handle, title, primary, secondary, default_value, multiline, masked, hint, ok_text, ok_cb, - cancel_text, cancel_cb, account, who, conv, PURPLE_REQUEST_UI_HINT_BLIST, user_data); + cancel_text, cancel_cb, account, who, conv, PURPLE_REQUEST_HINT_BLIST, user_data); } void * @@ -1289,7 +1289,7 @@ ui_handle = purple_request_choice_varg_with_hint(handle, title, primary, secondary, default_value, ok_text, ok_cb, cancel_text, cancel_cb, - account, who, conv, PURPLE_REQUEST_UI_HINT_BLIST, user_data, args); + account, who, conv, PURPLE_REQUEST_HINT_BLIST, user_data, args); va_end(args); return ui_handle; @@ -1330,7 +1330,7 @@ { return purple_request_choice_varg_with_hint( handle, title, primary, secondary, default_value, ok_text, ok_cb, - cancel_text, cancel_cb, account, who, conv, PURPLE_REQUEST_UI_HINT_BLIST, user_data, choices); + cancel_text, cancel_cb, account, who, conv, PURPLE_REQUEST_HINT_BLIST, user_data, choices); } void * @@ -1384,7 +1384,7 @@ va_start(args, action_count); ui_handle = purple_request_action_varg_with_hint(handle, title, primary, secondary, default_action, account, who, conv, - PURPLE_REQUEST_UI_HINT_BLIST, user_data, action_count, args); + PURPLE_REQUEST_HINT_BLIST, user_data, action_count, args); va_end(args); return ui_handle; @@ -1419,7 +1419,7 @@ { return purple_request_action_varg_with_hint( handle, title, primary, secondary, default_action, account, who, conv, - PURPLE_REQUEST_UI_HINT_BLIST, user_data, action_count, actions); + PURPLE_REQUEST_HINT_BLIST, user_data, action_count, actions); } void * @@ -1463,7 +1463,7 @@ { return purple_request_fields_with_hint( handle, title, primary, secondary, fields, ok_text, ok_cb, - cancel_text, cancel_cb, account, who, conv, PURPLE_REQUEST_UI_HINT_BLIST, user_data); + cancel_text, cancel_cb, account, who, conv, PURPLE_REQUEST_HINT_BLIST, user_data); } void * @@ -1510,7 +1510,7 @@ void *user_data) { return purple_request_file_with_hint( - handle, title, filename, savedialog, ok_cb, cancel_cb, account, who, conv, PURPLE_REQUEST_UI_HINT_BLIST, user_data); + handle, title, filename, savedialog, ok_cb, cancel_cb, account, who, conv, PURPLE_REQUEST_HINT_BLIST, user_data); } void * @@ -1547,7 +1547,7 @@ void *user_data) { return purple_request_folder_with_hint( - handle, title, dirname, ok_cb, cancel_cb, account, who, conv, PURPLE_REQUEST_UI_HINT_BLIST, user_data); + handle, title, dirname, ok_cb, cancel_cb, account, who, conv, PURPLE_REQUEST_HINT_BLIST, user_data); } void * diff -r 9c3ddecda3ce -r ca17c133d6c3 libpurple/request.h --- a/libpurple/request.h Fri Nov 16 23:01:37 2007 +0000 +++ b/libpurple/request.h Fri Nov 16 23:03:22 2007 +0000 @@ -198,76 +198,27 @@ } PurpleRequestField; -/* - * UI hints for the request functions. These are used by libpurple. - */ - /** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_ACCOUNT "account" - -/** - * @since 2.3.0 + * List of UI hints used by purple */ -#define PURPLE_REQUEST_UI_HINT_BLIST "blist" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_BUDDY "buddy" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_CONV "conversation" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_REGISTER "register-account" +#define PURPLE_REQUEST_HINT_ACCOUNT "account" +#define PURPLE_REQUEST_HINT_BLIST "blist" +#define PURPLE_REQUEST_HINT_BUDDY "buddy" +#define PURPLE_REQUEST_HINT_CONV "conversation" +#define PURPLE_REQUEST_HINT_REGISTER "register-account" +#define PURPLE_REQUEST_HINT_XFER "xfer" /** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_XFER "xfer" - - -/* - * UI hints for the request functions. These are common hints used by UIs. - * UIs can still define any hints they like, but standardization is good. - */ - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_ACCOUNTMGR "accountmgr" - -/** - * @since 2.3.0 + * List of UI hints used by purple UIs + * We need a header file included by both pidgin and finch, but not part of + * libpurple for these */ -#define PURPLE_REQUEST_UI_HINT_CERTMGR "certmgr" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_PLUGINMGR "pluginmgr" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_POUNCEMGR "pouncemgr" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_PREFSMGR "preferences" - -/** - * @since 2.3.0 - */ -#define PURPLE_REQUEST_UI_HINT_STATUSMGR "statusmgr" - +#define PURPLE_UI_REQUEST_HINT_ACCOUNTMGR "accountmgr" +#define PURPLE_UI_REQUEST_HINT_CERTMGR "certmgr" +#define PURPLE_UI_REQUEST_HINT_PLUGINMGR "pluginmgr" +#define PURPLE_UI_REQUEST_HINT_POUNCEMGR "pouncemgr" +#define PURPLE_UI_REQUEST_HINT_PREFSMGR "preferences" +#define PURPLE_UI_REQUEST_HINT_STATUSMGR "statusmgr" /** * Request UI operations. @@ -1374,8 +1325,6 @@ * @param user_data The data to pass to the callback. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_input_with_hint(void *handle, const char *title, const char *primary, const char *secondary, @@ -1386,43 +1335,7 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Prompts the user for text input. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. The - * handle is used to programmatically close - * the request dialog when it is no longer - * needed. For PRPLs this is often a pointer - * to the PurpleConnection instance. For plugins - * this should be a similar, unique memory - * location. This value is important because - * it allows a request to be closed, say, when - * you sign offline. If the request is NOT - * closed it is VERY likely to cause a crash - * whenever the callback handler functions are - * triggered. - * @param title The title of the message. - * @param primary The main point of the message. - * @param secondary The secondary information. - * @param default_value The default value. - * @param multiline TRUE if the inputted text can span multiple lines. - * @param masked TRUE if the inputted text should be masked in some way. - * @param hint Optionally suggest how the input box should appear. - * Use "html," for example, to allow the user to enter - * HTML. - * @param ok_text The text for the @c OK button. - * @param ok_cb The callback for the @c OK button. - * @param cancel_text The text for the @c Cancel button. - * @param cancel_cb The callback for the @c Cancel button. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_input_with_hint() instead. */ void *purple_request_input(void *handle, const char *title, @@ -1433,7 +1346,6 @@ const char *cancel_text, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data); -#endif /** * Prompts the user for multiple-choice input. @@ -1458,8 +1370,6 @@ * terminated with a NULL parameter. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_choice_with_hint(void *handle, const char *title, const char *primary, const char *secondary, @@ -1469,30 +1379,7 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data, ...) G_GNUC_NULL_TERMINATED; -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Prompts the user for multiple-choice input. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title of the message. - * @param primary The main point of the message. - * @param secondary The secondary information. - * @param default_value The default value. - * @param ok_text The text for the @c OK button. - * @param ok_cb The callback for the @c OK button. - * @param cancel_text The text for the @c Cancel button. - * @param cancel_cb The callback for the @c Cancel button. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * @param ... The choices. This argument list should be - * terminated with a NULL parameter. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_choice_with_hint() instead. */ void *purple_request_choice(void *handle, const char *title, @@ -1502,7 +1389,6 @@ const char *cancel_text, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data, ...) G_GNUC_NULL_TERMINATED; -#endif /** * Prompts the user for multiple-choice input. @@ -1527,8 +1413,6 @@ * terminated with a @c NULL parameter. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_choice_varg_with_hint(void *handle, const char *title, const char *primary, const char *secondary, @@ -1538,30 +1422,7 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data, va_list choices); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Prompts the user for multiple-choice input. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title of the message. - * @param primary The main point of the message. - * @param secondary The secondary information. - * @param default_value The default value. - * @param ok_text The text for the @c OK button. - * @param ok_cb The callback for the @c OK button. - * @param cancel_text The text for the @c Cancel button. - * @param cancel_cb The callback for the @c Cancel button. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * @param choices The choices. This argument list should be - * terminated with a @c NULL parameter. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_choice_varg_with_hint() instead. */ void *purple_request_choice_varg(void *handle, const char *title, @@ -1571,7 +1432,6 @@ const char *cancel_text, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data, va_list choices); -#endif /** * Prompts the user for an action. @@ -1600,8 +1460,6 @@ * function to use when the button is clicked. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_action_with_hint(void *handle, const char *title, const char *primary, const char *secondary, @@ -1609,34 +1467,7 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data, size_t action_count, ...); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Prompts the user for an action. - * - * This is often represented as a dialog with a button for each action. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title of the message. - * @param primary The main point of the message. - * @param secondary The secondary information. - * @param default_action The default value. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * @param action_count The number of actions. - * @param ... A list of actions. These are pairs of - * arguments. The first of each pair is the - * string that appears on the button. It should - * have an underscore before the letter you want - * to use as the accelerator key for the button. - * The second of each pair is the callback - * function to use when the button is clicked. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_action_with_hint() instead. */ void *purple_request_action(void *handle, const char *title, @@ -1644,7 +1475,6 @@ int default_action, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data, size_t action_count, ...); -#endif /** * Prompts the user for an action. @@ -1667,8 +1497,6 @@ * @param actions A list of actions and callbacks. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_action_varg_with_hint(void *handle, const char *title, const char *primary, const char *secondary, @@ -1677,28 +1505,7 @@ const char *ui_hint, void *user_data, size_t action_count, va_list actions); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Prompts the user for an action. - * - * This is often represented as a dialog with a button for each action. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title of the message. - * @param primary The main point of the message. - * @param secondary The secondary information. - * @param default_action The default value. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * @param action_count The number of actions. - * @param actions A list of actions and callbacks. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_action_varg_with_hint() instead. */ void *purple_request_action_varg(void *handle, const char *title, @@ -1707,7 +1514,6 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data, size_t action_count, va_list actions); -#endif /** * Displays groups of fields for the user to fill in. @@ -1730,8 +1536,6 @@ * @param user_data The data to pass to the callback. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_fields_with_hint(void *handle, const char *title, const char *primary, const char *secondary, @@ -1741,28 +1545,7 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Displays groups of fields for the user to fill in. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title of the message. - * @param primary The main point of the message. - * @param secondary The secondary information. - * @param fields The list of fields. - * @param ok_text The text for the @c OK button. - * @param ok_cb The callback for the @c OK button. - * @param cancel_text The text for the @c Cancel button. - * @param cancel_cb The callback for the @c Cancel button. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy associated with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_fields_with_hint() instead. */ void *purple_request_fields(void *handle, const char *title, @@ -1772,7 +1555,6 @@ const char *cancel_text, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data); -#endif /** * Closes a request. @@ -1791,8 +1573,6 @@ /** * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. - * - * @since 2.3.0 */ #define purple_request_yes_no_with_hint(handle, title, primary, secondary, \ default_action, account, who, conv, \ @@ -1801,10 +1581,7 @@ (default_action), account, who, conv, (ui_hint), (user_data), 2, \ _("_Yes"), (yes_cb), _("_No"), (no_cb)) -#ifndef PURPLE_DISABLE_DEPRECATED /** - * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. - * * @deprecated Please use purple_request_yes_no_with_hint instead. */ #define purple_request_yes_no(handle, title, primary, secondary, \ @@ -1813,12 +1590,9 @@ purple_request_action((handle), (title), (primary), (secondary), \ (default_action), account, who, conv, (user_data), 2, \ _("_Yes"), (yes_cb), _("_No"), (no_cb)) -#endif /** * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. - * - * @since 2.3.0 */ #define purple_request_ok_cancel_with_hint(handle, title, primary, secondary, \ default_action, account, who, conv, \ @@ -1827,10 +1601,7 @@ (default_action), account, who, conv, (ui_hint), (user_data), 2, \ _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) -#ifndef PURPLE_DISABLE_DEPRECATED /** - * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. - * * @deprecated Please use purple_request_ok_cancel_with_hint instead. */ #define purple_request_ok_cancel(handle, title, primary, secondary, \ @@ -1839,12 +1610,9 @@ purple_request_action((handle), (title), (primary), (secondary), \ (default_action), account, who, conv, (user_data), 2, \ _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) -#endif /** * A wrapper for purple_request_action() that uses Accept and Cancel buttons. - * - * @since 2.3.0 */ #define purple_request_accept_cancel_with_hint(handle, title, primary, secondary, \ default_action, account, who, conv, \ @@ -1853,10 +1621,7 @@ (default_action), account, who, conv, (ui_hint), (user_data), 2, \ _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) -#ifndef PURPLE_DISABLE_DEPRECATED /** - * A wrapper for purple_request_action() that uses Accept and Cancel buttons. - * * @deprecated Please use purple_request_accept_cancel_with_hint instead. */ #define purple_request_accept_cancel(handle, title, primary, secondary, \ @@ -1865,7 +1630,6 @@ purple_request_action((handle), (title), (primary), (secondary), \ (default_action), account, who, conv, (user_data), 2, \ _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) -#endif /** * Displays a file selector request dialog. Returns the selected filename to @@ -1887,8 +1651,6 @@ * @param user_data The data to pass to the callback. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_file_with_hint(void *handle, const char *title, const char *filename, gboolean savedialog, @@ -1896,27 +1658,7 @@ PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Displays a file selector request dialog. Returns the selected filename to - * the callback. Can be used for either opening a file or saving a file. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title for the dialog (may be @c NULL) - * @param filename The default filename (may be @c NULL) - * @param savedialog True if this dialog is being used to save a file. - * False if it is being used to open a file. - * @param ok_cb The callback for the @c OK button. - * @param cancel_cb The callback for the @c Cancel button. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_file_with_hint() instead. */ void *purple_request_file(void *handle, const char *title, const char *filename, @@ -1924,7 +1666,6 @@ GCallback ok_cb, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data); -#endif /** * Displays a folder select dialog. Returns the selected filename to @@ -1944,40 +1685,19 @@ * @param user_data The data to pass to the callback. * * @return A UI-specific handle. - * - * @since 2.3.0 */ void *purple_request_folder_with_hint(void *handle, const char *title, const char *dirname, GCallback ok_cb, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, const char *ui_hint, void *user_data); -#ifndef PURPLE_DISABLE_DEPRECATED /** - * Displays a folder select dialog. Returns the selected filename to - * the callback. - * - * @param handle The plugin or connection handle. For some - * things this is EXTREMELY important. See - * the comments on purple_request_input. - * @param title The title for the dialog (may be @c NULL) - * @param dirname The default directory name (may be @c NULL) - * @param ok_cb The callback for the @c OK button. - * @param cancel_cb The callback for the @c Cancel button. - * @param account The PurpleAccount associated with this request, or NULL if none is - * @param who The username of the buddy assocaited with this request, or NULL if none is - * @param conv The PurpleConversation associated with this request, or NULL if none is - * @param user_data The data to pass to the callback. - * - * @return A UI-specific handle. - * * @deprecated Please use purple_request_folder_with_hint() instead. */ void *purple_request_folder(void *handle, const char *title, const char *dirname, GCallback ok_cb, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, void *user_data); -#endif /*@}*/ diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkaccount.c --- a/pidgin/gtkaccount.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkaccount.c Fri Nov 16 23:03:22 2007 +0000 @@ -1904,7 +1904,7 @@ purple_request_close_with_handle(account); purple_request_action_with_hint(account, NULL, buf, NULL, 0, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNTMGR, account, 2, + PURPLE_UI_REQUEST_HINT_ACCOUNTMGR, account, 2, _("Delete"), delete_account_cb, _("Cancel"), NULL); g_free(buf); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkblist.c Fri Nov 16 23:03:22 2007 +0000 @@ -524,7 +524,7 @@ char *msg = g_strdup_printf(ngettext("You have %d contact named %s. Would you like to merge them?", "You currently have %d contacts named %s. Would you like to merge them?", i), i, alias); purple_request_action_with_hint(NULL, NULL, msg, _("Merging these contacts will cause them to share a single entry on the buddy list and use a single conversation window. " "You can separate them again by choosing 'Expand' from the contact's context menu"), 0, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, merges, 2, _("_Merge"), PURPLE_CALLBACK(gtk_blist_do_personize), _("_Cancel"), PURPLE_CALLBACK(g_list_free)); + PURPLE_REQUEST_HINT_BLIST, merges, 2, _("_Merge"), PURPLE_CALLBACK(gtk_blist_do_personize), _("_Cancel"), PURPLE_CALLBACK(g_list_free)); g_free(msg); } else g_list_free(merges); @@ -617,7 +617,7 @@ static void gtk_blist_menu_bp_cb(GtkWidget *w, PurpleBuddy *b) { - pidgin_pounce_editor_show_with_parent(GTK_WINDOW(gtkblist->window), b->account, b->name, NULL); + pidgin_pounce_editor_show(b->account, b->name, NULL); } static void gtk_blist_menu_showlog_cb(GtkWidget *w, PurpleBlistNode *node) @@ -643,7 +643,7 @@ name = prpl_info->get_chat_name(c->components); } } else if (PURPLE_BLIST_NODE_IS_CONTACT(node)) { - pidgin_log_show_contact_with_parent(GTK_WINDOW(gtkblist->window), (PurpleContact *)node); + pidgin_log_show_contact((PurpleContact *)node); pidgin_clear_cursor(gtkblist->window); return; } else { @@ -655,7 +655,7 @@ } if (name && account) { - pidgin_log_show_with_parent(GTK_WINDOW(gtkblist->window), type, name, account); + pidgin_log_show(type, name, account); g_free(name); pidgin_clear_cursor(gtkblist->window); @@ -682,6 +682,11 @@ pidgin_blist_update(purple_get_blist(), node); } +static void gtk_blist_show_systemlog_cb() +{ + pidgin_syslog_show(); +} + static void gtk_blist_show_onlinehelp_cb() { purple_notify_uri(NULL, PURPLE_WEBSITE "documentation"); @@ -3052,11 +3057,6 @@ !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled")); } -static void -pidgin_blist_show_with_parent(gpointer data1, void (*callback)(GtkWindow *parent), gpointer data3) -{ - callback(GTK_WINDOW(gtkblist->window)); -} /*************************************************** * Crap * @@ -3090,15 +3090,15 @@ /* Tools */ { N_("/_Tools"), NULL, NULL, 0, "", NULL }, - { N_("/Tools/Buddy _Pounces"), NULL, pidgin_blist_show_with_parent, (int)pidgin_pounces_manager_show_with_parent, "", NULL }, + { N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "", NULL }, { N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "", NULL }, - { N_("/Tools/Plu_gins"), "U", pidgin_blist_show_with_parent, (int)pidgin_plugin_dialog_show_with_parent, "", PIDGIN_STOCK_TOOLBAR_PLUGINS }, + { N_("/Tools/Plu_gins"), "U", pidgin_plugin_dialog_show, 0, "", PIDGIN_STOCK_TOOLBAR_PLUGINS }, { N_("/Tools/Pr_eferences"), "P", pidgin_prefs_show, 0, "", GTK_STOCK_PREFERENCES }, { N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "", NULL }, { "/Tools/sep2", NULL, NULL, 0, "", NULL }, { N_("/Tools/_File Transfers"), "T", pidgin_xfer_dialog_show, 0, "", NULL }, { N_("/Tools/R_oom List"), NULL, pidgin_roomlist_dialog_show, 0, "", NULL }, - { N_("/Tools/System _Log"), NULL, pidgin_blist_show_with_parent, (int)pidgin_syslog_show_with_parent, "", NULL }, + { N_("/Tools/System _Log"), NULL, gtk_blist_show_systemlog_cb, 0, "", NULL }, { "/Tools/sep3", NULL, NULL, 0, "", NULL }, { N_("/Tools/Mute _Sounds"), "S", pidgin_blist_mute_sounds_cb, 0, "", NULL }, /* Help */ @@ -3106,9 +3106,9 @@ { N_("/Help/Online _Help"), "F1", gtk_blist_show_onlinehelp_cb, 0, "", GTK_STOCK_HELP }, { N_("/Help/_Debug Window"), NULL, toggle_debug, 0, "", NULL }, #if GTK_CHECK_VERSION(2,6,0) - { N_("/Help/_About"), NULL, pidgin_blist_show_with_parent, (int)pidgin_dialogs_about_with_parent, "", GTK_STOCK_ABOUT }, + { N_("/Help/_About"), NULL, pidgin_dialogs_about, 0, "", GTK_STOCK_ABOUT }, #else - { N_("/Help/_About"), NULL, pidgin_blist_show_with_parent, (int)pidgin_dialogs_about_with_parent, "", NULL }, + { N_("/Help/_About"), NULL, pidgin_dialogs_about, 0, "", NULL }, #endif }; @@ -4325,7 +4325,7 @@ enabled = purple_account_get_enabled(account, purple_core_get_ui()); purple_request_action_with_hint(account, _("Connection Error"), primary, text, 2, account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_ACCOUNT, account, 3, + PURPLE_REQUEST_HINT_ACCOUNT, account, 3, _("OK"), NULL, _("Modify Account"), PURPLE_CALLBACK(ce_modify_account_cb), enabled ? _("Connect") : _("Re-enable Account"), @@ -6287,7 +6287,7 @@ _("Add"), G_CALLBACK(add_group_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } void diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkcertmgr.c --- a/pidgin/gtkcertmgr.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkcertmgr.c Fri Nov 16 23:03:22 2007 +0000 @@ -197,7 +197,7 @@ _("Cancel"), G_CALLBACK(tls_peers_mgmt_import_cancel2_cb), NULL, NULL, NULL, /* No account/who/conv*/ - PURPLE_REQUEST_UI_HINT_CERTMGR, crt /* Pass cert instance to callback*/ + PURPLE_UI_REQUEST_HINT_CERTMGR, crt /* Pass cert instance to callback*/ ); g_free(default_hostname); @@ -226,7 +226,7 @@ FALSE, /* Not a save dialog */ G_CALLBACK(tls_peers_mgmt_import_ok_cb), NULL, /* Do nothing if cancelled */ - NULL, NULL, NULL, PURPLE_REQUEST_UI_HINT_CERTMGR, NULL );/* No account,conv,etc. */ + NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_CERTMGR, NULL );/* No account,conv,etc. */ } static void @@ -302,7 +302,7 @@ G_CALLBACK(tls_peers_mgmt_export_ok_cb), G_CALLBACK(tls_peers_mgmt_export_cancel_cb), NULL, NULL, NULL, /* No account,conv,etc. */ - PURPLE_REQUEST_UI_HINT_CERTMGR, crt); /* Pass the certificate on to the callback */ + PURPLE_UI_REQUEST_HINT_CERTMGR, crt); /* Pass the certificate on to the callback */ } static void @@ -375,7 +375,7 @@ primary, NULL, /* Can this be NULL? */ 2, /* NO is default action */ NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CERTMGR, + PURPLE_UI_REQUEST_HINT_CERTMGR, id, /* id ownership passed to callback */ tls_peers_mgmt_delete_confirm_cb, tls_peers_mgmt_delete_confirm_cb ); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkconv.c Fri Nov 16 23:03:22 2007 +0000 @@ -1033,7 +1033,7 @@ buf, TRUE, G_CALLBACK(savelog_writefile_cb), NULL, NULL, NULL, conv, - PURPLE_REQUEST_UI_HINT_BLIST, conv); + PURPLE_REQUEST_HINT_BLIST, conv); g_free(buf); } @@ -2721,7 +2721,7 @@ purple_request_file_with_hint(gtkconv, _("Save Icon"), buf, TRUE, G_CALLBACK(saveicon_writefile_cb), NULL, conv->account, NULL, conv, - PURPLE_REQUEST_UI_HINT_BLIST, gtkconv); + PURPLE_REQUEST_HINT_BLIST, gtkconv); g_free(buf); } diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkdebug.c --- a/pidgin/gtkdebug.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkdebug.c Fri Nov 16 23:03:22 2007 +0000 @@ -36,7 +36,6 @@ #include "gtkimhtml.h" #include "gtkutils.h" #include "pidginstock.h" -#include "gtkblist.h" #ifdef HAVE_REGEX_H # include @@ -235,7 +234,7 @@ purple_request_file_with_hint(win, _("Save Debug Log"), "purple-debug.log", TRUE, G_CALLBACK(save_writefile_cb), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, win); + PURPLE_REQUEST_HINT_BLIST, win); } static void @@ -674,7 +673,6 @@ static DebugWindow * debug_window_new(void) { - PidginBuddyList *blist; DebugWindow *win; GtkWidget *vbox; GtkWidget *toolbar; @@ -689,9 +687,6 @@ height = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/debug/height"); PIDGIN_DIALOG(win->window); - if ((blist = pidgin_blist_get_default_gtk_blist()) != NULL) - if (blist->window) - gtk_window_set_transient_for(GTK_WINDOW(win->window), GTK_WINDOW(blist->window)); purple_debug_info("gtkdebug", "Setting dimensions to %d, %d\n", width, height); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkdialogs.c --- a/pidgin/gtkdialogs.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkdialogs.c Fri Nov 16 23:03:22 2007 +0000 @@ -334,13 +334,6 @@ void pidgin_dialogs_about() { - PidginBuddyList *blist = pidgin_blist_get_default_gtk_blist(); - - pidgin_dialogs_about_with_parent(blist ? GTK_WINDOW(blist->window) : NULL); -} - -void pidgin_dialogs_about_with_parent(GtkWindow *parent) -{ GtkWidget *hbox; GtkWidget *vbox; GtkWidget *logo; @@ -356,15 +349,11 @@ GdkPixbuf *pixbuf; if (about != NULL) { - if (parent) - gtk_window_set_transient_for(GTK_WINDOW(about), parent); gtk_window_present(GTK_WINDOW(about)); return; } PIDGIN_DIALOG(about); - if (parent) - gtk_window_set_transient_for(GTK_WINDOW(about), parent); tmp = g_strdup_printf(_("About %s"), PIDGIN_NAME); gtk_window_set_title(GTK_WINDOW(about), tmp); g_free(tmp); @@ -787,7 +776,7 @@ _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } void @@ -926,7 +915,7 @@ _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static void @@ -1018,7 +1007,7 @@ _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), _("Cancel"), NULL, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, NULL); + PURPLE_REQUEST_HINT_BLIST, NULL); } static void @@ -1038,7 +1027,7 @@ _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb), _("Cancel"), NULL, NULL, purple_contact_get_alias(contact), NULL, - PURPLE_REQUEST_UI_HINT_BLIST, contact); + PURPLE_REQUEST_HINT_BLIST, contact); } static void @@ -1062,7 +1051,7 @@ _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), _("Cancel"), NULL, purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, - PURPLE_REQUEST_UI_HINT_BLIST, buddy); + PURPLE_REQUEST_HINT_BLIST, buddy); g_free(secondary); } @@ -1084,7 +1073,7 @@ _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), _("Cancel"), NULL, chat->account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, chat); + PURPLE_REQUEST_HINT_BLIST, chat); } static void @@ -1128,7 +1117,7 @@ purple_request_action_with_hint(contact, NULL, _("Remove Contact"), text, 0, NULL, purple_contact_get_alias(contact), NULL, - PURPLE_REQUEST_UI_HINT_BLIST, contact, 2, + PURPLE_REQUEST_HINT_BLIST, contact, 2, _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), _("Cancel"), NULL); @@ -1169,7 +1158,7 @@ purple_request_action_with_hint(source, NULL, _("Merge Groups"), text, 0, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, ggp, 2, + PURPLE_REQUEST_HINT_BLIST, ggp, 2, _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), _("Cancel"), G_CALLBACK(free_ggmo)); @@ -1225,7 +1214,7 @@ purple_request_action_with_hint(group, NULL, _("Remove Group"), text, 0, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, group, 2, + PURPLE_REQUEST_HINT_BLIST, group, 2, _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), _("Cancel"), NULL); @@ -1264,7 +1253,7 @@ purple_request_action_with_hint(buddy, NULL, _("Remove Buddy"), text, 0, purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, - PURPLE_REQUEST_UI_HINT_BLIST, buddy, 2, + PURPLE_REQUEST_HINT_BLIST, buddy, 2, _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), _("Cancel"), NULL); @@ -1291,7 +1280,7 @@ purple_request_action_with_hint(chat, NULL, _("Remove Chat"), text, 0, chat->account, NULL, NULL, - PURPLE_REQUEST_UI_HINT_BLIST, chat, 2, + PURPLE_REQUEST_HINT_BLIST, chat, 2, _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), _("Cancel"), NULL); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkdialogs.h --- a/pidgin/gtkdialogs.h Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkdialogs.h Fri Nov 16 23:03:22 2007 +0000 @@ -31,33 +31,18 @@ #include "conversation.h" /* Functions in gtkdialogs.c (these should actually stay in this file) */ - void pidgin_dialogs_destroy_all(void); - -#ifndef PURPLE_DISABLE_DEPRECATED -/** - * @deprecated Use pidgin_dialogs_about_with_parent() instead. - */ void pidgin_dialogs_about(void); -#endif - -/** - * @since 2.3.0 - */ -void pidgin_dialogs_about_with_parent(GtkWindow *parent); - void pidgin_dialogs_im(void); void pidgin_dialogs_im_with_user(PurpleAccount *, const char *); void pidgin_dialogs_info(void); void pidgin_dialogs_log(void); -#ifndef PURPLE_DISABLE_DEPRECATED /** * @deprecated This function is no longer used and will be removed in * Pidgin 3.0.0 unless there is sufficient demand to keep it. */ void pidgin_dialogs_alias_contact(PurpleContact *); -#endif void pidgin_dialogs_alias_buddy(PurpleBuddy *); void pidgin_dialogs_alias_chat(PurpleChat *); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkimhtmltoolbar.c --- a/pidgin/gtkimhtmltoolbar.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Fri Nov 16 23:03:22 2007 +0000 @@ -184,8 +184,6 @@ g_signal_connect_after(G_OBJECT(toolbar->font_dialog), "realize", G_CALLBACK(realize_toolbar_font), toolbar); } - gtk_window_set_transient_for(GTK_WINDOW(toolbar->font_dialog), - GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(toolbar)))); gtk_window_present(GTK_WINDOW(toolbar->font_dialog)); } else { cancel_toolbar_font(font, toolbar); @@ -436,7 +434,7 @@ _("_Insert"), G_CALLBACK(do_insert_link_cb), _("Cancel"), G_CALLBACK(cancel_link_cb), NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_CONV, toolbar); + PURPLE_REQUEST_HINT_CONV, toolbar); g_free(msg); g_free(desc); } else { @@ -711,8 +709,6 @@ gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); gtk_window_set_role(GTK_WINDOW(dialog), "smiley_dialog"); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); - gtk_window_set_transient_for(GTK_WINDOW(dialog), - GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(toolbar)))); if (unique_smileys != NULL) { struct smiley_button_list *ls, *it, *it_tmp; diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtklog.c --- a/pidgin/gtklog.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtklog.c Fri Nov 16 23:03:22 2007 +0000 @@ -523,7 +523,7 @@ } } -static PidginLogViewer *display_log_viewer(GtkWindow *parent, struct log_viewer_hash_t *ht, GList *logs, +static PidginLogViewer *display_log_viewer(struct log_viewer_hash_t *ht, GList *logs, const char *title, GtkWidget *icon, int log_size) { PidginLogViewer *lv; @@ -569,7 +569,7 @@ g_hash_table_insert(log_viewers, ht, lv); /* Window ***********/ - lv->window = gtk_dialog_new_with_buttons(title, parent, 0, + lv->window = gtk_dialog_new_with_buttons(title, NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); #ifdef _WIN32 /* Steal the "HELP" response and use it to trigger browsing to the logs folder */ @@ -676,10 +676,6 @@ } void pidgin_log_show(PurpleLogType type, const char *screenname, PurpleAccount *account) { - pidgin_log_show_with_parent(NULL, type, screenname, account); -} - -void pidgin_log_show_with_parent(GtkWindow *parent, PurpleLogType type, const char *screenname, PurpleAccount *account) { struct log_viewer_hash_t *ht; PidginLogViewer *lv = NULL; const char *name = screenname; @@ -724,7 +720,7 @@ prpl_icon = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_MEDIUM); - display_log_viewer(parent, ht, purple_log_get_logs(type, screenname, account), + display_log_viewer(ht, purple_log_get_logs(type, screenname, account), title, gtk_image_new_from_pixbuf(prpl_icon), purple_log_get_total_size(type, screenname, account)); @@ -734,10 +730,6 @@ } void pidgin_log_show_contact(PurpleContact *contact) { - pidgin_log_show_contact_with_parent(NULL, contact); -} - -void pidgin_log_show_contact_with_parent(GtkWindow *parent, PurpleContact *contact) { struct log_viewer_hash_t *ht = g_new0(struct log_viewer_hash_t, 1); PurpleBlistNode *child; PidginLogViewer *lv = NULL; @@ -791,16 +783,11 @@ } title = g_strdup_printf(_("Conversations with %s"), name); - display_log_viewer(parent, ht, logs, title, image, total_log_size); + display_log_viewer(ht, logs, title, image, total_log_size); g_free(title); } -void pidgin_syslog_show(void) -{ - pidgin_syslog_show_with_parent(NULL); -} - -void pidgin_syslog_show_with_parent(GtkWindow *parent) +void pidgin_syslog_show() { GList *accounts = NULL; GList *logs = NULL; @@ -820,7 +807,7 @@ } logs = g_list_sort(logs, purple_log_compare); - syslog_viewer = display_log_viewer(parent, NULL, logs, _("System Log"), NULL, 0); + syslog_viewer = display_log_viewer(NULL, logs, _("System Log"), NULL, 0); } /**************************************************************************** diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtklog.h --- a/pidgin/gtklog.h Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtklog.h Fri Nov 16 23:03:22 2007 +0000 @@ -52,41 +52,11 @@ }; -#ifndef PURPLE_DISABLE_DEPRECATED -/** - * @deprecated Use pidgin_log_show_with_parent() instead. - */ + void pidgin_log_show(PurpleLogType type, const char *screenname, PurpleAccount *account); -#endif - -/** - * @since 2.3.0 - */ -void pidgin_log_show_with_parent(GtkWindow *parent, PurpleLogType type, const char *screenname, PurpleAccount *account); - -#ifndef PURPLE_DISABLE_DEPRECATED -/** - * @deprecated pidgin_log_show_contact_with_parent() instead. - */ void pidgin_log_show_contact(PurpleContact *contact); -#endif -/** - * @since 2.3.0 - */ -void pidgin_log_show_contact_with_parent(GtkWindow *parent, PurpleContact *contact); - -#ifndef PURPLE_DISABLE_DEPRECATED -/** - * @deprecated Use pidgin_syslog_show_with_parent() instead. - */ void pidgin_syslog_show(void); -#endif - -/** - * @since 2.3.0 - */ -void pidgin_syslog_show_with_parent(GtkWindow *parent); /**************************************************************************/ /** @name GTK+ Log Subsystem */ diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkplugin.c --- a/pidgin/gtkplugin.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkplugin.c Fri Nov 16 23:03:22 2007 +0000 @@ -284,7 +284,7 @@ _("Multiple plugins will be unloaded."), tmp->str, 0, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_PLUGINMGR, cb_data, 2, + PURPLE_UI_REQUEST_HINT_PLUGINMGR, cb_data, 2, _("Unload Plugins"), G_CALLBACK(plugin_unload_confirm_cb), _("Cancel"), g_free); g_string_free(tmp, TRUE); @@ -533,11 +533,6 @@ void pidgin_plugin_dialog_show() { - pidgin_plugin_dialog_show_with_parent(NULL); -} - -void pidgin_plugin_dialog_show_with_parent(GtkWindow *parent) -{ GtkWidget *sw; GtkWidget *event_view; GtkListStore *ls; @@ -546,8 +541,6 @@ GtkTreeSelection *sel; if (plugin_dialog != NULL) { - if (parent) - gtk_window_set_transient_for(GTK_WINDOW(plugin_dialog), parent); gtk_window_present(GTK_WINDOW(plugin_dialog)); return; } @@ -556,8 +549,6 @@ NULL, GTK_DIALOG_NO_SEPARATOR, NULL); - if (parent) - gtk_window_set_transient_for(GTK_WINDOW(plugin_dialog), parent); pref_button = gtk_dialog_add_button(GTK_DIALOG(plugin_dialog), _("Configure Pl_ugin"), PIDGIN_RESPONSE_CONFIGURE); gtk_dialog_add_button(GTK_DIALOG(plugin_dialog), diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkplugin.h --- a/pidgin/gtkplugin.h Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkplugin.h Fri Nov 16 23:03:22 2007 +0000 @@ -72,20 +72,9 @@ */ void pidgin_plugins_save(void); -#ifndef PURPLE_DISABLE_DEPRECATED /** * Shows the Plugins dialog - * - * @deprecated Use pidgin_plugin_dialog_show_with_parent() instead. */ void pidgin_plugin_dialog_show(void); -#endif - -/** - * Shows the Plugins dialog, transient to a parent window - * - * @since 2.3.0 - */ -void pidgin_plugin_dialog_show_with_parent(GtkWindow *parent); #endif /* _PIDGINPLUGIN_H_ */ diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkpounce.c --- a/pidgin/gtkpounce.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkpounce.c Fri Nov 16 23:03:22 2007 +0000 @@ -472,13 +472,6 @@ pidgin_pounce_editor_show(PurpleAccount *account, const char *name, PurplePounce *cur_pounce) { - pidgin_pounce_editor_show_with_parent(NULL, account, name, cur_pounce); -} - -void -pidgin_pounce_editor_show_with_parent(GtkWindow *parent, PurpleAccount *account, const char *name, - PurplePounce *cur_pounce) -{ PidginPounceDialog *dialog; GtkWidget *window; GtkWidget *label; @@ -1057,7 +1050,7 @@ static void pounces_manager_add_cb(GtkButton *button, gpointer user_data) { - pidgin_pounce_editor_show_with_parent(GTK_WINDOW(pounces_manager->window), NULL, NULL, NULL); + pidgin_pounce_editor_show(NULL, NULL, NULL); } static void @@ -1067,7 +1060,7 @@ PurplePounce *pounce; gtk_tree_model_get(model, iter, POUNCES_MANAGER_COLUMN_POUNCE, &pounce, -1); - pidgin_pounce_editor_show_with_parent(GTK_WINDOW(pounces_manager->window), NULL, NULL, pounce); + pidgin_pounce_editor_show(NULL, NULL, pounce); } static void @@ -1110,7 +1103,7 @@ buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); purple_request_action_with_hint(pounce, NULL, buf, NULL, 0, account, pouncee, NULL, - PURPLE_REQUEST_UI_HINT_POUNCEMGR, pounce, 2, + PURPLE_UI_REQUEST_HINT_POUNCEMGR, pounce, 2, _("Delete"), pounces_manager_delete_confirm_cb, _("Cancel"), NULL); g_free(buf); @@ -1167,7 +1160,7 @@ if ((pounce != NULL) && (event->button == 1) && (event->type == GDK_2BUTTON_PRESS)) { - pidgin_pounce_editor_show_with_parent(GTK_WINDOW(pounces_manager->window), NULL, NULL, pounce); + pidgin_pounce_editor_show(NULL, NULL, pounce); return TRUE; } @@ -1318,12 +1311,6 @@ void pidgin_pounces_manager_show(void) { - pidgin_pounces_manager_show_with_parent(NULL); -} - -void -pidgin_pounces_manager_show_with_parent(GtkWindow *parent) -{ PouncesManager *dialog; GtkWidget *bbox; GtkWidget *button; @@ -1334,7 +1321,6 @@ if (pounces_manager != NULL) { gtk_window_present(GTK_WINDOW(pounces_manager->window)); - gtk_window_set_transient_for(GTK_WINDOW(pounces_manager->window), parent); return; } @@ -1345,7 +1331,6 @@ dialog->window = win = pidgin_create_window(_("Buddy Pounces"), PIDGIN_HIG_BORDER, "pounces", TRUE); gtk_window_set_default_size(GTK_WINDOW(win), width, height); - gtk_window_set_transient_for(GTK_WINDOW(win), parent); g_signal_connect(G_OBJECT(win), "delete_event", G_CALLBACK(pounces_manager_destroy_cb), dialog); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkpounce.h --- a/pidgin/gtkpounce.h Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkpounce.h Fri Nov 16 23:03:22 2007 +0000 @@ -28,48 +28,20 @@ #include "pounce.h" -#ifndef PURPLE_DISABLE_DEPRECATED /** * Displays a New Buddy Pounce or Edit Buddy Pounce dialog. * * @param account The optional account to use. * @param name The optional name to pounce on. * @param cur_pounce The current buddy pounce, if editing an existing one. - * - * @deprecated Use pidgin_pounce_editor_show_with_parent() instead. */ void pidgin_pounce_editor_show(PurpleAccount *account, const char *name, PurplePounce *cur_pounce); -#endif - -/** - * Displays a New Buddy Pounce or Edit Buddy Pounce dialog. - * - * @param parent The parent window. - * @param account The optional account to use. - * @param name The optional name to pounce on. - * @param cur_pounce The current buddy pounce, if editing an existing one. - * - * @since 2.3.0 - */ -void pidgin_pounce_editor_show_with_parent(GtkWindow *parent, PurpleAccount *account, const char *name, - PurplePounce *cur_pounce); - -#ifndef PURPLE_DISABLE_DEPRECATED -/** - * Shows the pounces manager window. - * - * @deprecated Use pidgin_pounces_manager_show_with_parent() instead. - */ -void pidgin_pounces_manager_show(void); -#endif /** * Shows the pounces manager window. - * - * @since 2.3.0 */ -void pidgin_pounces_manager_show_with_parent(GtkWindow *parent); +void pidgin_pounces_manager_show(void); /** * Hides the pounces manager window. diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkprefs.c --- a/pidgin/gtkprefs.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkprefs.c Fri Nov 16 23:03:22 2007 +0000 @@ -642,7 +642,7 @@ add_theme_button_clicked_cb(GtkWidget *widget, gpointer null) { purple_request_file_with_hint(NULL, _("Install Theme"), NULL, FALSE, - (GCallback)request_theme_file_name_cb, NULL, NULL, NULL, NULL, PURPLE_REQUEST_UI_HINT_PREFSMGR, NULL) ; + (GCallback)request_theme_file_name_cb, NULL, NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_PREFSMGR, NULL) ; } static void @@ -1627,7 +1627,7 @@ purple_request_file_with_hint(prefs, _("Sound Selection"), filename, FALSE, G_CALLBACK(sound_chosen_cb), NULL, - NULL, NULL, NULL, PURPLE_REQUEST_UI_HINT_PREFSMGR, + NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_PREFSMGR, GINT_TO_POINTER(sound_row_sel)); } diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkprivacy.c --- a/pidgin/gtkprivacy.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkprivacy.c Fri Nov 16 23:03:22 2007 +0000 @@ -88,8 +88,6 @@ static PidginPrivacyDialog *privacy_dialog = NULL; -#define PIDGIN_REQUEST_HINT_PRIVACY "privacy" - static void rebuild_allow_list(PidginPrivacyDialog *dialog) { @@ -369,7 +367,7 @@ dialog = g_new0(PidginPrivacyDialog, 1); - dialog->win = pidgin_create_window(_("Privacy"), PIDGIN_HIG_BORDER, PIDGIN_REQUEST_HINT_PRIVACY, TRUE); + dialog->win = pidgin_create_window(_("Privacy"), PIDGIN_HIG_BORDER, "privacy", TRUE); g_signal_connect(G_OBJECT(dialog->win), "delete_event", G_CALLBACK(destroy_cb), dialog); @@ -564,7 +562,7 @@ _("_Permit"), G_CALLBACK(add_permit_block_cb), _("Cancel"), G_CALLBACK(destroy_request_data), account, name, NULL, - PIDGIN_REQUEST_HINT_PRIVACY, data); + "privacy", data); } else { char *primary = g_strdup_printf(_("Allow %s to contact you?"), name); @@ -576,7 +574,7 @@ purple_request_action_with_hint(account, _("Permit User"), primary, secondary, 0, account, name, NULL, - PIDGIN_REQUEST_HINT_PRIVACY, data, 2, + "privacy", data, 2, _("_Permit"), G_CALLBACK(confirm_permit_block_cb), _("Cancel"), G_CALLBACK(destroy_request_data)); @@ -605,7 +603,7 @@ _("_Block"), G_CALLBACK(add_permit_block_cb), _("Cancel"), G_CALLBACK(destroy_request_data), account, name, NULL, - PIDGIN_REQUEST_HINT_PRIVACY, data); + "privacy", data); } else { char *primary = g_strdup_printf(_("Block %s?"), name); @@ -615,7 +613,7 @@ purple_request_action_with_hint(account, _("Block User"), primary, secondary, 0, account, name, NULL, - PIDGIN_REQUEST_HINT_PRIVACY, data, 2, + "privacy", data, 2, _("_Block"), G_CALLBACK(confirm_permit_block_cb), _("Cancel"), G_CALLBACK(destroy_request_data)); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkrequest.c --- a/pidgin/gtkrequest.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkrequest.c Fri Nov 16 23:03:22 2007 +0000 @@ -106,16 +106,16 @@ if (convo) return GTK_WINDOW(convo->win->window); - if (strcmp(ui_hint, PURPLE_REQUEST_UI_HINT_BLIST)) { + if (strcmp(ui_hint, "blist")) { GList *ll_toplevels = NULL; ll_toplevels = gtk_window_list_toplevels(); if (!(toplevel = find_toplevel(ll_toplevels, ui_hint))) { - if (!strcmp(ui_hint, PURPLE_REQUEST_UI_HINT_REGISTER)) + if (!strcmp(ui_hint, "register-account")) toplevel = find_toplevel(ll_toplevels, "account"); else - if (!strcmp(ui_hint, PURPLE_REQUEST_UI_HINT_XFER)) + if (!strcmp(ui_hint, "xfer")) toplevel = find_toplevel(ll_toplevels, "file transfer"); } diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtksavedstatuses.c --- a/pidgin/gtksavedstatuses.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtksavedstatuses.c Fri Nov 16 23:03:22 2007 +0000 @@ -340,7 +340,7 @@ purple_request_action_with_hint(handle, NULL, title, NULL, 0, NULL, NULL, NULL, - PURPLE_REQUEST_UI_HINT_STATUSMGR, sel_titles, 2, + PURPLE_UI_REQUEST_HINT_STATUSMGR, sel_titles, 2, _("Delete"), status_window_delete_confirm_cb, _("Cancel"), status_window_delete_cancel_cb); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/gtkutils.c Fri Nov 16 23:03:22 2007 +0000 @@ -1537,7 +1537,7 @@ DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback, "Cancel", (GCallback)dnd_image_cancel_callback, account, who, NULL, - PURPLE_REQUEST_UI_HINT_CONV, data, + PURPLE_REQUEST_HINT_CONV, data, _("Set as buddy icon"), DND_BUDDY_ICON, _("Send image file"), DND_FILE_TRANSFER, _("Insert in message"), DND_IM_IMAGE, @@ -1547,7 +1547,7 @@ _("Would you like to set it as the buddy icon for this user?"), 0, account, who, NULL, - PURPLE_REQUEST_UI_HINT_CONV, data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); + PURPLE_REQUEST_HINT_CONV, data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); else purple_request_choice_with_hint(NULL, NULL, _("You have dragged an image"), @@ -1557,7 +1557,7 @@ "OK", (GCallback)dnd_image_ok_callback, "Cancel", (GCallback)dnd_image_cancel_callback, account, who, NULL, - PURPLE_REQUEST_UI_HINT_CONV, data, + PURPLE_REQUEST_HINT_CONV, data, _("Set as buddy icon"), DND_BUDDY_ICON, (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), NULL); diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/plugins/perl/common/GtkDialogs.xs --- a/pidgin/plugins/perl/common/GtkDialogs.xs Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/plugins/perl/common/GtkDialogs.xs Fri Nov 16 23:03:22 2007 +0000 @@ -10,10 +10,6 @@ pidgin_dialogs_about() void -pidgin_dialogs_about_with_parent(parent) - void * parent - -void pidgin_dialogs_im() void diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/plugins/perl/common/GtkLog.xs --- a/pidgin/plugins/perl/common/GtkLog.xs Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/plugins/perl/common/GtkLog.xs Fri Nov 16 23:03:22 2007 +0000 @@ -13,27 +13,11 @@ Purple::Account account void -pidgin_log_show_with_parent(parent, type, screenname, account) - void * parent - Purple::LogType type - const char * screenname - Purple::Account account - -void pidgin_log_show_contact(contact) Purple::BuddyList::Contact contact -void -pidgin_log_show_contact_with_parent(parent, contact) - void * parent - Purple::BuddyList::Contact contact - MODULE = Pidgin::Log PACKAGE = Pidgin::SysLog PREFIX = pidgin_syslog_ PROTOTYPES: ENABLE void pidgin_syslog_show() - -void -pidgin_syslog_show_with_parent(parent) - void * parent diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/plugins/perl/common/GtkPlugin.xs --- a/pidgin/plugins/perl/common/GtkPlugin.xs Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/plugins/perl/common/GtkPlugin.xs Fri Nov 16 23:03:22 2007 +0000 @@ -11,7 +11,3 @@ void pidgin_plugin_dialog_show() - -void -pidgin_plugin_dialog_show_with_parent(parent) - void * parent diff -r 9c3ddecda3ce -r ca17c133d6c3 pidgin/plugins/perl/common/GtkPounce.xs --- a/pidgin/plugins/perl/common/GtkPounce.xs Fri Nov 16 23:01:37 2007 +0000 +++ b/pidgin/plugins/perl/common/GtkPounce.xs Fri Nov 16 23:03:22 2007 +0000 @@ -9,13 +9,6 @@ const char * name Purple::Pounce cur_pounce -void -pidgin_pounce_editor_show_with_parent(parent, account, name, cur_pounce) - void * parent - Purple::Account account - const char * name - Purple::Pounce cur_pounce - MODULE = Pidgin::Pounce PACKAGE = Pidgin::Pounces PREFIX = pidgin_pounces_ PROTOTYPES: ENABLE @@ -29,8 +22,4 @@ pidgin_pounces_manager_show() void -pidgin_pounces_manager_show_with_parent(parent) - void * parent - -void pidgin_pounces_manager_hide()