summaryrefslogtreecommitdiff
path: root/libpurple/savedstatuses.c
Commit message (Collapse)AuthorAgeFilesLines
* Use g_clear_handle_id everywhereElliott Sales de Andrade2023-03-211-4/+2
| | | | | | | Testing Done: Compiled and ran tests in valgrind. Reviewed at https://reviews.imfreedom.org/r/2374/
* Use g_clear_* helpers where usefulElliott Sales de Andrade2023-03-211-4/+2
| | | | | | | | | | | | | That is: * when the variable is set to `NULL` right after freeing * when the variable is checked for non-`NULL` before freeing * when the variable is a global (because they should be set to `NULL`, even if we don't really claim that things can be re-init'd) Testing Done: Compiled, and ran tests in valgrind. Reviewed at https://reviews.imfreedom.org/r/2369/
* Update libpurple for the deprecations in the account apiGary Kramlich2022-12-141-3/+9
| | | | | | | Testing Done: Compiled and ran the unit tests. Reviewed at https://reviews.imfreedom.org/r/2133/
* Bump C standard to C99 for libpurple files and fix warningsElliott Sales de Andrade2022-12-111-1/+1
| | | | | | | Testing Done: Touched all source files and compiled; saw no new warnings. Reviewed at https://reviews.imfreedom.org/r/2122/
* Remove C99-obsoleted constructsElliott Sales de Andrade2022-10-261-4/+4
| | | | | | | | | See [this development thread for a future Fedora change](https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/) or [the proposed change page](https://fedoraproject.org/wiki/Changes/PortingToModernC). These may be made stronger errors in GCC 14. Testing Done: Configured with `-Dc_args='-Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition'` and compiled. Reviewed at https://reviews.imfreedom.org/r/1974/
* Use PurpleAccountManager added/removed signalsElliott Sales de Andrade2022-10-091-6/+11
| | | | | | | | | Testing Done: Opened Pidgin and made sure there were no warnings about objects not existing in time for the new signal connections. Opened XMPP console and saw that the drop down updated when an XMPP account was added/removed. Reviewed at https://reviews.imfreedom.org/r/1913/
* Stop including internal.h everywhere when we really don't need it.Gary Kramlich2022-09-121-2/+0
| | | | | | | Testing Done: Compiled, but didn't test on windows. As such I left all the networking stuff untouched as that's where windows will really need it and that can be done in another rr. Reviewed at https://reviews.imfreedom.org/r/1764/
* Update libpurple for the purple_account_manager_get_(in)active deprecationsGary Kramlich2022-07-211-2/+2
| | | | | | | Testing Done: Compiled Reviewed at https://reviews.imfreedom.org/r/1535/
* Overhaul the status boxGary Kramlich2022-04-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * Subclass GtkBox instead of GtkContainer * Remove message editing * Use a GtkComboBox instead of our fake GtkComboBox * Move to item id's rather than indexes * Moved new status, and saved status to GActions * Removed the account and token_account properties. we now show primitives and saved status * Removed the ability to delete saved status from the widget * Use a widget template to construct the ui elements * Removed the connection detection stuff Testing Done: Verified status were updated when used in the saved status manager. Verified that the new status and saved status actions work. Verified that the primitive status work. Verified that the saved statuses work. Bugs closed: PIDGIN-17591 Reviewed at https://reviews.imfreedom.org/r/1312/
* Replace PURPLE_CALLBACK by G_CALLBACKElliott Sales de Andrade2022-03-251-1/+1
| | | | | | | | | Another straight search-and-replace for 'easy' review. Testing Done: Compile only. Reviewed at https://reviews.imfreedom.org/r/1371/
* Create the PurpleAccountManager APIGary Kramlich2021-12-031-33/+43
| | | | | | | | | | | | | | This replaces most of the purple_accounts_ API, but not quite everything. The functions that have been replaced have been marked as deprecated and libpurple has been updated to use the new API. Testing Done: * Connected an XMPP account * Verified chat and ims worked * Verified that the saved statuses window didn't crash * Ran the new unit tests. Reviewed at https://reviews.imfreedom.org/r/1137/
* Now that the History API is here, remove the purple logging apiGary Kramlich2021-10-231-0/+1
| | | | | | | Testing Done: Sent ims in both pidgin3 and finch3, also joined a chat in pidgin3 and verified that the preferences window is okay. Reviewed at https://reviews.imfreedom.org/r/1077/
* Fix several typos in libpurpleElliott Sales de Andrade2021-10-101-1/+1
| | | | | | | | | Ran `codespell -w`, ignoring some stuff, or making things better. Testing Done: Compile only. Reviewed at https://reviews.imfreedom.org/r/1016/
* Fix time_t string formatting.Elliott Sales de Andrade2020-12-201-4/+6
| | | | | | | | | | | * Use monotonic time for the last IRC ping. Not sure why I didn't change this one before. * Fix formats for printing of `time_t`. Testing Done: Compile only. Reviewed at https://reviews.imfreedom.org/r/299/
* Pull the purple_markup_* api out of util.[ch] to purplemarkup.[ch]. No code ↵Gary Kramlich2020-10-161-1/+1
| | | | | | | | | was changed just moved it from one file to the other. Testing Done: Compile and unit tests. Reviewed at https://reviews.imfreedom.org/r/171/
* Make sure we're not including the gettext macros in header files and deal ↵Gary Kramlich2020-05-211-0/+3
| | | | with the repercussions of that.
* Fix const-cast warning.Elliott Sales de Andrade2019-11-051-2/+2
|
* Fix some use-after-free.Elliott Sales de Andrade2019-11-051-1/+2
|
* Replace g_[s]list_remove with g_[s]list_delete_link.Elliott Sales de Andrade2019-10-251-1/+1
|
* Set GList to NULL after freeqarkai2019-10-191-0/+1
|
* Use g_list_free_full instead of manual iterationsqarkai2019-10-181-12/+2
|
* Use GList functions instead of manual iterationsqarkai2019-10-131-8/+1
|
* Move more libpurple files to ~/.config.Elliott Sales de Andrade2019-02-151-2/+2
|
* libpurple: Remove pointer registration for DBus APIMike Ruprecht2018-10-021-7/+0
|
* Remove purple_timeout_* function usageMike Ruprecht2017-06-151-2/+2
| | | | | | | | | | | | Now that the purple_timeout_* functions internally just use their GLib equivalents, we can just replace them with the GLib equivalents. This patch replaces purple_timeout_* functions with g_timeout_add{_seconds}() and g_source_remove() functions. There are probably places in this which could use g_timeout_add_full() or g_idle_add{_full}(), but this was a straight replacement to keep the functionality identical for now. Further patches can update to use these instead if desired.
* Fix #16762 where transient startup statuses could be deleted on exitJakub Adam2015-12-291-2/+4
|
* Merge gtkdoc-conversionAnkit Vani2014-02-061-2/+2
|\
| * Merge gtkdoc-conversionAnkit Vani2014-02-061-2/+2
| |\
| | * Merge gtkdoc-conversionAnkit Vani2014-02-041-2/+2
| | |\
| | | * Revert all the migration stuffAnkit Vani2014-01-211-23/+5
| | | |
| | | * Migrate old protocol IDs to new if *.xml version < 1.1Ankit Vani2014-01-201-4/+14
| | | |
| | | * Update versions of XML files to "1.1", and warn if reading from a newer versionAnkit Vani2014-01-201-1/+9
| | | |
| | | * Merged soc.2013.gobjectification branchAnkit Vani2013-09-071-58/+58
| | | |\
| | | * | Renamed some prpl stuff to protocol stuff.Ankit Vani2013-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | Renamed /plugins/prpl prefs to /protocols
* | | | | Merged default branchAnkit Vani2014-02-061-6/+6
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | gtk-doc prep: *_get_type() functions are hidden as standard GType-returning ↵Ankit Vani2014-02-061-6/+6
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | funcs, so rename them. - purple_savedstatus_[gs]et_type renamed to purple_savedstatus_[gs]et_primitive_type - purple_account_option_get_type renamed to purple_account_option_get_pref_type - purple_srv_txt_query_get_type renamed to purple_srv_txt_query_get_query_type - purple_notify_user_info_entry_[gs]et_type renamed to purple_notify_user_info_entry_[gs]et_entry_type - purple_plugin_pref_[gs]et_type renamed to purple_plugin_pref_[gs]et_pref_type - purple_prefs_get_type renamed to purple_prefs_get_pref_type - purple_proxy_info_[gs]et_type renamed to purple_proxy_info_[gs]et_proxy_type - purple_request_field_get_type renamed to purple_request_field_get_field_type - purple_savedstatus_substatus_get_type renamed to purple_savedstatus_substatus_get_status_type
* | | | Fix some gtk-doc warnings till xmlnode.hAnkit Vani2014-02-061-11/+13
| |/ / |/| |
* | | Remove @file from .c filesAnkit Vani2014-02-041-5/+0
|/ /
* | Replaced xmlnode with PurpleXmlNode, and xmlnode_* API with purple_xmlnode_* APIAnkit Vani2013-09-071-58/+58
|/
* Refactored plugin, savedstatuses and server to use GType and GValue instead ↵Ankit Vani2013-07-191-14/+8
| | | | of PurpleValue
* Resolved conflicting function namesAnkit Vani2013-07-161-1/+1
|
* Updated GBoxed functions. Boxing is intended to be temporary for buddy list, ↵Ankit Vani2013-07-161-1/+5
| | | | saved status, plugins, status.
* Added boxed types for PurpleStatus and PurpleSavedStatusAnkit Vani2013-07-161-0/+23
|
* Convert libpurple and protocol prpl's to use the purple_account_* accessor ↵Andrew Victor2011-10-011-1/+1
| | | | functions.
* Remove the _purple_oscar_convert(). It existed to migrate data fromMark Doliner2011-03-171-1/+0
| | | | prpl-oscar to prpl-aim and prpl-icq. Fixes #2923
* Remove a bunch of old references to prpl-oscarMark Doliner2010-03-291-2/+2
|
* Clean up various file-scoped globals at uninit.Paul Aurich2009-08-131-1/+4
| | | | | These are all from a user's valgrind log in #pidgin a week or so ago. I think only the proxy and pounce are legitimate leaks.
* A patch from Scott Wolchok to replace snprintf() with g_snprintf() andRichard Laager2009-05-161-3/+3
| | | | | | | | increase the size of some buffers to be able to fit -2^63. I don't think the snprintf() -> g_snprintf() changes do anything with glibc, but there's no harm in using the glib function to guarantee NUL termination. Fixes #8974
* Adjust some idle handling code to fix "wedging" idle reporting into neverPaul Aurich2009-04-281-4/+4
| | | | | | | reporting idle properly until restarting Pidgin. Fixes #2002. committer: John Bailey <rekkanoryo@rekkanoryo.org>
* propagate from branch 'im.pidgin.pidgin.next.minor' (head ↵Elliott Sales de Andrade2009-03-021-11/+11
|\ | | | | | | | | | | d24c4a9d28f21eaa47bd76e50ed31053733edcb1) to branch 'im.pidgin.pidgin' (head b60aeb4ba1b0a2368dfeed19db8cbeb808769d1f)