pidgin: 8f3fa30d: Remove a few deprecated functions
markdoliner at pidgin.im
markdoliner at pidgin.im
Sat Aug 20 23:02:38 EDT 2011
----------------------------------------------------------------------
Revision: 8f3fa30dafef601c137ef1450edd4929427efafc
Parent: 03e320bafb3858f3d9599532af4cc637d818dc09
Author: markdoliner at pidgin.im
Date: 08/20/11 22:56:19
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8f3fa30dafef601c137ef1450edd4929427efafc
Changelog:
Remove a few deprecated functions
Changes against parent 03e320bafb3858f3d9599532af4cc637d818dc09
patched pidgin/gtkutils.c
patched pidgin/gtkutils.h
-------------- next part --------------
============================================================
--- pidgin/gtkutils.c ddbb37297ab32b153a1aca4b28787e1c883ad907
+++ pidgin/gtkutils.c 009d5385cf6591fb86828fdf1b1a6ccb484bab23
@@ -922,24 +922,6 @@ pidgin_account_option_menu_new(PurpleAcc
return optmenu;
}
-gboolean
-pidgin_check_if_dir(const char *path, GtkFileSelection *filesel)
-{
- char *dirname = NULL;
-
- if (g_file_test(path, G_FILE_TEST_IS_DIR)) {
- /* append a / if needed */
- if (path[strlen(path) - 1] != G_DIR_SEPARATOR) {
- dirname = g_strconcat(path, G_DIR_SEPARATOR_S, NULL);
- }
- gtk_file_selection_set_filename(filesel, (dirname != NULL) ? dirname : path);
- g_free(dirname);
- return TRUE;
- }
-
- return FALSE;
-}
-
void
pidgin_setup_gtkspell(GtkTextView *textview)
{
@@ -2181,13 +2163,6 @@ pidgin_screenname_autocomplete_default_f
}
}
-void
-pidgin_setup_screenname_autocomplete(GtkWidget *entry, GtkWidget *accountopt, gboolean all) {
- pidgin_setup_screenname_autocomplete_with_filter(entry, accountopt, pidgin_screenname_autocomplete_default_filter, GINT_TO_POINTER(all));
-}
-
-
-
void pidgin_set_cursor(GtkWidget *widget, GdkCursorType cursor_type)
{
GdkCursor *cursor;
@@ -2533,21 +2508,6 @@ pidgin_convert_buddy_icon(PurplePlugin *
return NULL;
}
-void pidgin_set_custom_buddy_icon(PurpleAccount *account, const char *who, const char *filename)
-{
- PurpleBuddy *buddy;
- PurpleContact *contact;
-
- buddy = purple_find_buddy(account, who);
- if (!buddy) {
- purple_debug_info("custom-icon", "You can only set custom icon for someone in your buddylist.\n");
- return;
- }
-
- contact = purple_buddy_get_contact(buddy);
- purple_buddy_icons_node_set_custom_icon_from_file((PurpleBlistNode*)contact, filename);
-}
-
char *pidgin_make_pretty_arrows(const char *str)
{
char *ret;
============================================================
--- pidgin/gtkutils.h cb65c2c7e5eeb58198d24149c9155f84bf919208
+++ pidgin/gtkutils.h 87131c0d472b78b884749e0e14b804cd446ae32d
@@ -384,39 +384,6 @@ gboolean pidgin_screenname_autocomplete_
gboolean pidgin_screenname_autocomplete_default_filter(const PidginBuddyCompletionEntry *completion_entry, gpointer all_accounts);
/**
- * Add autocompletion of screenames to an entry.
- *
- * @deprecated
- * For new code, use the equivalent:
- * #pidgin_setup_screenname_autocomplete_with_filter(@a entry, @a optmenu,
- * #pidgin_screenname_autocomplete_default_filter, <tt>GINT_TO_POINTER(@a
- * all)</tt>)
- *
- * @param entry The GtkEntry on which to setup autocomplete.
- * @param optmenu A menu for accounts, returned by
- * pidgin_account_option_menu_new(). If @a optmenu is not @c
- * NULL, it'll be updated when a username is chosen from the
- * autocomplete list.
- * @param all Whether to include usernames from disconnected accounts.
- */
-void pidgin_setup_screenname_autocomplete(GtkWidget *entry, GtkWidget *optmenu, gboolean all);
-
-/**
- * Check if the given path is a directory or not. If it is, then modify
- * the given GtkFileSelection dialog so that it displays the given path.
- * If the given path is not a directory, then do nothing.
- *
- * @param path The path entered in the file selection window by the user.
- * @param filesel The file selection window.
- *
- * @return TRUE if given path is a directory, FALSE otherwise.
- * @deprecated Pidgin no longer uses GtkFileSelection internally. It has also
- * been deprecated by GTK+. Use GtkFileChooser instead and ignore
- * this function.
- */
-gboolean pidgin_check_if_dir(const char *path, GtkFileSelection *filesel);
-
-/**
* Sets up GtkSpell for the given GtkTextView, reporting errors
* if encountered.
*
@@ -661,20 +628,7 @@ gpointer pidgin_convert_buddy_icon(Purpl
*/
gpointer pidgin_convert_buddy_icon(PurplePlugin *plugin, const char *path, size_t *len);
-#if !(defined PIDGIN_DISABLE_DEPRECATED) || (defined _PIDGIN_GTKUTILS_C_)
/**
- * Set or unset a custom buddyicon for a user.
- *
- * @param account The account the user belongs to.
- * @param who The name of the user.
- * @param filename The path of the custom icon. If this is @c NULL, then any
- * previously set custom buddy icon for the user is removed.
- * @deprecated See purple_buddy_icons_node_set_custom_icon_from_file()
- */
-void pidgin_set_custom_buddy_icon(PurpleAccount *account, const char *who, const char *filename);
-#endif
-
-/**
* Converts "->" and "<-" in strings to Unicode arrow characters, for use in referencing
* menu items.
*
More information about the Commits
mailing list