You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(106) |
Oct
(334) |
Nov
(246) |
Dec
(145) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(42) |
Feb
(53) |
Mar
(232) |
Apr
(109) |
May
(137) |
Jun
(63) |
Jul
(26) |
Aug
(263) |
Sep
(193) |
Oct
(507) |
Nov
(440) |
Dec
(241) |
2003 |
Jan
(567) |
Feb
(195) |
Mar
(504) |
Apr
(481) |
May
(524) |
Jun
(522) |
Jul
(594) |
Aug
(502) |
Sep
(643) |
Oct
(508) |
Nov
(430) |
Dec
(377) |
2004 |
Jan
(361) |
Feb
(251) |
Mar
(219) |
Apr
(499) |
May
(461) |
Jun
(419) |
Jul
(314) |
Aug
(519) |
Sep
(416) |
Oct
(247) |
Nov
(305) |
Dec
(382) |
2005 |
Jan
(267) |
Feb
(282) |
Mar
(327) |
Apr
(338) |
May
(189) |
Jun
(400) |
Jul
(462) |
Aug
(530) |
Sep
(316) |
Oct
(523) |
Nov
(481) |
Dec
(650) |
2006 |
Jan
(536) |
Feb
(361) |
Mar
(287) |
Apr
(146) |
May
(101) |
Jun
(169) |
Jul
(221) |
Aug
(498) |
Sep
(300) |
Oct
(236) |
Nov
(209) |
Dec
(205) |
2007 |
Jan
(30) |
Feb
(23) |
Mar
(26) |
Apr
(15) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <the...@us...> - 2006-09-10 20:04:27
|
Revision: 17222 http://svn.sourceforge.net/gaim/?rev=17222&view=rev Author: thekingant Date: 2006-09-10 13:04:20 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Move ChangeLog.API next to ChangeLog and ChangeLog.win32 Added Paths: ----------- trunk/ChangeLog.API Removed Paths: ------------- trunk/doc/ChangeLog.API Copied: trunk/ChangeLog.API (from rev 17218, trunk/doc/ChangeLog.API) =================================================================== --- trunk/ChangeLog.API (rev 0) +++ trunk/ChangeLog.API 2006-09-10 20:04:20 UTC (rev 17222) @@ -0,0 +1,638 @@ +Gaim: The Pimpin' Penguin IM Client that's good for the soul! + +version 2.0.0: + Changed: + * All the status stuff. Yay! + * gaim_prefs_connect_callback(), added handle parameter + * gtk_imhtml_toolbar now descends from GtkHBox making it easier to add your + own widgets to it + * gaim_find_conversation_with_account, added a "type" parameter + * gaim_gtk_prefs_labeled_spin_button, the "key" parameter is now a + const char* instead of just a char* + * gaim_gtk_prefs_labeled_entry, the "key" parameter is now a const char* + instead of just a char* + * the add_buddy perl sub. The sub now takes the account as the first + argument, and buddy and group as the second and third. It also adds + the buddy to the server-side buddy list of the given account. + * gaim_connection_new, gaim_account_connect and gaim_account_register no + longer return a GaimConnection + * keep_alive in GaimConnection is renamed to keepalive + * gaim_mkstemp, added a second argument, a boolean, of whether or not the + file is binary + * gaim_log_logger_new, rewritten + * gaim_conv_window_remove_conversation()'s last argument to be a + GaimConversation. + * A new blocked icon: pixmaps/status/default/blocked.png + * In pixmaps/status/default: extendedaway.png renamed to extended_away.png + * In pixmaps/status/default: na.png renamed to unavailable.png + * gtk_imhtml_toggle_bold(): No longer returns a value + * gtk_imhtml_toggle_italic(): No longer returns a value + * gtk_imhtml_toggle_underline(): No longer returns a value + * gtk_imhtml_toggle_strike(): No longer returns a value + * gtk_imhtml_scroll_to_end(): Added the smooth paramter + * gaim_log_new(), added conv parameter + * gaim_buddy_icon_new(), leaves a reference which the caller owns. Use + gaim_buddy_icon_unref() immediately if you don't want a reference (the + old behavior). + * GAIM_CONV_UNKNOWN to GAIM_CONV_TYPE_UNKNOWN. + * GAIM_CONV_IM to GAIM_CONV_TYPE_IM. + * GAIM_CONV_CHAT to GAIM_CONV_TYPE_CHAT. + * GAIM_CONV_MISC to GAIM_CONV_TYPE_MISC. + * GAIM_CONV_ANY to GAIM_CONV_TYPE_ANY. + * GaimConversationUiOps.write_conv, Replaced const char *who with + const char *name, const char *alias + * gaim_conv_chat_add_users(), added extra_msgs and new_arrivals (pass NULL + and FALSE respectively, to get the same behavior as before) + * chat_add_users in GaimConversationUiOps, added cbuddies and + new_arrivals and removed buddies. + * chat_rename_user in GaimConversationUiOps, added new_alias + * gaim_conv_chat_cb_new(), added alias. (pass NULL to get the same + behavior as before). + * GaimConversation.log became GList * GaimConversation.logs, so that a + conversation can have multiple logs at once + * gaim_conv_chat_add_user, added extra_msgs + * gaim_notify_userinfo, removed primary and secondary parameters + * GaimNotifyUiOps.notify_userinfo: removed title, primary, and + secondary parameters + * Idle timers are now added and removed in gtkidle.c in response + to the signed-on and signed-off signals + * GaimXfer->ops.read, GaimXfer->ops.write, gaim_xfer_set_read_fnc(), + gaim_xfer_set_write_fnc(), gaim_xfer_read(), gaim_xfer_write(): + Changed ssize_t to gssize + * serv_got_im, serv_got_chat_in, serv_send_im and serv_chat_send all use + GaimMessageFlags instead of GaimConvImFlags / GaimConvChatFlags + * All core<->prpl message passing now uses html. This was previously true + for receiving messages, it's now also true for sending them. prpls that + don't support html need to gaim_unescape_html() the message. + * Notify API: GCallback -> GaimNotifyCloseCallback, + void *user_data -> gpointer user_data + * gaim_notify_searchresults_get_rows_count, + gaim_notify_searchresults_get_columns_count: return type now guint + * gaim_account_notify_added: No longer checks if there is a + GaimBuddy for the added user, that's left up to the prpls. See the + documentation for this function and gaim_account_request_add. + * gaim_accounts_reorder: new_index is now a gint instead of a size_t + * displaying-message signals: displaying-[im|chat]-msg and + displayed-[im|chat]-msg signals are emitted for all messages + (ie, for received messages, sent messages, system messages, error + messages etc.), and the signals now have + gaim_gtk_conversations_get_handle() for their handle. + * GAIM_NOTIFY_BUTTON_ADD_BUDDY to GAIM_NOTIFY_BUTTON_ADD + * conversation-switched: This signal has been moved from conversation to + the UI and the signal-handlers only receive the + conversation that has been switched to. + * GaimPluginProtocolInfo: Added offline_message + * GaimPluginProtocolInfo: Added whiteboard_prpl_ops + * GaimPluginProtocolInfo: Added media_prpl_ops + * GaimPluginProtocolInfo: Added "str" argument to tooltip_text, changed + the return type to void + * GaimPluginProtocolInfo: Added "full" argument to tooltip_text + * gaim_pounce_new(): Added option argument for pounce options + * gaim_network_listen() and gaim_network_listen_range(): Added + socket_type parameter to allow creation of UDP listening. Modified + to be asynchronous with a callback to allow for UPnP operation. + Returns a data structure that can be used to cancel the listen + attempt using gaim_network_listen_cancel() + * GaimPrefCallback: val is now a gconstpointer instead of a gpointer + * gtk_imhtml_get_current_format(): the arguments are now set to TRUE or + FALSE. Previously they were set to TRUE or left alone. Also, you + may now pass NULL if you're not interested in a specific formatting. + * Smiley Themes: Backslashes must be backslash-escaped. + * Plugins: Depedencies are now honored when unloading plugins. + * gaim_markup_extract_info_field(): Added format_cb parameter. + * gaim_str_to_time(): Added support for parsing the MM/DD/YYYY format. + * gaim_plugin_action_new(): label is now const char * + * gaim_plugin_pref_new_with_name(): name is now const char * + * gaim_plugin_pref_new_with_label(): label is now const char * + * gaim_plugin_pref_new_with_name_and_label(): name and label are + now const char * + * gaim_plugin_pref_set_name(): name is now const char * + * gaim_plugin_pref_get_name(): return type is now const char * + * gaim_plugin_pref_set_label(): label is now const char * + * gaim_plugin_pref_get_label(): return type is now const char * + * gaim_plugin_pref_add_choice(): label is now const char * + * struct proto_chat_entry: label is now const char * + * struct proto_chat_entry: identifier is now const char * + * All network activity has been updated to use non-blocking sockets. + This means that plugins must be updated to expect such a socket from + gaim_proxy_connect() and gaim_network_listen*(). + * gaim_proxy_connect(): changed to return NULL on error and a pointer + to a GaimProxyConnectInfo object which can be used to cancel + connection attempts using gaim_proxy_connect_cancel(). + * gaim_gethostbyname_async(): Renamed to gaim_dnsquery_a() and + changed to return a pointer to a data structure that can be + used to cancel the pending DNS query using gaim_dnsquery_destroy() + * gaim_url_fetch(): Renamed to gaim_util_fetch_url() and changed + to return a pointer to a data structer that can be used to cancel + the pending HTTP request using gaim_util_fetch_url_cancel(). + * gaim_gtk_create_imhtml(): Added sw_ret() parameter + * gaim_account_get_log(): Added create parameter + * GAIM_CMD_P_VERYHIGH is now GAIM_CMD_P_VERY_HIGH + * gtk_imhtml_search_find(): Now wraps around to the top instead of + clearing the search at the end. + * gaim_gtkxfer_dialog_show: Can now take NULL to show (and possibly + create) a default gtkxfer dialog. + + Removed: + * gaim_gtk_sound_{get,set}_mute() (replaced by the /gaim/gtk/sound/mute + preference) + * gaim_escape_html(const char *html) (use g_markup_escape_text(html, -1) + instead) + * gaim_accounts_sync, account changes are now scheduled to be saved + automatically + * gaim_connection_connect + * gaim_connection_disconnect + * gaim_connection_register + * gaim_accounts_auto_login + * gaim_find_conversation, use gaim_find_conversation_with_account instead + * serv_login + * serv_close + * serv_finish_login + * gaim_chat_get_display_name + * gaim_conversation_set_history, gaim_conversation_get_history, and + GaimConversation->history. Use gtk_imhtml_get_markup instead. + * serv_rename_group + * set_gaim_user_dir to gaim_util_set_user_dir + * create_prpl_icon to gaim_gtk_create_prpl_icon + * Window flashing support in the core: gaim_conv_window_flash, and flash UI + operation for conversations. Use signal "received-im-msg" or similar. + * All warning stuff from the core. + * gaim_gtkconv_get_dest_tab_at_xy(), instead use gaim_gtkconv_get_tab_at_xy() + * chat_add_user from GaimConversationUiOps: only chat_add_users is used + * chat_remove_user from GaimConversationUiOps: only chat_remove_users is used + * uc from the GaimBuddy struct + * gaim_sound_get_handle() + * gaim_debug_vargs() + * serv_add_buddy(); use gaim_account_add_buddy() instead + * serv_add_buddies(); use gaim_account_add_buddies() instead + * serv_remove_buddy(); use gaim_account_remove_buddy() instead + * serv_remove_buddies(); use gaim_account_remove_buddies() instead + * serv_change_passwd(); use gaim_account_change_password() instead + * serv_touch_idle(): use gaim_gtk_check_idle() instead + * GaimGtkImPane->a_virgin + * gaim_str_strip_cr(); use gaim_str_strip_char(str, '\r') instead + * gaim_find_buddys_group renamed to gaim_buddy_get_group + * gaim_gtkpounce_menu_build() + * gaim_gtkpounce_dialog_show() + * GaimGtkBuddyList->bpmenu + * GaimConvImFlags and GaimConvChatFlags; use GaimMessageFlags instead + * cb and user_data from the ops in GaimNotifyUiOps: This is now handled + by the notify API in the core. + * GaimConversationUiOps.updated: use the conversation-updated signal + * GAIM_SUBTYPE_CONV_WINDOW: windows are now only represented in the UI, + so GAIM_TYPE_BOXED is used for the signal types + * gaim_gtk_privacy_is_showable(): We do fallback privacy in the core + now, so this would always be TRUE now. + * GaimBlistNodeAction: See GaimMenuAction + * gaim_blist_node_action_new(); use gaim_menu_action_new() instead + * gaim_date() + * gaim_date_full(): See gaim_date_format_full() + * gaim_strftime(): See gaim_utf8_strftime() + * GAIM_MESSAGE_COLORIZE + * user_data from gaim_notify_searchresults_new_rows and from + notify_searchresults in GaimNotifyUiOps. + * gaim_conversation_get_send_history(), and send_history from + GaimConversation + * Removed ui_ops from GaimBuddyList. Use gaim_blist_get_ui_ops() instead + * GaimGtkLogViewer hidden... You weren't using it anyway. + * GaimGtkConversation: dialogs (dialogs.search moved to GaimGtkWindow) + * gaim_show_xfer_dialog: Use gaim_gtk_xfer_dialog_show(NULL) instead. + + Added: + * gaim_prefs_disconnect_by_handle() + * a password field to GaimConnection, which only persists for the + session (when "remember password" is false, account->password is + NEVER set) Use gaim_connection_get_password(GaimConnection *gc) + * gaim_log_common_writer, gaim_log_common_lister, gaim_log_common_sizer, + and gaim_log_get_log_dir to allow log formats that use standard Gaim + log directory to use Gaim's built-in code for these purposes. + * GaimLogCommonLoggerData struct for a basic logger_data struct to be + used with "common" logger functions. + * gaim_gtk_blist_node_is_contact_expanded, returns TRUE if the given + blist node is a buddy inside an expanded contact, or is itself an + expanded contact + * GaimLogSet struct, get_log_sets function to GaimLogLogger, + gaim_log_get_log_sets, gaim_log_set_compare + * gaim_privacy_check(), to check if a given user is allowed to send + messages to the specified account + * gtk_imhtml_clear_formatting() + * gtk_imhtml_delete to clear out part of a imhtml buffer + * gtk_imhtml_get_protocol_name() + * gaim_buddy_icons_get_full_path(), to get the full path of a buddy + icon setting + * CHAT_USERS_ALIAS_COLUMN, CHAT_USERS_COLOR_COLUMN, + CHAT_USERS_BUDDY_COLUMN to the list of columns for the chat + user list + * gaim_account_add_buddy() + * gaim_account_add_buddies() + * gaim_account_remove_buddy() + * gaim_account_remove_buddies() + * gaim_account_change_password() + * gaim_account_supports_offline_message() + * gaim_conversation_close_logs(), to force a conversation's log(s) to + be closed. New logs will be opened as necessary. + * gaim_plugin_get_id() + * gaim_plugin_get_name() + * gaim_plugin_get_version() + * gaim_plugin_get_summary() + * gaim_plugin_get_description() + * gaim_plugin_get_author() + * gaim_plugin_get_homepage() + * gaim_gtkconv_switch_active_conversation(GaimConversation *) + * gaim_str_strip_char() to strip a given character from + a given string + * gaim_util_chrreplace() to replace a given character with a + different character + * gaim_gtk_blist_toggle_visibility() to intelligently toggle the + visiblity of the buddy list + * gaim_gtk_blist_visibility_manager_add() to indicate the addition of a + visibility manager - see the docs for more information + * gaim_gtk_blist_visibility_manager_remove() to indicate the removal of + a visibility manager - see the docs for more information + * gaim_gtk_conversations_find_unseen_list() to get a list of conversations + with an "unseen" state >= to the specified state and other criteria + * gaim_gtk_conversations_fill_menu() fill a menu from list of conversations + * gaim_gtk_create_prpl_icon() + * gaim_gtk_create_prpl_icon_with_status() + * gaim_gtk_pounces_manager_show() + * gaim_gtk_pounces_manager_hide() + * gaim_gtk_pounce_editor_show() + * GAIM_POUNCE_MESSAGE_RECEIVED + * GaimPounceOption + * gaim_pounce_set_options() + * gaim_pounce_set_options() + * GAIM_STOCK_CONNECT, GAIM_STOCK_DISCONNECT + * GAIM_STOCK_PLUGIN + * gaim_account_request_add: Notifies the user that they were added to + someone's buddy list, and offers them the choice + of adding that person to their buddy list. + * gaim_blist_alias_contact() + * gaim_cipher_http_digest_calculate_session_key() + * gaim_cipher_http_digest_calculate_response() + * gaim_notify_searchresults_labeled() + * GAIM_NOTIFY_BUTTON_LABELED, GAIM_NOTIFY_BUTTON_INFO, + GAIM_NOTIFY_BUTTON_IM, GAIM_NOTIFY_BUTTON_JOIN, + GAIM_NOTIFY_BUTTON_INVITE + * stock buttons GAIM_STOCK_IM, GAIM_STOCK_INFO + * gaim_conversation_present() + * GaimConversationUiOps->present(GaimConversation *) + * GaimPlugin.unloadable + * gaim_plugin_is_unloadable() + * GAIM_PLUGIN_PREF_STRING_FORMAT + * gaim_plugin_pref_get_format_type() + * gaim_plugin_pref_set_format_type() + * GaimStringFormatType + * gaim_log_get_handle() + * gaim_log_uninit() + * GAIM_SUBTYPE_LOG + * gaim_marshal_POINTER__POINTER_POINTER + * gaim_utf8_ncr_encode() + * gaim_gtk_log_init() + * gaim_gtk_log_get_handle() + * gaim_gtk_log_uninit() + * gaim_util_fetch_url_request() + * GaimMenuAction + * gaim_menu_action_new() + * gaim_menu_action_free() + * GaimInfoFieldFormatCallback + * gaim_utf8_strftime() + * gaim_date_format_short() + * gaim_date_format_long() + * gaim_date_format_full() + * gaim_time_format() + * gaim_plugin_action_free() + * GaimRequestType: Added GAIM_REQUEST_FOLDER + * GaimRequestUiOps: Added request_folder + * gaim_request_folder() + * gaim_gtk_setup_screenname_autocomplete() + * gaim_gtk_set_cursor() + * gaim_gtk_clear_cursor() + * GAIM_MESSAGE_ACTIVE_ONLY + * gaim_proxy_get_setup() + * GaimNotifySearchResultsCallback: Added user_data. + * gaim_notify_searchresults: Added user_data. + * gaim_network_listen_cancel(): Can be used to cancel a previous + call to gaim_network_listen() or gaim_network_listen_range() + * gaim_proxy_connect_cancel(): Can be used to cancel a pending + gaim_proxy_connect() request + * gaim_dnsquery_destroy(): Can be used to cancel a pending DNS + query. + * gaim_util_fetch_url_cancel(): Can be used to cancel a pending + call to gaim_util_fetch_url() or gaim_util_fetch_url_request(). + * GaimGtkWindow: dialogs.search (previously in GaimGtkConversation) + * gaim_buddy_get_server_alias() + + Signals - Changed: (See the Doxygen docs for details on all signals.) + * Signal propagation now stops after a handler returns a non-NULL value. + This value is now returned. Previously, all registered handlers were + called and the value from the last handler was used. + * "buddy-typing" and "buddy-typing-stopped": replaced the GaimConversation* + with GaimAccount*, const char *name. Also, the signal is now emitted + regardless of whether a conversation exists and regardless of whether + the user is on the buddy list. + * "chat-buddy-joined": added the new_arrival argument + * "chat-invited" handlers can now return a value to control what happens + to the invite (accept, reject, prompt the user). + * "chat-left": Emitted *after* setting chat->left to TRUE. + * "drawing-tooltip": the second argument is now a GString* instead of + a char** + * "drawing-tooltip": added the "full" argument + * "received-im-msg" and "received-chat-msg" to match, both now pass a + conversation pointer and flags + * "receiving-im-msg" and "receving-chat-msg" to match, both now pass a + conversation pointer and a pointer to the flags. + * "writing-im-msg", "wrote-im-msg", "writing-chat-msg", "wrote-chat-msg": + Now emitted from a difference place in the message handling code. + The arguments also changed. + * "displaying-im-msg", "displayed-im-msg", "displaying-chat-msg", + "displayed-chat-msg": Added "who" argument, which changes the order + of the existing arguments. + + Signals - Added: (See the Doxygen docs for details on all signals.) + * "account-disabled" + * "account-status-changed" + * "account-alias-changed" + * "cipher-added" + * "cipher-removed" + * "conversation-dragging" + * "dbus-method-called" + * "dbus-introspect" + * "file-recv-accept" + * "file-recv-start" + * "file-recv-cancel" + * "file-recv-complete" + * "file-recv-request" + * "file-send-accept" + * "file-send-start" + * "file-send-cancel" + * "file-send-complete" + * "buddy-added" + * "buddy-removed" + * "blist-node-aliased" + * "buddy-status-changed" + * "buddy-idle-changed": A buddy's idle status changed. + * "buddy-icon-changed" + * "displaying-userinfo" + * "gtkblist-hiding" + * "gtkblist-unhiding" + * "log-displaying" + * "savedstatus-changed" + * "sendto-extended-menu" + + Signals - Removed: + * "account-away": replaced by account-status-changed + * "account-warned" + * "buddy-away": replaced by buddy-status-changed + * "buddy-back": replaced by buddy-status-changed + * "buddy-idle": replaced by buddy-idle-changed + * "buddy-unidle": replaced by buddy-idle-changed + * "buddy-icon-cached": replaced by buddy-icon-changed + * "conversation-drag-end": replaced by conversation-dragging + * "conversation-switching" + +version 1.5.0 (8/11/2005): + * Added: gaim_xfer_conversation_write + Writes a messages to a conversation window with the use + of the associated file transfer. + +version 1.4.0 (7/7/2005): + * Added: gaim_buddy_icon_uncache() + Deletes a cached buddy icon for a specified buddy + * Added: gaim_buddy_icon_get_type + Attempts to determine the type of a given buddy icon. + * Added: buddy-icon-cached signal + Emitted when a new buddy icon is cached. + +version 1.3.1 (6/9/2005): + * No changes + +version 1.3.0 (5/10/2005): + * Added: gaim_blist_schedule_save() + This should be used instead of gaim_blist_sync when you + want the blist.xml file to be written to disk. There + should not be many occasions when you want to do this, + as the functions in the blist API that modify the buddy + list will normally call it for you. + * Added: OPT_PROTO_NO_NORMALIZE_CONV + Tells the conversation API to not normalize screen names + in conversations. This is used by the Jabber PRPL. + +version 1.2.1 (4/3/2005): + * No changes + +version 1.2.0 (3/17/2005): + * You can use gaim_signal_connect_priority() and + gaim_signal_connect_priority_vargs() to connect to + Gaim signals with a given priority (Will Gorman) + * Added: gaim_conversation_set_features + gaim_conversation_get_features + These allow plugins (notable prpls) to change the + formatting capabilities of an existing conversation. + This comes with a new "features" field in + GaimConversation (Christopher O'Brien) + * Added: GAIM_CONNECTION_NO_IMAGES to GaimConectionFlags + (Christopher O'Brien) + * Added: GAIM_CBFLAGS_TYPING to GaimConvChatBuddyFlags + (Christopher O'Brien) + * Added: gaim_account_request_add which takes the same arguments as + * gaim_account_notify_added but always asks the user if they want to add + * the buddy to the buddy list + * Added: An accompanying request_add GaimAccountUiOp + +version 1.1.4 (2/24/2005): + * No changes + +version 1.1.3 (2/17/2005): + * No changes + +version 1.1.2 (1/20/2005): + * No changes + +version 1.1.1 (12/28/2004): + * No changes + +version 1.1.0 (12/02/2004): + * Added: gaim_utf8_salvage + * Added: binary relocation support in prefix.h + WARNING: If your plugin uses anything inside the + #ifdef ENABLE_BINRELOC from prefix.h, it won't be + loadable on a copy of Gaim compiled without binreloc + support. In particular, watch out for the autoconf-like + macros, and accidently including them through internal.h, + which you probably shouldn't be including anyway. + +version 1.0.0 (09/17/2004): + * Added: get_chat_name to the GaimPluginProtocolInfo struct + * Changed: gaim_blist_update_buddy_presence(), presence changed to + type gboolean + * Changed: the versioning scheme, and all the plugin structs + +version 0.82 (08/26/2004): + Gaim API: + * Removed: gaim_gtk_get_dispstyle(), gaim_gtk_change_text() + * Removed: multi.h + * Renamed: ui.h to gtkdialogs.h + * Renamed: gtkinternal.h to gtkgaim.h + * Renamed: show_info_dialog to gaim_gtkdialogs_info + * Renamed: show_log_dialog to gaim_gtkdialogs_log + * Renamed: show_warn_dialog to gaim_gtkdialogs_warn + * Renamed: show_im_dialog to gaim_gtkdialogs_im + * Renamed: gaim_gtkdialogs_new_im to gaim_gtkdialogs_im_with_user + * Renamed: destroy_all_dialogs to gaim_gtkdialogs_destroy_all + * Renamed: alias_dialog_bud to gaim_gtkdialogs_alias_buddy + * Renamed: alias_dialog_contact to gaim_gtkdialogs_alias_contact + * Renamed: alias_dialog_blist_chat to gaim_gtkdialogs_alias_chat + * Renamed: show_confirm_del to gaim_gtkdialogs_remove_buddy + * Renamed: show_confirm_del_group to gaim_gtkdialogs_remove_group + * Renamed: show_confirm_del_blist_chat to gaim_gtkdialogs_remove_chat + * Renamed: show_confirm_del_contact to gaim_gtkdialogs_remove_contact + * Renamed: show_about to gaim_gtkdialogs_about + * Added: gaim_notify_userinfo() and the associated notify_userinfo() UI op + (someone who knows just why we have this can edit here) + + Buddy List API: + * Changed: gaim_blist_request_add_chat(), added name parameter + * Added: gaim_contact_on_account() + * Added: flags parameter to the GaimBlistNode struct + + Conversation API: + * Added: gaim_gtkconv_button_new() + + Protocol Plugin API: v7 + * Added: chat_info_defaults to the GaimPluginProtocolInfo struct + + Signals: + * Added: conversation-updated for any update to the data associated + with the conversation (topic, icon, adding to buddy list, etc.) + + Conversation API: + * Changed: gaim_conv_chat_add_user() (added new_arrival parameter) + +version 0.81 (08/05/2004): + Commands API: + * Most functions now have a void *data argument. + + Blist API: + * Added: gaim_buddy_get_contact_alias + * Renamed: gaim_get_buddy_alias to gaim_buddy_get_alias + * Renamed: gaim_get_buddy_alias_only to gaim_buddy_get_alias_only + + Conversation API: + * Changed: gaim_conv_chat_add_user(), added flags parameter + * Changed: gaim_conv_chat_add_users(), added GList of flags parameter + * Changed: gaim_conv_chat_get_users(), now returns a GList of + GaimConvChatBuddy's + * Changed: gaim_conv_chat_set_users() now expects a GList of + GaimConvChatBuddy's + * Added: gaim_conv_chat_set_user_flags() + * Added: gaim_conv_chat_get_user_flags() + * Added: gaim_conv_chat_find_user() + * Added: gaim_conv_chat_cb_new() + * Added: gaim_conv_chat_cb_find() + * Added: gaim_conv_chat_cb_destroy() + * Added: gaim_conv_chat_cb_get_name() + + Conversation UI ops: + * Added: chat_update_user() + + Signals: + * Changed: chat-buddy-joining & chat-buddy-joined now include the user's flags + * Changed: chat-buddy-joining & chat-buddy-leaving are now booleans, return + TRUE if you don't want the join/leave to be displayed in the UI. + * Added: chat-buddy-flags for when user's flags change + gaim_marshal_VOID__POINTER_POINTER_POINTER_UINT_UINT (required for the new + chat-buddy-flags signal) + * Added: account-modified for when account settings have been changed. + +version 0.80 (07/15/2004): + Gaim API: + * Removed: PRPL numbers : gaim_account_set_protocol(), + gaim_account_get_protocol(), gaim_accounts_find_with_prpl_num, + gaim_prpl_num_to_id(), gaim_prpl_id_to_num(), GaimProtocol + + Protocol Plugin API: v6 + * Added: can_receive_file & send_file to the GaimPluginProtocolInfo struct + + Signals: + * Changed "chat-invited" to also include the components hash table so + plugins can use serv_join_chat when the signal is emitted. + * Added "chat-topic-changed" signal plugins know when a topic is changed. + +version 0.79 (06/24/2004): + Gaim API: + * gaim_url_parse() now takes two additional parameters, which are used + for returning the username and password from the URL, if they exist. + * Added: has_focus UI op to GaimConversationUiOps and + GaimConvWindowUiOps. + * Added: gaim_conversation_has_focus() and gaim_conv_window_has_focus(). + * Removed: gaim_blist_save() + + Protocol Plugin API: v5 + * Changed: add_buddy, add_buddies, remove_buddy, remove_buddies, + rename_group and remove_group to take GaimBuddy's and + GaimGroup's consistently. + * Removed: OPT_PROTO_BUDDY_ICON (replaced by icon_spec) + * Added: icon_spec to the GaimPluginProtocolInfo struct + +version 0.78 (05/30/2004): + Plugin API: v4 + * Added: actions - for plugins to add to the new Plugin Actions menu + + Loader Plugin API: v2 (no changes) + + Protocol Plugin API: v4 + * Removed: set_dir, get_dir and dir_search (not used, AIM-centric) + * Removed: actions (replaced by generic plugin actions) + + Perl Plugin API: v2 (no changes) + TCL Plugin API: (no changes) + + Signals: + * Added: "blist-node-extended-menu" for extending Buddy, Chat and + Group right-click menus + * Added: "drawing-tooltip" for plugins to allow plugins to change text + appearing in tooltips + * Added: "gtkblist-created" + * Added: "receiving-im-msg" and "receiving-chat-msg" (these behave + exactly like received-*-msg used to) + * Added: "buddy-idle-updated" signal, for when the idle time changes. + * Changed: "received-im-msg" and "received-chat-msg" no longer pass + pointers to who, message and flags, and are now void. + * Removed: "drawing-menu" - it was UI sepecific and + "blist-node-extended-menu" is superior + +version 0.77 (04/22/2004): + Loader & Protocol Plugins independantly versioned + Plugin loading now checks versioning on plugins (Standard, Loader & + Protocol) + new GAIM_{PLUGIN,PRPL,LOADER}_API_VERSION constants + + Plugin API: v3 + * Added: prefs_info for UI independant plugin prefs + + Loader Plugin API: v2 + * Added: api_version at top of GaimPluginLoaderInfo struct + + Protocol Plugin API: v2 + * Added: api_version at top of GaimPluginProtocolInfo struct + * Added: chat_menu for protocol specific extensions to the chat menu + * Removed: get_away "Nada used it. Pink elephants on parade." + * Removed: protocol_prefs (replaced by generic plugin prefs_info) + + Perl Plugin API: v2 (no changes) + TCL API: (no changes) + + Signals: + * Added: "conversation-drag-ended" + +version 0.76 (04/01/2004): + Plugin API: v2 + Perl Plugin API: v2 + Loader Plugin API: (not versioned) + Protocol Plugin API: (not versioned) + * Added: protocol_prefs for protocol specific preferences + * Added: reject_chat so protocols can act on chat invite rejection + + TCL Plugin API: (not versioned) + * Changes to plugin registration to show descriptions + Deleted: trunk/doc/ChangeLog.API =================================================================== --- trunk/doc/ChangeLog.API 2006-09-10 20:03:24 UTC (rev 17221) +++ trunk/doc/ChangeLog.API 2006-09-10 20:04:20 UTC (rev 17222) @@ -1,638 +0,0 @@ -Gaim: The Pimpin' Penguin IM Client that's good for the soul! - -version 2.0.0: - Changed: - * All the status stuff. Yay! - * gaim_prefs_connect_callback(), added handle parameter - * gtk_imhtml_toolbar now descends from GtkHBox making it easier to add your - own widgets to it - * gaim_find_conversation_with_account, added a "type" parameter - * gaim_gtk_prefs_labeled_spin_button, the "key" parameter is now a - const char* instead of just a char* - * gaim_gtk_prefs_labeled_entry, the "key" parameter is now a const char* - instead of just a char* - * the add_buddy perl sub. The sub now takes the account as the first - argument, and buddy and group as the second and third. It also adds - the buddy to the server-side buddy list of the given account. - * gaim_connection_new, gaim_account_connect and gaim_account_register no - longer return a GaimConnection - * keep_alive in GaimConnection is renamed to keepalive - * gaim_mkstemp, added a second argument, a boolean, of whether or not the - file is binary - * gaim_log_logger_new, rewritten - * gaim_conv_window_remove_conversation()'s last argument to be a - GaimConversation. - * A new blocked icon: pixmaps/status/default/blocked.png - * In pixmaps/status/default: extendedaway.png renamed to extended_away.png - * In pixmaps/status/default: na.png renamed to unavailable.png - * gtk_imhtml_toggle_bold(): No longer returns a value - * gtk_imhtml_toggle_italic(): No longer returns a value - * gtk_imhtml_toggle_underline(): No longer returns a value - * gtk_imhtml_toggle_strike(): No longer returns a value - * gtk_imhtml_scroll_to_end(): Added the smooth paramter - * gaim_log_new(), added conv parameter - * gaim_buddy_icon_new(), leaves a reference which the caller owns. Use - gaim_buddy_icon_unref() immediately if you don't want a reference (the - old behavior). - * GAIM_CONV_UNKNOWN to GAIM_CONV_TYPE_UNKNOWN. - * GAIM_CONV_IM to GAIM_CONV_TYPE_IM. - * GAIM_CONV_CHAT to GAIM_CONV_TYPE_CHAT. - * GAIM_CONV_MISC to GAIM_CONV_TYPE_MISC. - * GAIM_CONV_ANY to GAIM_CONV_TYPE_ANY. - * GaimConversationUiOps.write_conv, Replaced const char *who with - const char *name, const char *alias - * gaim_conv_chat_add_users(), added extra_msgs and new_arrivals (pass NULL - and FALSE respectively, to get the same behavior as before) - * chat_add_users in GaimConversationUiOps, added cbuddies and - new_arrivals and removed buddies. - * chat_rename_user in GaimConversationUiOps, added new_alias - * gaim_conv_chat_cb_new(), added alias. (pass NULL to get the same - behavior as before). - * GaimConversation.log became GList * GaimConversation.logs, so that a - conversation can have multiple logs at once - * gaim_conv_chat_add_user, added extra_msgs - * gaim_notify_userinfo, removed primary and secondary parameters - * GaimNotifyUiOps.notify_userinfo: removed title, primary, and - secondary parameters - * Idle timers are now added and removed in gtkidle.c in response - to the signed-on and signed-off signals - * GaimXfer->ops.read, GaimXfer->ops.write, gaim_xfer_set_read_fnc(), - gaim_xfer_set_write_fnc(), gaim_xfer_read(), gaim_xfer_write(): - Changed ssize_t to gssize - * serv_got_im, serv_got_chat_in, serv_send_im and serv_chat_send all use - GaimMessageFlags instead of GaimConvImFlags / GaimConvChatFlags - * All core<->prpl message passing now uses html. This was previously true - for receiving messages, it's now also true for sending them. prpls that - don't support html need to gaim_unescape_html() the message. - * Notify API: GCallback -> GaimNotifyCloseCallback, - void *user_data -> gpointer user_data - * gaim_notify_searchresults_get_rows_count, - gaim_notify_searchresults_get_columns_count: return type now guint - * gaim_account_notify_added: No longer checks if there is a - GaimBuddy for the added user, that's left up to the prpls. See the - documentation for this function and gaim_account_request_add. - * gaim_accounts_reorder: new_index is now a gint instead of a size_t - * displaying-message signals: displaying-[im|chat]-msg and - displayed-[im|chat]-msg signals are emitted for all messages - (ie, for received messages, sent messages, system messages, error - messages etc.), and the signals now have - gaim_gtk_conversations_get_handle() for their handle. - * GAIM_NOTIFY_BUTTON_ADD_BUDDY to GAIM_NOTIFY_BUTTON_ADD - * conversation-switched: This signal has been moved from conversation to - the UI and the signal-handlers only receive the - conversation that has been switched to. - * GaimPluginProtocolInfo: Added offline_message - * GaimPluginProtocolInfo: Added whiteboard_prpl_ops - * GaimPluginProtocolInfo: Added media_prpl_ops - * GaimPluginProtocolInfo: Added "str" argument to tooltip_text, changed - the return type to void - * GaimPluginProtocolInfo: Added "full" argument to tooltip_text - * gaim_pounce_new(): Added option argument for pounce options - * gaim_network_listen() and gaim_network_listen_range(): Added - socket_type parameter to allow creation of UDP listening. Modified - to be asynchronous with a callback to allow for UPnP operation. - Returns a data structure that can be used to cancel the listen - attempt using gaim_network_listen_cancel() - * GaimPrefCallback: val is now a gconstpointer instead of a gpointer - * gtk_imhtml_get_current_format(): the arguments are now set to TRUE or - FALSE. Previously they were set to TRUE or left alone. Also, you - may now pass NULL if you're not interested in a specific formatting. - * Smiley Themes: Backslashes must be backslash-escaped. - * Plugins: Depedencies are now honored when unloading plugins. - * gaim_markup_extract_info_field(): Added format_cb parameter. - * gaim_str_to_time(): Added support for parsing the MM/DD/YYYY format. - * gaim_plugin_action_new(): label is now const char * - * gaim_plugin_pref_new_with_name(): name is now const char * - * gaim_plugin_pref_new_with_label(): label is now const char * - * gaim_plugin_pref_new_with_name_and_label(): name and label are - now const char * - * gaim_plugin_pref_set_name(): name is now const char * - * gaim_plugin_pref_get_name(): return type is now const char * - * gaim_plugin_pref_set_label(): label is now const char * - * gaim_plugin_pref_get_label(): return type is now const char * - * gaim_plugin_pref_add_choice(): label is now const char * - * struct proto_chat_entry: label is now const char * - * struct proto_chat_entry: identifier is now const char * - * All network activity has been updated to use non-blocking sockets. - This means that plugins must be updated to expect such a socket from - gaim_proxy_connect() and gaim_network_listen*(). - * gaim_proxy_connect(): changed to return NULL on error and a pointer - to a GaimProxyConnectInfo object which can be used to cancel - connection attempts using gaim_proxy_connect_cancel(). - * gaim_gethostbyname_async(): Renamed to gaim_dnsquery_a() and - changed to return a pointer to a data structure that can be - used to cancel the pending DNS query using gaim_dnsquery_destroy() - * gaim_url_fetch(): Renamed to gaim_util_fetch_url() and changed - to return a pointer to a data structer that can be used to cancel - the pending HTTP request using gaim_util_fetch_url_cancel(). - * gaim_gtk_create_imhtml(): Added sw_ret() parameter - * gaim_account_get_log(): Added create parameter - * GAIM_CMD_P_VERYHIGH is now GAIM_CMD_P_VERY_HIGH - * gtk_imhtml_search_find(): Now wraps around to the top instead of - clearing the search at the end. - * gaim_gtkxfer_dialog_show: Can now take NULL to show (and possibly - create) a default gtkxfer dialog. - - Removed: - * gaim_gtk_sound_{get,set}_mute() (replaced by the /gaim/gtk/sound/mute - preference) - * gaim_escape_html(const char *html) (use g_markup_escape_text(html, -1) - instead) - * gaim_accounts_sync, account changes are now scheduled to be saved - automatically - * gaim_connection_connect - * gaim_connection_disconnect - * gaim_connection_register - * gaim_accounts_auto_login - * gaim_find_conversation, use gaim_find_conversation_with_account instead - * serv_login - * serv_close - * serv_finish_login - * gaim_chat_get_display_name - * gaim_conversation_set_history, gaim_conversation_get_history, and - GaimConversation->history. Use gtk_imhtml_get_markup instead. - * serv_rename_group - * set_gaim_user_dir to gaim_util_set_user_dir - * create_prpl_icon to gaim_gtk_create_prpl_icon - * Window flashing support in the core: gaim_conv_window_flash, and flash UI - operation for conversations. Use signal "received-im-msg" or similar. - * All warning stuff from the core. - * gaim_gtkconv_get_dest_tab_at_xy(), instead use gaim_gtkconv_get_tab_at_xy() - * chat_add_user from GaimConversationUiOps: only chat_add_users is used - * chat_remove_user from GaimConversationUiOps: only chat_remove_users is used - * uc from the GaimBuddy struct - * gaim_sound_get_handle() - * gaim_debug_vargs() - * serv_add_buddy(); use gaim_account_add_buddy() instead - * serv_add_buddies(); use gaim_account_add_buddies() instead - * serv_remove_buddy(); use gaim_account_remove_buddy() instead - * serv_remove_buddies(); use gaim_account_remove_buddies() instead - * serv_change_passwd(); use gaim_account_change_password() instead - * serv_touch_idle(): use gaim_gtk_check_idle() instead - * GaimGtkImPane->a_virgin - * gaim_str_strip_cr(); use gaim_str_strip_char(str, '\r') instead - * gaim_find_buddys_group renamed to gaim_buddy_get_group - * gaim_gtkpounce_menu_build() - * gaim_gtkpounce_dialog_show() - * GaimGtkBuddyList->bpmenu - * GaimConvImFlags and GaimConvChatFlags; use GaimMessageFlags instead - * cb and user_data from the ops in GaimNotifyUiOps: This is now handled - by the notify API in the core. - * GaimConversationUiOps.updated: use the conversation-updated signal - * GAIM_SUBTYPE_CONV_WINDOW: windows are now only represented in the UI, - so GAIM_TYPE_BOXED is used for the signal types - * gaim_gtk_privacy_is_showable(): We do fallback privacy in the core - now, so this would always be TRUE now. - * GaimBlistNodeAction: See GaimMenuAction - * gaim_blist_node_action_new(); use gaim_menu_action_new() instead - * gaim_date() - * gaim_date_full(): See gaim_date_format_full() - * gaim_strftime(): See gaim_utf8_strftime() - * GAIM_MESSAGE_COLORIZE - * user_data from gaim_notify_searchresults_new_rows and from - notify_searchresults in GaimNotifyUiOps. - * gaim_conversation_get_send_history(), and send_history from - GaimConversation - * Removed ui_ops from GaimBuddyList. Use gaim_blist_get_ui_ops() instead - * GaimGtkLogViewer hidden... You weren't using it anyway. - * GaimGtkConversation: dialogs (dialogs.search moved to GaimGtkWindow) - * gaim_show_xfer_dialog: Use gaim_gtk_xfer_dialog_show(NULL) instead. - - Added: - * gaim_prefs_disconnect_by_handle() - * a password field to GaimConnection, which only persists for the - session (when "remember password" is false, account->password is - NEVER set) Use gaim_connection_get_password(GaimConnection *gc) - * gaim_log_common_writer, gaim_log_common_lister, gaim_log_common_sizer, - and gaim_log_get_log_dir to allow log formats that use standard Gaim - log directory to use Gaim's built-in code for these purposes. - * GaimLogCommonLoggerData struct for a basic logger_data struct to be - used with "common" logger functions. - * gaim_gtk_blist_node_is_contact_expanded, returns TRUE if the given - blist node is a buddy inside an expanded contact, or is itself an - expanded contact - * GaimLogSet struct, get_log_sets function to GaimLogLogger, - gaim_log_get_log_sets, gaim_log_set_compare - * gaim_privacy_check(), to check if a given user is allowed to send - messages to the specified account - * gtk_imhtml_clear_formatting() - * gtk_imhtml_delete to clear out part of a imhtml buffer - * gtk_imhtml_get_protocol_name() - * gaim_buddy_icons_get_full_path(), to get the full path of a buddy - icon setting - * CHAT_USERS_ALIAS_COLUMN, CHAT_USERS_COLOR_COLUMN, - CHAT_USERS_BUDDY_COLUMN to the list of columns for the chat - user list - * gaim_account_add_buddy() - * gaim_account_add_buddies() - * gaim_account_remove_buddy() - * gaim_account_remove_buddies() - * gaim_account_change_password() - * gaim_account_supports_offline_message() - * gaim_conversation_close_logs(), to force a conversation's log(s) to - be closed. New logs will be opened as necessary. - * gaim_plugin_get_id() - * gaim_plugin_get_name() - * gaim_plugin_get_version() - * gaim_plugin_get_summary() - * gaim_plugin_get_description() - * gaim_plugin_get_author() - * gaim_plugin_get_homepage() - * gaim_gtkconv_switch_active_conversation(GaimConversation *) - * gaim_str_strip_char() to strip a given character from - a given string - * gaim_util_chrreplace() to replace a given character with a - different character - * gaim_gtk_blist_toggle_visibility() to intelligently toggle the - visiblity of the buddy list - * gaim_gtk_blist_visibility_manager_add() to indicate the addition of a - visibility manager - see the docs for more information - * gaim_gtk_blist_visibility_manager_remove() to indicate the removal of - a visibility manager - see the docs for more information - * gaim_gtk_conversations_find_unseen_list() to get a list of conversations - with an "unseen" state >= to the specified state and other criteria - * gaim_gtk_conversations_fill_menu() fill a menu from list of conversations - * gaim_gtk_create_prpl_icon() - * gaim_gtk_create_prpl_icon_with_status() - * gaim_gtk_pounces_manager_show() - * gaim_gtk_pounces_manager_hide() - * gaim_gtk_pounce_editor_show() - * GAIM_POUNCE_MESSAGE_RECEIVED - * GaimPounceOption - * gaim_pounce_set_options() - * gaim_pounce_set_options() - * GAIM_STOCK_CONNECT, GAIM_STOCK_DISCONNECT - * GAIM_STOCK_PLUGIN - * gaim_account_request_add: Notifies the user that they were added to - someone's buddy list, and offers them the choice - of adding that person to their buddy list. - * gaim_blist_alias_contact() - * gaim_cipher_http_digest_calculate_session_key() - * gaim_cipher_http_digest_calculate_response() - * gaim_notify_searchresults_labeled() - * GAIM_NOTIFY_BUTTON_LABELED, GAIM_NOTIFY_BUTTON_INFO, - GAIM_NOTIFY_BUTTON_IM, GAIM_NOTIFY_BUTTON_JOIN, - GAIM_NOTIFY_BUTTON_INVITE - * stock buttons GAIM_STOCK_IM, GAIM_STOCK_INFO - * gaim_conversation_present() - * GaimConversationUiOps->present(GaimConversation *) - * GaimPlugin.unloadable - * gaim_plugin_is_unloadable() - * GAIM_PLUGIN_PREF_STRING_FORMAT - * gaim_plugin_pref_get_format_type() - * gaim_plugin_pref_set_format_type() - * GaimStringFormatType - * gaim_log_get_handle() - * gaim_log_uninit() - * GAIM_SUBTYPE_LOG - * gaim_marshal_POINTER__POINTER_POINTER - * gaim_utf8_ncr_encode() - * gaim_gtk_log_init() - * gaim_gtk_log_get_handle() - * gaim_gtk_log_uninit() - * gaim_util_fetch_url_request() - * GaimMenuAction - * gaim_menu_action_new() - * gaim_menu_action_free() - * GaimInfoFieldFormatCallback - * gaim_utf8_strftime() - * gaim_date_format_short() - * gaim_date_format_long() - * gaim_date_format_full() - * gaim_time_format() - * gaim_plugin_action_free() - * GaimRequestType: Added GAIM_REQUEST_FOLDER - * GaimRequestUiOps: Added request_folder - * gaim_request_folder() - * gaim_gtk_setup_screenname_autocomplete() - * gaim_gtk_set_cursor() - * gaim_gtk_clear_cursor() - * GAIM_MESSAGE_ACTIVE_ONLY - * gaim_proxy_get_setup() - * GaimNotifySearchResultsCallback: Added user_data. - * gaim_notify_searchresults: Added user_data. - * gaim_network_listen_cancel(): Can be used to cancel a previous - call to gaim_network_listen() or gaim_network_listen_range() - * gaim_proxy_connect_cancel(): Can be used to cancel a pending - gaim_proxy_connect() request - * gaim_dnsquery_destroy(): Can be used to cancel a pending DNS - query. - * gaim_util_fetch_url_cancel(): Can be used to cancel a pending - call to gaim_util_fetch_url() or gaim_util_fetch_url_request(). - * GaimGtkWindow: dialogs.search (previously in GaimGtkConversation) - * gaim_buddy_get_server_alias() - - Signals - Changed: (See the Doxygen docs for details on all signals.) - * Signal propagation now stops after a handler returns a non-NULL value. - This value is now returned. Previously, all registered handlers were - called and the value from the last handler was used. - * "buddy-typing" and "buddy-typing-stopped": replaced the GaimConversation* - with GaimAccount*, const char *name. Also, the signal is now emitted - regardless of whether a conversation exists and regardless of whether - the user is on the buddy list. - * "chat-buddy-joined": added the new_arrival argument - * "chat-invited" handlers can now return a value to control what happens - to the invite (accept, reject, prompt the user). - * "chat-left": Emitted *after* setting chat->left to TRUE. - * "drawing-tooltip": the second argument is now a GString* instead of - a char** - * "drawing-tooltip": added the "full" argument - * "received-im-msg" and "received-chat-msg" to match, both now pass a - conversation pointer and flags - * "receiving-im-msg" and "receving-chat-msg" to match, both now pass a - conversation pointer and a pointer to the flags. - * "writing-im-msg", "wrote-im-msg", "writing-chat-msg", "wrote-chat-msg": - Now emitted from a difference place in the message handling code. - The arguments also changed. - * "displaying-im-msg", "displayed-im-msg", "displaying-chat-msg", - "displayed-chat-msg": Added "who" argument, which changes the order - of the existing arguments. - - Signals - Added: (See the Doxygen docs for details on all signals.) - * "account-disabled" - * "account-status-changed" - * "account-alias-changed" - * "cipher-added" - * "cipher-removed" - * "conversation-dragging" - * "dbus-method-called" - * "dbus-introspect" - * "file-recv-accept" - * "file-recv-start" - * "file-recv-cancel" - * "file-recv-complete" - * "file-recv-request" - * "file-send-accept" - * "file-send-start" - * "file-send-cancel" - * "file-send-complete" - * "buddy-added" - * "buddy-removed" - * "blist-node-aliased" - * "buddy-status-changed" - * "buddy-idle-changed": A buddy's idle status changed. - * "buddy-icon-changed" - * "displaying-userinfo" - * "gtkblist-hiding" - * "gtkblist-unhiding" - * "log-displaying" - * "savedstatus-changed" - * "sendto-extended-menu" - - Signals - Removed: - * "account-away": replaced by account-status-changed - * "account-warned" - * "buddy-away": replaced by buddy-status-changed - * "buddy-back": replaced by buddy-status-changed - * "buddy-idle": replaced by buddy-idle-changed - * "buddy-unidle": replaced by buddy-idle-changed - * "buddy-icon-cached": replaced by buddy-icon-changed - * "conversation-drag-end": replaced by conversation-dragging - * "conversation-switching" - -version 1.5.0 (8/11/2005): - * Added: gaim_xfer_conversation_write - Writes a messages to a conversation window with the use - of the associated file transfer. - -version 1.4.0 (7/7/2005): - * Added: gaim_buddy_icon_uncache() - Deletes a cached buddy icon for a specified buddy - * Added: gaim_buddy_icon_get_type - Attempts to determine the type of a given buddy icon. - * Added: buddy-icon-cached signal - Emitted when a new buddy icon is cached. - -version 1.3.1 (6/9/2005): - * No changes - -version 1.3.0 (5/10/2005): - * Added: gaim_blist_schedule_save() - This should be used instead of gaim_blist_sync when you - want the blist.xml file to be written to disk. There - should not be many occasions when you want to do this, - as the functions in the blist API that modify the buddy - list will normally call it for you. - * Added: OPT_PROTO_NO_NORMALIZE_CONV - Tells the conversation API to not normalize screen names - in conversations. This is used by the Jabber PRPL. - -version 1.2.1 (4/3/2005): - * No changes - -version 1.2.0 (3/17/2005): - * You can use gaim_signal_connect_priority() and - gaim_signal_connect_priority_vargs() to connect to - Gaim signals with a given priority (Will Gorman) - * Added: gaim_conversation_set_features - gaim_conversation_get_features - These allow plugins (notable prpls) to change the - formatting capabilities of an existing conversation. - This comes with a new "features" field in - GaimConversation (Christopher O'Brien) - * Added: GAIM_CONNECTION_NO_IMAGES to GaimConectionFlags - (Christopher O'Brien) - * Added: GAIM_CBFLAGS_TYPING to GaimConvChatBuddyFlags - (Christopher O'Brien) - * Added: gaim_account_request_add which takes the same arguments as - * gaim_account_notify_added but always asks the user if they want to add - * the buddy to the buddy list - * Added: An accompanying request_add GaimAccountUiOp - -version 1.1.4 (2/24/2005): - * No changes - -version 1.1.3 (2/17/2005): - * No changes - -version 1.1.2 (1/20/2005): - * No changes - -version 1.1.1 (12/28/2004): - * No changes - -version 1.1.0 (12/02/2004): - * Added: gaim_utf8_salvage - * Added: binary relocation support in prefix.h - WARNING: If your plugin uses anything inside the - #ifdef ENABLE_BINRELOC from prefix.h, it won't be - loadable on a copy of Gaim compiled without binreloc - support. In particular, watch out for the autoconf-like - macros, and accidently including them through internal.h, - which you probably shouldn't be including anyway. - -version 1.0.0 (09/17/2004): - * Added: get_chat_name to the GaimPluginProtocolInfo struct - * Changed: gaim_blist_update_buddy_presence(), presence changed to - type gboolean - * Changed: the versioning scheme, and all the plugin structs - -version 0.82 (08/26/2004): - Gaim API: - * Removed: gaim_gtk_get_dispstyle(), gaim_gtk_change_text() - * Removed: multi.h - * Renamed: ui.h to gtkdialogs.h - * Renamed: gtkinternal.h to gtkgaim.h - * Renamed: show_info_dialog to gaim_gtkdialogs_info - * Renamed: show_log_dialog to gaim_gtkdialogs_log - * Renamed: show_warn_dialog to gaim_gtkdialogs_warn - * Renamed: show_im_dialog to gaim_gtkdialogs_im - * Renamed: gaim_gtkdialogs_new_im to gaim_gtkdialogs_im_with_user - * Renamed: destroy_all_dialogs to gaim_gtkdialogs_destroy_all - * Renamed: alias_dialog_bud to gaim_gtkdialogs_alias_buddy - * Renamed: alias_dialog_contact to gaim_gtkdialogs_alias_contact - * Renamed: alias_dialog_blist_chat to gaim_gtkdialogs_alias_chat - * Renamed: show_confirm_del to gaim_gtkdialogs_remove_buddy - * Renamed: show_confirm_del_group to gaim_gtkdialogs_remove_group - * Renamed: show_confirm_del_blist_chat to gaim_gtkdialogs_remove_chat - * Renamed: show_confirm_del_contact to gaim_gtkdialogs_remove_contact - * Renamed: show_about to gaim_gtkdialogs_about - * Added: gaim_notify_userinfo() and the associated notify_userinfo() UI op - (someone who knows just why we have this can edit here) - - Buddy List API: - * Changed: gaim_blist_request_add_chat(), added name parameter - * Added: gaim_contact_on_account() - * Added: flags parameter to the GaimBlistNode struct - - Conversation API: - * Added: gaim_gtkconv_button_new() - - Protocol Plugin API: v7 - * Added: chat_info_defaults to the GaimPluginProtocolInfo struct - - Signals: - * Added: conversation-updated for any update to the data associated - with the conversation (topic, icon, adding to buddy list, etc.) - - Conversation API: - * Changed: gaim_conv_chat_add_user() (added new_arrival parameter) - -version 0.81 (08/05/2004): - Commands API: - * Most functions now have a void *data argument. - - Blist API: - * Added: gaim_buddy_get_contact_alias - * Renamed: gaim_get_buddy_alias to gaim_buddy_get_alias - * Renamed: gaim_get_buddy_alias_only to gaim_buddy_get_alias_only - - Conversation API: - * Changed: gaim_conv_chat_add_user(), added flags parameter - * Changed: gaim_conv_chat_add_users(), added GList of flags parameter - * Changed: gaim_conv_chat_get_users(), now returns a GList of - GaimConvChatBuddy's - * Changed: gaim_conv_chat_set_users() now expects a GList of - GaimConvChatBuddy's - * Added: gaim_conv_chat_set_user_flags() - * Added: gaim_conv_chat_get_user_flags() - * Added: gaim_conv_chat_find_user() - * Added: gaim_conv_chat_cb_new() - * Added: gaim_conv_chat_cb_find() - * Added: gaim_conv_chat_cb_destroy() - * Added: gaim_conv_chat_cb_get_name() - - Conversation UI ops: - * Added: chat_update_user() - - Signals: - * Changed: chat-buddy-joining & chat-buddy-joined now include the user's flags - * Changed: chat-buddy-joining & chat-buddy-leaving are now booleans, return - TRUE if you don't want the join/leave to be displayed in the UI. - * Added: chat-buddy-flags for when user's flags change - gaim_marshal_VOID__POINTER_POINTER_POINTER_UINT_UINT (required for the new - chat-buddy-flags signal) - * Added: account-modified for when account settings have been changed. - -version 0.80 (07/15/2004): - Gaim API: - * Removed: PRPL numbers : gaim_account_set_protocol(), - gaim_account_get_protocol(), gaim_accounts_find_with_prpl_num, - gaim_prpl_num_to_id(), gaim_prpl_id_to_num(), GaimProtocol - - Protocol Plugin API: v6 - * Added: can_receive_file & send_file to the GaimPluginProtocolInfo struct - - Signals: - * Changed "chat-invited" to also include the components hash table so - plugins can use serv_join_chat when the signal is emitted. - * Added "chat-topic-changed" signal plugins know when a topic is changed. - -version 0.79 (06/24/2004): - Gaim API: - * gaim_url_parse() now takes two additional parameters, which are used - for returning the username and password from the URL, if they exist. - * Added: has_focus UI op to GaimConversationUiOps and - GaimConvWindowUiOps. - * Added: gaim_conversation_has_focus() and gaim_conv_window_has_focus(). - * Removed: gaim_blist_save() - - Protocol Plugin API: v5 - * Changed: add_buddy, add_buddies, remove_buddy, remove_buddies, - rename_group and remove_group to take GaimBuddy's and - GaimGroup's consistently. - * Removed: OPT_PROTO_BUDDY_ICON (replaced by icon_spec) - * Added: icon_spec to the GaimPluginProtocolInfo struct - -version 0.78 (05/30/2004): - Plugin API: v4 - * Added: actions - for plugins to add to the new Plugin Actions menu - - Loader Plugin API: v2 (no changes) - - Protocol Plugin API: v4 - * Removed: set_dir, get_dir and dir_search (not used, AIM-centric) - * Removed: actions (replaced by generic plugin actions) - - Perl Plugin API: v2 (no changes) - TCL Plugin API: (no changes) - - Signals: - * Added: "blist-node-extended-menu" for extending Buddy, Chat and - Group right-click menus - * Added: "drawing-tooltip" for plugins to allow plugins to change text - appearing in tooltips - * Added: "gtkblist-created" - * Added: "receiving-im-msg" and "receiving-chat-msg" (these behave - exactly like received-*-msg used to) - * Added: "buddy-idle-updated" signal, for when the idle time changes. - * Changed: "received-im-msg" and "received-chat-msg" no longer pass - pointers to who, message and flags, and are now void. - * Removed: "drawing-menu" - it was UI sepecific and - "blist-node-extended-menu" is superior - -version 0.77 (04/22/2004): - Loader & Protocol Plugins independantly versioned - Plugin loading now checks versioning on plugins (Standard, Loader & - Protocol) - new GAIM_{PLUGIN,PRPL,LOADER}_API_VERSION constants - - Plugin API: v3 - * Added: prefs_info for UI independant plugin prefs - - Loader Plugin API: v2 - * Added: api_version at top of GaimPluginLoaderInfo struct - - Protocol Plugin API: v2 - * Added: api_version at top of GaimPluginProtocolInfo struct - * Added: chat_menu for protocol specific extensions to the chat menu - * Removed: get_away "Nada used it. Pink elephants on parade." - * Removed: protocol_prefs (replaced by generic plugin prefs_info) - - Perl Plugin API: v2 (no changes) - TCL API: (no changes) - - Signals: - * Added: "conversation-drag-ended" - -version 0.76 (04/01/2004): - Plugin API: v2 - Perl Plugin API: v2 - Loader Plugin API: (not versioned) - Protocol Plugin API: (not versioned) - * Added: protocol_prefs for protocol specific preferences - * Added: reject_chat so protocols can act on chat invite rejection - - TCL Plugin API: (not versioned) - * Changes to plugin registration to show descriptions - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-10 20:03:28
|
Revision: 17221 http://svn.sourceforge.net/gaim/?rev=17221&view=rev Author: thekingant Date: 2006-09-10 13:03:24 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Change CVS to SVN in the C plugin howto Modified Paths: -------------- trunk/doc/C-HOWTO.dox Modified: trunk/doc/C-HOWTO.dox =================================================================== --- trunk/doc/C-HOWTO.dox 2006-09-10 19:39:08 UTC (rev 17220) +++ trunk/doc/C-HOWTO.dox 2006-09-10 20:03:24 UTC (rev 17221) @@ -8,12 +8,12 @@ @section getting_started Getting Started To develop a plugin you need to have the Gaim source code. It is generally a good idea to compile against the same version of Gaim that you are running. - You may also want to develop against CVS. While we do NOT recomend this for - normal users, it makes sense for plugin developers to use CVS to ensure their + You may also want to develop against SVN. While we do NOT recomend this for + normal users, it makes sense for plugin developers to use SVN to ensure their plugins works with the most recent changes in Gaim. A lot tends to change between versions and it's much easier to fix your plugin as things - change rather than waiting until the release. But please do not abuse CVS. - Gaim puts a lot of strain on Source Forge's servers, and we do not need to + change rather than waiting until the release. But please do not abuse SVN. + Gaim puts a lot of strain on SourceForge's servers, and we do not need to add anymore to it. If you choose not to head my warnings and develop against a version of Gaim This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-10 19:39:12
|
Revision: 17220 http://svn.sourceforge.net/gaim/?rev=17220&view=rev Author: thekingant Date: 2006-09-10 12:39:08 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Merge the contents of CREDITS into the AUTHORS file Modified Paths: -------------- trunk/AUTHORS Removed Paths: ------------- trunk/doc/CREDITS Modified: trunk/AUTHORS =================================================================== --- trunk/AUTHORS 2006-09-10 19:28:41 UTC (rev 17219) +++ trunk/AUTHORS 2006-09-10 19:39:08 UTC (rev 17220) @@ -1,9 +1,11 @@ gaim - the Pimpin' Penguin IM Clone that's Good for the Soul ============================================================ -We've got an IRC room now too, #gaim on irc.freenode.net (#wingaim for Windows -users). Come check us out. +For a complete list of all contributors, see the COPYRIGHT file. +We've got an IRC room now too, #gaim on irc.freenode.net (#wingaim for +Windows users). Come check us out. + Current Developers: ------------------ @@ -32,7 +34,7 @@ Nathan 'faceprint' Walp - Developer Crazy Patch Writers: --------------------- +------------------- Ka-Hing 'javabsp' Cheung Sadrul Habib Chowdhury Felipe 'shx' Contreras @@ -43,7 +45,7 @@ Kevin 'SimGuy' Stange Retired Developers: --------- +------------------ Herman Bloggs - Win32 Port Jim Duchek <ji...@li...> - maintainer Rob Flynn <ga...@ro...> - maintainer @@ -52,3 +54,71 @@ Jim Seymour - Jabber developer Mark Spencer <mar...@ma...> - original author Eric Warmenhoven <er...@wa...> - lead developer + +Other Contributions: +------------------- +Much thanks to Evan Martin <ma...@cs...> for writing +GtkSpell <http://gtkspell.sourceforge.net> responsible for the +"Highlight misspelled words" feature and for gtk-nativewin +<http://bunny.darktech.org/cvs/gtk-nativewin/> the default GTK+-2.0 +engine used in our win32 port. + +** LOGO DESIGNED BY: Naru Sundar ** + +Peter Teichiman <pe...@he...> +Larry Ewing +Jeramey A. Crawford + Thanks to these boys. Peter and Larry managed to stomp + out a large list of Mem Leaks. Jeramey found the remaining + onees and pointed me to those. Props to the boys at + Helix Code. Thanks guys. + +Nathan Walp + A healthy amount of patches for the Jabber plugin + +Neil Sanchala + Wrote most of the Zephyr plugin + +Arkadiusz Miskiewicz + Wrote the Gadu-Gadu plugin + +David Prater <IM: dRaven43> dr...@tc... + Log and Colour Button Images + +Sébastien Carpe <IM: Seb Carpe> + Base HTTP Proxy Support + +Ari Pollak <IM: Ari Pollak> compwiz.dhs.org + Resize conversation window patch + +Decklin Foster + Many GUI improvements, other nifty additions and fixes + +David <IM: CrazyDavy> + The neato-bigger text box + +S D Erle + Writing a cool perl script to translate WinAIM lists to gaim + +BMiller + A good collection of stuff. %n for away messages, import winaim + lists, pic/text/pic+text for buttons, among others + +Lance Rocker + Improved HTML formatting in logs, plus lots of debugging on *BSD. + +ergofobe: + GNOME Url handler patch + +Justin M. Ward <ju...@yo...>: + Alphabetical Away Messages patch + +G. Sumner Hayes <IM: SumnerFool> Security Patches + +Brian Ryner for a little make file patch :) + +Ryan C. Gordon - I still think you look like Silent Bob. + +Elliot Tobin <el...@bh...> + +Thanks to Jeroen van der Vegt for the initial smiley plugin and images. Deleted: trunk/doc/CREDITS =================================================================== --- trunk/doc/CREDITS 2006-09-10 19:28:41 UTC (rev 17219) +++ trunk/doc/CREDITS 2006-09-10 19:39:08 UTC (rev 17220) @@ -1,84 +0,0 @@ -gaim: The Pimpin' Penguin IM Clone that's Good For The Soul! - -This file is very old. Newer developers and contributors are -credited in the AUTHORS and COPYRIGHT files. - -CREDITS -------- -Authors: - -Rob Flynn <IM: RobFlynn> rf...@bl... -Syd Logan -Jim Duchek <IM: zilding> jim...@ou... -Eric Warmenhoven er...@wa... -Mark Spencer <IM: markster97> mar...@ma... -Sean Egan <IM: SeanEgn> bj...@bi... - -Other Contributors: - -Adam Fritzler (mid) - Wrote libfaim, fixed the proxy code, added the stuff to let - Oscar go through a proxy, and wrote the beginnings of the - Jabber plugin.. - -Much thanks to Evan Martin <ma...@cs...> for writing -GtkSpell <http://gtkspell.sourceforge.net> responsible for the -"Highlight misspelled words" feature and for gtk-nativewin -<http://bunny.darktech.org/cvs/gtk-nativewin/> the default GTK+-2.0 -engine used in our win32 port. - -** LOGO DESIGNED BY: Naru Sundar ** - -Peter Teichiman <pe...@he...> -Larry Ewing -Jeramey A. Crawford - Thanks to these boys. Peter and Larry managed to stomp - out a large list of Mem Leaks. Jeramey found the remaining - onees and pointed me to those. Props to the boys at - Helix Code. Thanks guys. - -Nathan Walp - A healthy amount of patches for the Jabber plugin -Neil Sanchala - Wrote most of the Zephyr plugin -Arkadiusz Miskiewicz - Wrote the Gadu-Gadu plugin - -David Prater <IM: dRaven43> dr...@tc... - Log and Colour Button Images -S\xE9bastien Carpe <IM: Seb Carpe> - Base HTTP Proxy Support -Ari Pollak <IM: Ari Pollak> compwiz.dhs.org - Resize conversation window patch -Decklin Foster - Many GUI improvements, other nifty additions and fixes -David <IM: CrazyDavy> - The neato-bigger text box -S D Erle - Writing a cool perl script to translate WinAIM lists to gaim -BMiller - A good collection of stuff. %n for away messages, import winaim - lists, pic/text/pic+text for buttons, among others -Lance Rocker - Improved HTML formatting in logs, plus lots of debugging on *BSD. - -ergofobe: - GNOME Url handler patch - -Justin M. Ward <ju...@yo...>: - Alphabetical Away Messages patch - -G. Sumner Hayes <IM: SumnerFool> Security Patches -Brian Ryner for a little make file patch :) -Ryan C. Gordon - I still think you look like Silent Bob. -Elliot Tobin <el...@bh...> - -Many, many thanks to Luke Schierer who logs many hours in #gaim (as LSchiere) -providing technical support to users and testing patches for developers. - -Similar thanks to Ka-Hing Cheung for also committing tons of time offering -support and submitting patches - -Thanks to Jeroen van der Vegt for the initial smiley plugin and images. - -And tons of thanks to all our users and testers! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-10 19:28:44
|
Revision: 17219 http://svn.sourceforge.net/gaim/?rev=17219&view=rev Author: thekingant Date: 2006-09-10 12:28:41 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Is it ok if I remove the old plugins ChangeLog? The last entry in here is for version 0.11.0pre5, and we're using ChangeLog.API now. This file probably just gets in people's way. And it'll always be in our repository history if anyone needs it. Removed Paths: ------------- trunk/doc/ChangeLog Deleted: trunk/doc/ChangeLog =================================================================== --- trunk/doc/ChangeLog 2006-09-10 15:49:50 UTC (rev 17218) +++ trunk/doc/ChangeLog 2006-09-10 19:28:41 UTC (rev 17219) @@ -1,161 +0,0 @@ -version 0.11.0pre5: - The build process for plugins has changed slightly. Everything still - works more or less the same from a user point of view, that is, 'make - file.so' will still turn file.c into a plugin. The build now uses - libtool in an attempt to increase portability. By using libtool the - act of compiling and linking has been divided into two steps (to be - precise it always was two but we only called gcc once; now we call - libtool twice). PLUGIN_CFLAGS has also been added. Any -D switches you - were passing in PLUGIN_LIBS should be passed in PLUGIN_CFLAGS now. - -version 0.11.0pre1: - Gaim is now multi-connection based. This represents a significant - change. Most of the code was modified, though most of the modifications - were small (referencing an int as part of a struct as opposed to as a - global int). Plugins need to be modified to match the new function - declarations and such. - - Gaim now uses GModule from the GLib library for plugins. This brings - a few changes. gaim_plugin_init is now passed a GModule *, which it - should use for all of its callbacks. gaim_plugin_init now returns - char * instead of int instead of void. If gaim_plugin_init returns - NULL then gaim assumes everything was OK and proceeds. Otherwise, it - displays the error message and unloads your plugin. There is no more - gaim_plugin_error (at least, that gaim itself will use. You may wish - to simply return gaim_plugin_error() in gaim_plugin_init). - - Because gaim now uses GModule, plugins are opened with RTLD_GLOBAL. I - had previously wanted to avoid this, but there are simply too many - benefits gained from using GModule to reject it for this reason. This - means that plugins can now call each other's functions. Beware, this - has good and bad implications. If you call a function, it will look - first in your plugin, and then in gaim's global symbol table, including - other plugins. - - The new system allows for protocol plugins. New protocols (including - Yahoo, MSN, IRC, ICQ, etc) can be loaded dynamically. However, most - of these plugins are going to be controlled by the gaim maintainers. - If you have interest in writing a protocol plugin, please talk to one - of us before you start. - - That's about all that I'm going to talk about. My SN is EWarmenhoven - if you have any questions (like what the hell struct gaim_connection is - and what its relation to struct aim_user is). - -version 0.10.0: - Rather than have a separate CFLAGS and LDFLAGS for the plugins than - for gaim, and doing all kinds of crazy things to work around the - problems that creates, the plugins now have the same CFLAGS and LIBS. - The plugins also have PLUGIN_LIBS which can be passed at make time. - This makes things like #ifdef USE_APPLET and #ifdef USE_PERL much more - reliable. (#include "config.h" in order to get all the #defines) - - The internals of gaim plugin events got modified slightly. It should - have no effect on existing plugins or the way plugins are made. The - change was to make my life easier adding perl. It should also make - adding new plugin events even easier than before (though I doubt that - any more will ever be added). Also, events are printed to the debug - window. - - event_buddy_away was being triggered every blist_update for every away - buddy. This got fixed, but now when you sign on, event_buddy_away may - be called before event_buddy_signon. Not that it should matter much. - - Just after I finish saying that no more events will be added, I go and - add one. Go figure. Anyway, it's event_new_conversation. Enough people - asked me to add it, and I found it useful enough, that I finally did - add it. It gets passed a char *, the name of the person who the - conversation is with. This gets triggered when a new conversation - window is created, in case you couldn't figure it out on your own. - - event_blist_update wasn't being called if you weren't reporting idle - time or if you were idle. This got fixed. - -version 0.9.20: - It's 3 am the night before finals, it's obviously a good time to hack - gaim. - - This became quite long, and if you don't want to read it all, here's - the important stuff summed up: - - 9 new events (see SIGNALS file for more details) - - int gaim_plugin_init(void *) (no longer returns void, see error.c) - - void gaim_plugin_unload(void *) (to allow plugin to remove itself) - - can only load 1 instance of the same plugin - - PLUGIN_LIBS for extra libraries for plugin - - The first thing to note is that there are about 9 new events plugins - can attach to, most of them dealing with chat, since I know that was a - big thing that was missing. Please note that I was nice and decided to - tack these extra events onto the end of the enum, which means that - plugins do not have to be recompiled in order for them to still work. - - The big change is that gaim_plugin_init no longer returns void, but - int. If it returns 0+, gaim interprets this as there being no error, - and continues with loading as normal. (This should be backwards- - compatible: returning 0/1 is the equivalent of returning void.) If it - returns a number less than 0, there was an error loading detected by - the plugin. At that point, gaim will try to clean things up by removing - any callbacks that have been added by the plugin. It will then try to - call the plugin's gaim_plugin_error function, if there is one. The - function should take an int (the int returned by gaim_plugin_init) and - return a char*. If the char* is not NULL, it is displayed by gaim as an - error message. The plugin is then unloaded and closed and life goes - back to normal. If any of that was confusing, it was confusing to me, - too. I added a plugin, error.c, which should help clear things up. - - Another big thing to note is that plugins can unload themselves. A good - example of why this is useful is a ticker plugin. If the user closes - the ticker window, they obviously want the plugin to be unloaded. Gaim - has no way of knowing that; therefore, the plugin must tell gaim that - it is to be unloaded. To have a plugin unload itself, simply call - gaim_plugin_unload(void *) (the void* is the handle passed to - gaim_plugin_init). Because you are explicitly asking to be removed, - gaim assumes that you have done any cleanup already, and so does not - call gaim_plugin_remove. Rather, it simply removes your callbacks and - unloads the plugin. (There is some trickery to this. Think about it: - your plugin calls the function, your plugin is unloaded, and execution - returns to your plugin, which no longer exists. This would cause a - segfault if it behaved exactly as described. Instead, the plugin is - removed from the list of plugins, and removed 5 seconds later. By then - the plugin should be effectively gone, though still in memory.) - - In previous versions of gaim, you could load multiple copies of the - same plugin. This is no longer the case. The reason for this was that - there were not two instances of the plugin in memory; rather, one copy - and two structures representing the same plugin. Then, the callbacks - would be called twice (since the plugin would most likely act the same - across multiple instances), and when one was unloaded, all callbacks - for both instances would be removed. Rather than deal with two copies - of the same plugin, it is easier and cleaner to only handle one. - - Sometimes it's necessary to link a plugin with libraries other than the - ones needed for GTK. Before, it was necessary to modify the Makefile to - do so (which was usually messy since it's generated by GNU automake). - Now, you can simply set the environment variable PLUGIN_LIBS to be the - extra libraries you want to link in. For example, to link plugin.c with - the math library, you can run the command - PLUGIN_LIBS=-lm make plugin.so - To link with multiple plugins, make sure to indicate spaces, e.g. - PLUGIN_LIBS='-lm -lcrypt' make encrypt.so - - There is a new event, event_quit, which signifies that gaim has exited - correctly (i.e. didn't segfault). Also, after this event is called, all - plugins are removed, and their gaim_plugin_remove function is called. - This behavior is different from previous versions; however, it is the - proper way of doing things, and should have no effect on current - plugins. The reason event_quit exists despite plugins being removed at - quit is because a plugin can be removed without gaim quitting. They are - distinctly separate events. - - The new events mean that some versions of gaim have certain events, - others don't. The thing I find fascinating though is that even if a - plugin is compiled for a later version, it will still be backwards- - compatible, even if it makes use of the newer events. The reason why - is the names of the events are stored as integers, and those integers - will never match an event in a prior version. This means you don't - have to worry about which version the person is using, only which - version the person is compiling against. For simplicity's sake, please - assume people are compiling against the latest version. For - practicality's sake, VERSION is #define'd to be the version you're - compiling against, starting with 0.9.20. Prior versions do not have - this defined in the standard plugin Makefile. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fac...@us...> - 2006-09-10 15:49:54
|
Revision: 17218 http://svn.sourceforge.net/gaim/?rev=17218&view=rev Author: faceprint Date: 2006-09-10 08:49:50 -0700 (Sun, 10 Sep 2006) Log Message: ----------- this should fix file xfer for some folks Modified Paths: -------------- trunk/libgaim/protocols/jabber/si.c Modified: trunk/libgaim/protocols/jabber/si.c =================================================================== --- trunk/libgaim/protocols/jabber/si.c 2006-09-10 15:13:59 UTC (rev 17217) +++ trunk/libgaim/protocols/jabber/si.c 2006-09-10 15:49:50 UTC (rev 17218) @@ -131,6 +131,7 @@ char *dstaddr, *p; int i; unsigned char hashval[20]; + JabberID *dstjid; if(!jsx->streamhosts) { JabberIq *iq = jabber_iq_new(jsx->js, JABBER_IQ_ERROR); @@ -156,26 +157,34 @@ streamhost = jsx->streamhosts->data; - jsx->gpi = gaim_proxy_info_new(); - gaim_proxy_info_set_type(jsx->gpi, GAIM_PROXY_SOCKS5); - gaim_proxy_info_set_host(jsx->gpi, streamhost->host); - gaim_proxy_info_set_port(jsx->gpi, streamhost->port); + dstjid = jabber_id_new(xfer->who); - dstaddr = g_strdup_printf("%s%s%s@%s/%s", jsx->stream_id, xfer->who, jsx->js->user->node, - jsx->js->user->domain, jsx->js->user->resource); + if(dstjid != NULL) { + jsx->gpi = gaim_proxy_info_new(); + gaim_proxy_info_set_type(jsx->gpi, GAIM_PROXY_SOCKS5); + gaim_proxy_info_set_host(jsx->gpi, streamhost->host); + gaim_proxy_info_set_port(jsx->gpi, streamhost->port); - gaim_cipher_digest_region("sha1", (guchar *)dstaddr, strlen(dstaddr), - sizeof(hashval), hashval, NULL); - g_free(dstaddr); - dstaddr = g_malloc(41); - p = dstaddr; - for(i=0; i<20; i++, p+=2) - snprintf(p, 3, "%02x", hashval[i]); - jsx->connect_data = gaim_proxy_connect_socks5(jsx->gpi, dstaddr, 0, - jabber_si_bytestreams_connect_cb, xfer); - g_free(dstaddr); + dstaddr = g_strdup_printf("%s%s@%s/%s%s@%s/%s", jsx->stream_id, dstjid->node, dstjid->domain, dstjid->resource, jsx->js->user->node, + jsx->js->user->domain, jsx->js->user->resource); + + gaim_cipher_digest_region("sha1", (guchar *)dstaddr, strlen(dstaddr), + sizeof(hashval), hashval, NULL); + g_free(dstaddr); + dstaddr = g_malloc(41); + p = dstaddr; + for(i=0; i<20; i++, p+=2) + snprintf(p, 3, "%02x", hashval[i]); + + jsx->connect_data = gaim_proxy_connect_socks5(jsx->gpi, dstaddr, 0, + jabber_si_bytestreams_connect_cb, xfer); + g_free(dstaddr); + + jabber_id_free(dstjid); + } + if (jsx->connect_data == NULL) { jsx->streamhosts = g_list_remove(jsx->streamhosts, streamhost); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dat...@us...> - 2006-09-10 15:14:04
|
Revision: 17217 http://svn.sourceforge.net/gaim/?rev=17217&view=rev Author: datallah Date: 2006-09-10 08:13:59 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Fix CID 273 (NULL deref) Modified Paths: -------------- trunk/libgaim/protocols/qq/recv_core.c Modified: trunk/libgaim/protocols/qq/recv_core.c =================================================================== --- trunk/libgaim/protocols/qq/recv_core.c 2006-09-10 15:07:46 UTC (rev 17216) +++ trunk/libgaim/protocols/qq/recv_core.c 2006-09-10 15:13:59 UTC (rev 17217) @@ -296,7 +296,10 @@ gint len; gc = (GaimConnection *) data; - if(gc == NULL || gc->proto_data == NULL || cond != GAIM_INPUT_READ) { + + g_return_if_fail(gc != NULL && gc->proto_data != NULL); + + if(cond != GAIM_INPUT_READ) { gaim_connection_error(gc, _("Socket error")); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dat...@us...> - 2006-09-10 15:07:51
|
Revision: 17216 http://svn.sourceforge.net/gaim/?rev=17216&view=rev Author: datallah Date: 2006-09-10 08:07:46 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Use fstat() on the opened fd instead of stat() on the file separately. Use static buffers in a few places to avoid unnecessary memory allocation and freeing. Modified Paths: -------------- trunk/libgaim/protocols/qq/qq.c Modified: trunk/libgaim/protocols/qq/qq.c =================================================================== --- trunk/libgaim/protocols/qq/qq.c 2006-09-10 07:02:23 UTC (rev 17215) +++ trunk/libgaim/protocols/qq/qq.c 2006-09-10 15:07:46 UTC (rev 17216) @@ -166,7 +166,6 @@ { qq_buddy *q_bud; GString *status; - gchar *ret; q_bud = (qq_buddy *) b->proto_data; if (q_bud == NULL) @@ -195,10 +194,7 @@ g_string_printf(status, "Unknown-%d", q_bud->status); } - ret = status->str; - g_string_free(status, FALSE); - - return ret; + return g_string_free(status, FALSE); } @@ -414,17 +410,16 @@ GaimRequestField *field; struct stat img_stat; FILE *file; - gchar *filename, *img_data, *face; + gchar *filename, *img_data; + gchar face[15]; gint size; - face = g_strdup_printf("qq_%i.png", face_num); + g_snprintf(face, sizeof(face), "qq_%i.png", face_num); filename = g_build_filename(DATADIR, "pixmaps", "gaim","status","default", face, NULL); - g_free(face); - face = g_strdup_printf("%i", face_num); - stat(filename, &img_stat); + g_snprintf(face, sizeof(face), "%i", face_num); file = g_fopen(filename, "rb"); - if (file) { + if (file && fstat(fileno(file), &img_stat) == 0) { img_data = g_malloc(img_stat.st_size); size = fread(img_data, 1, img_stat.st_size, file); @@ -434,7 +429,6 @@ g_free(img_data); fclose(file); } - g_free(face); } /* Change your status icon (face) */ @@ -445,7 +439,7 @@ GaimRequestFields *fields; GaimRequestFieldGroup *group; GaimRequestField *field; - gchar *label; + gchar label[15]; gint i; fields = gaim_request_fields_new(); @@ -454,9 +448,8 @@ field = gaim_request_field_choice_new("face_num", _("Select a number"), qd->my_icon / 3); for(i = 1; i <= QQ_FACES; i++) { - label = g_strdup_printf("%i", i); + g_snprintf(label, sizeof(label), "%i", i); gaim_request_field_choice_add(field, label); - g_free(label); } gaim_request_field_group_add_field(group, field); group = gaim_request_field_group_new(_("Faces")); @@ -776,9 +769,9 @@ GaimRequestFields *fields; GaimRequestFieldGroup *group; GaimRequestField *field; - gchar *tmp; + gchar tmp[15]; qq_data *qd; - + gc = (GaimConnection *) action->context; qd = (qq_data *) gc->proto_data; g_return_if_fail(gc != NULL && qd != NULL); @@ -786,17 +779,15 @@ fields = gaim_request_fields_new(); group = gaim_request_field_group_new(_("Basic Elements")); gaim_request_fields_add_group(fields, group); - tmp = g_strdup_printf("%04X", QQ_CLIENT); + g_snprintf(tmp, sizeof(tmp), "%04X", QQ_CLIENT); field = gaim_request_field_string_new("client", _("Client (hex)"), tmp, FALSE); - g_free(tmp); gaim_request_field_group_add_field(group, field); field = gaim_request_field_string_new("cmd", _("Command (hex)"), "0000", FALSE); gaim_request_field_group_add_field(group, field); field = gaim_request_field_string_new("seq", _("Sequence (hex)"), "0000", FALSE); gaim_request_field_group_add_field(group, field); - tmp = g_strdup_printf("%u", qd->uid); + g_snprintf(tmp, sizeof(tmp), "%u", qd->uid); field = gaim_request_field_string_new("uid", _("QQ Number (decimal)"), tmp, FALSE); - g_free(tmp); gaim_request_field_group_add_field(group, field); field = gaim_request_field_string_new("body", _("Body (hex)"), NULL, TRUE); gaim_request_field_group_add_field(group, field); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-10 07:02:27
|
Revision: 17215 http://svn.sourceforge.net/gaim/?rev=17215&view=rev Author: rlaager Date: 2006-09-10 00:02:23 -0700 (Sun, 10 Sep 2006) Log Message: ----------- The changes I committed earlier, from a patch from wabz, resulted in notices in an AIM conversation that the buddy had changed the alias to (null). After looking at the code, I believe the old code was wrong, but maybe it's me that's wrong. In any case, I think this will clear things up. Modified Paths: -------------- trunk/libgaim/server.c Modified: trunk/libgaim/server.c =================================================================== --- trunk/libgaim/server.c 2006-09-10 05:33:52 UTC (rev 17214) +++ trunk/libgaim/server.c 2006-09-10 07:02:23 UTC (rev 17215) @@ -215,13 +215,16 @@ for (buds = buddies; buds; buds = buds->next) { b = buds->data; - if (b->server_alias && !strcmp(b->server_alias, alias)) + if ((b->server_alias == NULL && alias == NULL) || + (b->server_alias && alias && !strcmp(b->server_alias, alias))) + { continue; + } gaim_blist_server_alias_buddy(b, alias); conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, b->name, account); - if (conv != NULL) + if (conv != NULL && alias != NULL) { char *tmp = g_strdup_printf(_("%s is now known as %s.\n"), who, alias); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2006-09-10 05:34:01
|
Revision: 17214 http://svn.sourceforge.net/gaim/?rev=17214&view=rev Author: deryni9 Date: 2006-09-09 22:33:52 -0700 (Sat, 09 Sep 2006) Log Message: ----------- I'm pretty sure this is what was supposed to go here. KingAnt did you retype all of this stuff by hand? Modified Paths: -------------- trunk/gtk/plugins/perl/Makefile.am Modified: trunk/gtk/plugins/perl/Makefile.am =================================================================== --- trunk/gtk/plugins/perl/Makefile.am 2006-09-10 02:09:45 UTC (rev 17213) +++ trunk/gtk/plugins/perl/Makefile.am 2006-09-10 05:33:52 UTC (rev 17214) @@ -45,7 +45,7 @@ all-local: common/Makefile @for dir in $(perl_dirs); do \ cd $$dir && \ - if [ ~ -f Makefile ]; then \ + if [ ! -f Makefile ]; then \ $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ fi && \ ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-10 02:09:48
|
Revision: 17213 http://svn.sourceforge.net/gaim/?rev=17213&view=rev Author: rlaager Date: 2006-09-09 19:09:45 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Correction from wabz on his previous patch. Modified Paths: -------------- trunk/libgaim/protocols/msn/notification.c Modified: trunk/libgaim/protocols/msn/notification.c =================================================================== --- trunk/libgaim/protocols/msn/notification.c 2006-09-10 00:17:44 UTC (rev 17212) +++ trunk/libgaim/protocols/msn/notification.c 2006-09-10 02:09:45 UTC (rev 17213) @@ -677,7 +677,7 @@ user = msn_userlist_find_user(session->userlist, passport); old_friendly = msn_user_get_friendly_name(user); - if (old_friendly && strcmp(old_friendly, friendly)) + if (!old_friendly || (old_friendly && strcmp(old_friendly, friendly))) { serv_got_alias(gc, passport, friendly); msn_user_set_friendly_name(user, friendly); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sa...@us...> - 2006-09-10 00:18:04
|
Revision: 17212 http://svn.sourceforge.net/gaim/?rev=17212&view=rev Author: sadrul Date: 2006-09-09 17:17:44 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Update the statuslist with appropriate list of stauses in the buddylist when global status is changed. Modified Paths: -------------- trunk/console/gntblist.c trunk/console/libgnt/gntcombobox.c trunk/console/libgnt/gntcombobox.h trunk/console/libgnt/gntmain.c Modified: trunk/console/gntblist.c =================================================================== --- trunk/console/gntblist.c 2006-09-09 21:58:04 UTC (rev 17211) +++ trunk/console/gntblist.c 2006-09-10 00:17:44 UTC (rev 17212) @@ -1317,6 +1317,8 @@ GaimStatusPrimitive prims[] = {GAIM_STATUS_AVAILABLE, GAIM_STATUS_AWAY, GAIM_STATUS_INVISIBLE, GAIM_STATUS_OFFLINE, GAIM_STATUS_UNSET}; + gnt_combo_box_remove_all(GNT_COMBO_BOX(ggblist->status)); + for (i = 0; prims[i] != GAIM_STATUS_UNSET; i++) { item = g_new0(StatusBoxItem, 1); @@ -1492,7 +1494,6 @@ static void savedstatus_changed(GaimSavedStatus *now, GaimSavedStatus *old) { - /* Block the signals we don't want to emit */ GList *list; GaimStatusPrimitive prim; const char *message; @@ -1500,6 +1501,7 @@ if (!ggblist) return; + /* Block the signals we don't want to emit */ g_signal_handlers_block_matched(ggblist->status, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, status_selection_changed, NULL); g_signal_handlers_block_matched(ggblist->statustext, G_SIGNAL_MATCH_FUNC, @@ -1508,6 +1510,9 @@ prim = gaim_savedstatus_get_type(now); message = gaim_savedstatus_get_message(now); + /* Rebuild the status dropdown */ + populate_status_dropdown(); + list = g_object_get_data(G_OBJECT(ggblist->status), "list of statuses"); for (; list; list = list->next) { @@ -1610,8 +1615,6 @@ ggblist->statustext = gnt_entry_new(NULL); gnt_box_add_widget(GNT_BOX(ggblist->window), ggblist->statustext); - populate_status_dropdown(); - gnt_widget_show(ggblist->window); gaim_signal_connect(gaim_blist_get_handle(), "buddy-status-changed", gg_blist_get_handle(), Modified: trunk/console/libgnt/gntcombobox.c =================================================================== --- trunk/console/libgnt/gntcombobox.c 2006-09-09 21:58:04 UTC (rev 17211) +++ trunk/console/libgnt/gntcombobox.c 2006-09-10 00:17:44 UTC (rev 17212) @@ -287,3 +287,16 @@ set_selection(box, key); } +void gnt_combo_box_remove(GntComboBox *box, gpointer key) +{ + gnt_tree_remove(GNT_TREE(box->dropdown), key); + if (box->selected == key) + set_selection(box, NULL); +} + +void gnt_combo_box_remove_all(GntComboBox *box) +{ + gnt_tree_remove_all(GNT_TREE(box->dropdown)); + set_selection(box, NULL); +} + Modified: trunk/console/libgnt/gntcombobox.h =================================================================== --- trunk/console/libgnt/gntcombobox.h 2006-09-09 21:58:04 UTC (rev 17211) +++ trunk/console/libgnt/gntcombobox.h 2006-09-10 00:17:44 UTC (rev 17212) @@ -48,6 +48,10 @@ void gnt_combo_box_add_data(GntComboBox *box, gpointer key, const char *text); +void gnt_combo_box_remove(GntComboBox *box, gpointer key); + +void gnt_combo_box_remove_all(GntComboBox *box); + gpointer gnt_combo_box_get_selected_data(GntComboBox *box); void gnt_combo_box_set_selected(GntComboBox *box, gpointer key); Modified: trunk/console/libgnt/gntmain.c =================================================================== --- trunk/console/libgnt/gntmain.c 2006-09-09 21:58:04 UTC (rev 17211) +++ trunk/console/libgnt/gntmain.c 2006-09-10 00:17:44 UTC (rev 17212) @@ -577,8 +577,6 @@ x -= 33; y -= 33; - /* It might be a better idea to use panel_below. That would allow mouse-clicks - * to be operated on transient windows, which would be cool.*/ while ((p = panel_below(p)) != NULL) { const GntNode *node = panel_userptr(p); GntWidget *wid; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-09 21:58:14
|
Revision: 17211 http://svn.sourceforge.net/gaim/?rev=17211&view=rev Author: rlaager Date: 2006-09-09 14:58:04 -0700 (Sat, 09 Sep 2006) Log Message: ----------- group_search.c: In function 'qq_process_group_cmd_search_group': group_search.c:114: warning: 'i' is used uninitialized in this function Modified Paths: -------------- trunk/libgaim/protocols/qq/group_search.c Modified: trunk/libgaim/protocols/qq/group_search.c =================================================================== --- trunk/libgaim/protocols/qq/group_search.c 2006-09-09 21:32:47 UTC (rev 17210) +++ trunk/libgaim/protocols/qq/group_search.c 2006-09-09 21:58:04 UTC (rev 17211) @@ -97,7 +97,7 @@ { guint8 search_type; guint16 unknown; - gint bytes, pascal_len, i; + gint bytes, pascal_len; qq_data *qd; qq_group *group; GSList *pending_id; @@ -111,7 +111,6 @@ /* now it starts with group_info_entry */ bytes = 0; - i++; bytes += read_packet_dw(data, cursor, len, &(group->internal_group_id)); bytes += read_packet_dw(data, cursor, len, &(group->external_group_id)); bytes += read_packet_b(data, cursor, len, &(group->group_type)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-09 21:33:10
|
Revision: 17210 http://svn.sourceforge.net/gaim/?rev=17210&view=rev Author: rlaager Date: 2006-09-09 14:32:47 -0700 (Sat, 09 Sep 2006) Log Message: ----------- SF Patch #1554418 from TiCPU Adds gaim_buddy_get_server_alias(). Modified Paths: -------------- trunk/doc/ChangeLog.API trunk/libgaim/blist.c trunk/libgaim/blist.h Modified: trunk/doc/ChangeLog.API =================================================================== --- trunk/doc/ChangeLog.API 2006-09-09 21:32:30 UTC (rev 17209) +++ trunk/doc/ChangeLog.API 2006-09-09 21:32:47 UTC (rev 17210) @@ -320,6 +320,7 @@ * gaim_util_fetch_url_cancel(): Can be used to cancel a pending call to gaim_util_fetch_url() or gaim_util_fetch_url_request(). * GaimGtkWindow: dialogs.search (previously in GaimGtkConversation) + * gaim_buddy_get_server_alias() Signals - Changed: (See the Doxygen docs for details on all signals.) * Signal propagation now stops after a handler returns a non-NULL value. Modified: trunk/libgaim/blist.c =================================================================== --- trunk/libgaim/blist.c 2006-09-09 21:32:30 UTC (rev 17209) +++ trunk/libgaim/blist.c 2006-09-09 21:32:47 UTC (rev 17210) @@ -2014,6 +2014,16 @@ return buddy->name; } +const char *gaim_buddy_get_server_alias(GaimBuddy *buddy) +{ + g_return_val_if_fail(buddy != NULL, NULL); + + if ((buddy->server_alias) && (*buddy->server_alias)) + return buddy->server_alias; + + return NULL; +} + const char *gaim_buddy_get_local_alias(GaimBuddy *buddy) { GaimContact *c; Modified: trunk/libgaim/blist.h =================================================================== --- trunk/libgaim/blist.h 2006-09-09 21:32:30 UTC (rev 17209) +++ trunk/libgaim/blist.h 2006-09-09 21:32:47 UTC (rev 17210) @@ -545,6 +545,13 @@ */ const char *gaim_buddy_get_alias_only(GaimBuddy *buddy); +/** + * Gets the server alias for a buddy. + * + * @param buddy The buddy whose name will be returned + * @return The server alias, or NULL if it is not set. + */ +const char *gaim_buddy_get_server_alias(GaimBuddy *buddy); /** * Returns the correct name to display for a buddy, taking the contact alias This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-09 21:32:51
|
Revision: 17209 http://svn.sourceforge.net/gaim/?rev=17209&view=rev Author: thekingant Date: 2006-09-09 14:32:30 -0700 (Sat, 09 Sep 2006) Log Message: ----------- More changes to help make dist work again. Let's see here * Alphabetize some stuff in gtk/Makefile.am * Include gntwm.h in the tar.gz * Include gntplugin.h in the tar.gz (instead of gntplugin.c (typo)) * libgaim/connection.c and libgaim/upnp.c shouldn't include gaim.h gaim.h should only be used by stuff outside of libgaim * Include gaim.h in the tar.gz (not sure if we want to keep it this way, I'll send an email to gaim-devel in a little bit) Modified Paths: -------------- trunk/console/Makefile.am trunk/console/libgnt/Makefile.am trunk/gtk/Makefile.am trunk/libgaim/connection.c trunk/libgaim/upnp.c Modified: trunk/console/Makefile.am =================================================================== --- trunk/console/Makefile.am 2006-09-09 21:02:31 UTC (rev 17208) +++ trunk/console/Makefile.am 2006-09-09 21:32:30 UTC (rev 17209) @@ -25,7 +25,7 @@ gntconv.h \ gntdebug.h \ gntnotify.h \ - gntplugin.c \ + gntplugin.h \ gntprefs.h \ gntrequest.h \ gntstatus.h \ Modified: trunk/console/libgnt/Makefile.am =================================================================== --- trunk/console/libgnt/Makefile.am 2006-09-09 21:02:31 UTC (rev 17208) +++ trunk/console/libgnt/Makefile.am 2006-09-09 21:32:30 UTC (rev 17209) @@ -38,6 +38,7 @@ gnttextview.h \ gnttree.h \ gntutils.h \ + gntwm.h \ gnt.h libgnt_laincludedir=$(includedir)/gnt Modified: trunk/gtk/Makefile.am =================================================================== --- trunk/gtk/Makefile.am 2006-09-09 21:02:31 UTC (rev 17208) +++ trunk/gtk/Makefile.am 2006-09-09 21:32:30 UTC (rev 17209) @@ -59,13 +59,14 @@ bin_PROGRAMS = gaim gaim_SOURCES = \ + gaimcombobox.c \ + gaimstock.c \ gtkaccount.c \ gtkblist.c \ gtkcelllayout.c \ gtkcellrendererprogress.c \ gtkcellview.c \ gtkcellviewmenuitem.c \ - gaimcombobox.c \ gtkconn.c \ gtkconv.c \ gtkdebug.c \ @@ -83,9 +84,9 @@ gtknotify.c \ gtkplugin.c \ gtkpluginpref.c \ + gtkpounce.c \ gtkprefs.c \ gtkprivacy.c \ - gtkpounce.c \ gtkrequest.c \ gtkroomlist.c \ gtksavedstatuses.c \ @@ -93,7 +94,6 @@ gtksound.c \ gtksourceiter.c \ gtkstatusbox.c \ - gaimstock.c \ gtkthemes.c \ gtkutils.c \ gtkwhiteboard.c Modified: trunk/libgaim/connection.c =================================================================== --- trunk/libgaim/connection.c 2006-09-09 21:02:31 UTC (rev 17208) +++ trunk/libgaim/connection.c 2006-09-09 21:32:30 UTC (rev 17209) @@ -28,7 +28,6 @@ #include "connection.h" #include "dbus-maybe.h" #include "debug.h" -#include "gaim.h" #include "log.h" #include "notify.h" #include "prefs.h" Modified: trunk/libgaim/upnp.c =================================================================== --- trunk/libgaim/upnp.c 2006-09-09 21:02:31 UTC (rev 17208) +++ trunk/libgaim/upnp.c 2006-09-09 21:32:30 UTC (rev 17209) @@ -23,7 +23,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gaim.h" #include "debug.h" #include "util.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-09 21:02:33
|
Revision: 17208 http://svn.sourceforge.net/gaim/?rev=17208&view=rev Author: thekingant Date: 2006-09-09 14:02:31 -0700 (Sat, 09 Sep 2006) Log Message: ----------- I copied parts of libgaim/plugins/perl/Makefile.am I have no idea if these changes are going to screw up the gtk perl stuff, but at least it doesn't break "make dist" Modified Paths: -------------- trunk/gtk/plugins/perl/Makefile.am trunk/gtk/plugins/perl/common/Makefile.PL.in Modified: trunk/gtk/plugins/perl/Makefile.am =================================================================== --- trunk/gtk/plugins/perl/Makefile.am 2006-09-09 20:56:28 UTC (rev 17207) +++ trunk/gtk/plugins/perl/Makefile.am 2006-09-09 21:02:31 UTC (rev 17208) @@ -1,4 +1,4 @@ -SUBDIRS = . common +perl_dirs = common common_sources = \ common/Gtk.pm \ @@ -36,14 +36,59 @@ common/Makefile.mingw \ $(common_sources) -all-local: common/Makefile - common/Makefile: common/Makefile.PL @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS) common/Makefile.PL: common/Makefile.PL.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am_depfiles_maybe) + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +all-local: common/Makefile + @for dir in $(perl_dirs); do \ + cd $$dir && \ + if [ ~ -f Makefile ]; then \ + $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ + fi && \ + ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ + $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \ + cd ..; \ + done + +install-exec-local: + @for dir in $(perl_dirs); do \ + cd $$dir; \ + $(MAKE) install; \ + cd ..; \ + done + +# Evil Hack (TM) +# ... which doesn't work with DESTDIR installs. FIXME? +uninstall-local: + @for dir in $(perl_dirs); do \ + cd $$dir && \ + `$(MAKE) uninstall | grep unlink | sed -e 's#/usr#${prefix}#' -e 's#unlink#rm -f#'` && \ + cd ..; \ + done + +clean-generic: + @for dir in $(perl_dirs); do \ + cd $$dir; \ + $(MAKE) clean; \ + cd ..; \ + done + rm -f *.so + +distclean-generic: + @for dir in $(perl_dirs); do \ + cd $$dir; \ + $(MAKE) realclean; \ + rm -f Makefile.PL; \ + rm -f Makefile.old; \ + rm -f Makefile; \ + cd ..; \ + done + + @rm -f Makefile + AM_CPPFLAGS = \ -DVERSION=\"$(VERSION)\" \ -I$(top_srcdir) \ Modified: trunk/gtk/plugins/perl/common/Makefile.PL.in =================================================================== --- trunk/gtk/plugins/perl/common/Makefile.PL.in 2006-09-09 20:56:28 UTC (rev 17207) +++ trunk/gtk/plugins/perl/common/Makefile.PL.in 2006-09-09 21:02:31 UTC (rev 17208) @@ -6,7 +6,7 @@ 'VERSION_FROM' => '@srcdir@/Gtk.pm', # finds $VERSION ($] >= 5.005 ? ## Add these new keywords supported since 5.005 ('ABSTRACT_FROM' => '@srcdir@/Gtk.pm', # finds $ABSTRACT - 'AUTHOR' => 'Etan Reisner <de...@gm...>') : ()), + 'AUTHOR' => 'Gaim <http://gaim.sourceforge.net/>') : ()), 'DEFINE' => '@DEBUG_CFLAGS@', 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/libgaim -I@top_srcdir@/gtk @GTK_CFLAGS@', # 'PREREQ_PM' => { 'Gaim' => '@VERSION@'}, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-09 20:56:30
|
Revision: 17207 http://svn.sourceforge.net/gaim/?rev=17207&view=rev Author: thekingant Date: 2006-09-09 13:56:28 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Use "Gaim" as the author instead of Christian. Is that valid? Modified Paths: -------------- trunk/libgaim/plugins/perl/common/Makefile.PL.in Modified: trunk/libgaim/plugins/perl/common/Makefile.PL.in =================================================================== --- trunk/libgaim/plugins/perl/common/Makefile.PL.in 2006-09-09 20:54:23 UTC (rev 17206) +++ trunk/libgaim/plugins/perl/common/Makefile.PL.in 2006-09-09 20:56:28 UTC (rev 17207) @@ -8,7 +8,7 @@ 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => '@srcdir@/Gaim.pm', # retrieve abstract from module - AUTHOR => 'Christian Hammond <ch...@gn...>') : ()), + AUTHOR => 'Gaim <http://gaim.sourceforge.net/>') : ()), 'LIBS' => [''], # e.g., '-lm' 'DEFINE' => '@DEBUG_CFLAGS@', # e.g., '-DHAVE_SOMETHING' 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/libgaim @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-09 20:54:35
|
Revision: 17206 http://svn.sourceforge.net/gaim/?rev=17206&view=rev Author: thekingant Date: 2006-09-09 13:54:23 -0700 (Sat, 09 Sep 2006) Log Message: ----------- gaim.h should only be used by stuff outside of libgaim? Modified Paths: -------------- trunk/libgaim/protocols/sametime/sametime.c Modified: trunk/libgaim/protocols/sametime/sametime.c =================================================================== --- trunk/libgaim/protocols/sametime/sametime.c 2006-09-09 20:47:12 UTC (rev 17205) +++ trunk/libgaim/protocols/sametime/sametime.c 2006-09-09 20:54:23 UTC (rev 17206) @@ -33,7 +33,6 @@ /* gaim includes */ #include "internal.h" -#include "gaim.h" #include "config.h" #include "account.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-09 20:47:15
|
Revision: 17205 http://svn.sourceforge.net/gaim/?rev=17205&view=rev Author: rlaager Date: 2006-09-09 13:47:12 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Rest of SF Patch #1554627 from Richard Nelson (wabz) "a user without an msnobject was having icon_checksum removed on each status change" Modified Paths: -------------- trunk/libgaim/protocols/msn/slp.c Modified: trunk/libgaim/protocols/msn/slp.c =================================================================== --- trunk/libgaim/protocols/msn/slp.c 2006-09-09 20:40:12 UTC (rev 17204) +++ trunk/libgaim/protocols/msn/slp.c 2006-09-09 20:47:12 UTC (rev 17205) @@ -954,18 +954,19 @@ /* It seems the user has not set a msnobject */ GSList *sl, *list; - /* TODO: I think we need better buddy icon core functions. */ - gaim_buddy_icons_set_for_user(account, user->passport, NULL, -1); - list = gaim_find_buddies(account, user->passport); for (sl = list; sl != NULL; sl = sl->next) { GaimBuddy *buddy = (GaimBuddy *)sl->data; - gaim_blist_node_remove_setting((GaimBlistNode*)buddy, "icon_checksum"); + if (buddy->icon) + gaim_blist_node_remove_setting((GaimBlistNode*)buddy, "icon_checksum"); } g_slist_free(list); + /* TODO: I think we need better buddy icon core functions. */ + gaim_buddy_icons_set_for_user(account, user->passport, NULL, 0); + return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-09 20:40:16
|
Revision: 17204 http://svn.sourceforge.net/gaim/?rev=17204&view=rev Author: thekingant Date: 2006-09-09 13:40:12 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Doxygen comment fix Modified Paths: -------------- trunk/gtk/gtksound.c Modified: trunk/gtk/gtksound.c =================================================================== --- trunk/gtk/gtksound.c 2006-09-09 20:27:48 UTC (rev 17203) +++ trunk/gtk/gtksound.c 2006-09-09 20:40:12 UTC (rev 17204) @@ -1,5 +1,5 @@ /* - * @file gtksound.h GTK+ Sound + * @file gtksound.c GTK+ Sound * @ingroup gtkui * * gaim This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-09 20:27:52
|
Revision: 17203 http://svn.sourceforge.net/gaim/?rev=17203&view=rev Author: rlaager Date: 2006-09-09 13:27:48 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Part of SF Patch #1554627 from Richard Nelson (wabz) "The msn protocol currently calls serv_got_alias on all buddy status changes (as they are NLN commands), resulting in lots of unnecessary blist.xml write schedules. serv_got_alias already checks if the alias has actually changed before printing to the conv. The first hunk in this patch checks it a bit earlier." The second hunk checks in the MSN prpl, which also avoids an extra call to msn_user_set_friendly_name(). Modified Paths: -------------- trunk/libgaim/protocols/msn/notification.c trunk/libgaim/server.c Modified: trunk/libgaim/protocols/msn/notification.c =================================================================== --- trunk/libgaim/protocols/msn/notification.c 2006-09-09 19:41:34 UTC (rev 17202) +++ trunk/libgaim/protocols/msn/notification.c 2006-09-09 20:27:48 UTC (rev 17203) @@ -664,7 +664,7 @@ MsnUser *user; MsnObject *msnobj; int clientid; - const char *state, *passport, *friendly; + const char *state, *passport, *friendly, *old_friendly; session = cmdproc->session; account = session->account; @@ -676,10 +676,13 @@ user = msn_userlist_find_user(session->userlist, passport); - serv_got_alias(gc, passport, friendly); + old_friendly = msn_user_get_friendly_name(user); + if (old_friendly && strcmp(old_friendly, friendly)) + { + serv_got_alias(gc, passport, friendly); + msn_user_set_friendly_name(user, friendly); + } - msn_user_set_friendly_name(user, friendly); - if (session->protocol_ver >= 9) { if (cmd->param_count == 5) Modified: trunk/libgaim/server.c =================================================================== --- trunk/libgaim/server.c 2006-09-09 19:41:34 UTC (rev 17202) +++ trunk/libgaim/server.c 2006-09-09 20:27:48 UTC (rev 17203) @@ -215,12 +215,13 @@ for (buds = buddies; buds; buds = buds->next) { b = buds->data; + if (b->server_alias && !strcmp(b->server_alias, alias)) + continue; gaim_blist_server_alias_buddy(b, alias); conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, b->name, account); - if (conv != NULL && b->server_alias != NULL && - strcmp(b->server_alias, alias)) + if (conv != NULL) { char *tmp = g_strdup_printf(_("%s is now known as %s.\n"), who, alias); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rl...@us...> - 2006-09-09 19:44:43
|
Revision: 17200 http://svn.sourceforge.net/gaim/?rev=17200&view=rev Author: rlaager Date: 2006-09-09 12:31:45 -0700 (Sat, 09 Sep 2006) Log Message: ----------- SF Patch #1554423 from charkins Fixes SF Bug #1429503 "When creating the blist, gaim currently calls gtk_widget_show_all() on the window, then immediately hides it if using the docklet and the blist was hidden when gaim last quit. Bug #1429503 reports that the buddy list window will flash on the screen when starting gaim (though I can't reproduce it). This patch changes that behavior so that the gtk_widget_show_all() is called on the vbox, not the window. gtk_widget_show() will still get called on the window when appropriate (either immediately, or when the user clicks the docklet, etc)." Modified Paths: -------------- trunk/gtk/gtkblist.c Modified: trunk/gtk/gtkblist.c =================================================================== --- trunk/gtk/gtkblist.c 2006-09-09 10:39:06 UTC (rev 17199) +++ trunk/gtk/gtkblist.c 2006-09-09 19:31:45 UTC (rev 17200) @@ -4081,7 +4081,7 @@ /* OK... let's show this bad boy. */ gaim_gtk_blist_refresh(list); gaim_gtk_blist_restore_position(); - gtk_widget_show_all(GTK_WIDGET(gtkblist->window)); + gtk_widget_show_all(GTK_WIDGET(gtkblist->vbox)); gaim_blist_set_visible(gaim_prefs_get_bool("/gaim/gtk/blist/list_visible")); /* start the refresh timer */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dat...@us...> - 2006-09-09 19:41:50
|
Revision: 17202 http://svn.sourceforge.net/gaim/?rev=17202&view=rev Author: datallah Date: 2006-09-09 12:41:34 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Don't register the connection keepalive timer if the prpl doesn't support keepalives Modified Paths: -------------- trunk/libgaim/connection.c Modified: trunk/libgaim/connection.c =================================================================== --- trunk/libgaim/connection.c 2006-09-09 19:39:31 UTC (rev 17201) +++ trunk/libgaim/connection.c 2006-09-09 19:41:34 UTC (rev 17202) @@ -61,6 +61,14 @@ static void update_keepalive(GaimConnection *gc, gboolean on) { + GaimPluginProtocolInfo *prpl_info = NULL; + + if (gc != NULL && gc->prpl != NULL) + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); + + if (!prpl_info || !prpl_info->keepalive) + return; + if (on && !gc->keepalive) { gaim_debug_info("connection", "Activating keepalive.\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dat...@us...> - 2006-09-09 19:39:36
|
Revision: 17201 http://svn.sourceforge.net/gaim/?rev=17201&view=rev Author: datallah Date: 2006-09-09 12:39:31 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Prevent irc accounts from being disconnected for long periods without us noticing. Use the prpl keepalive cb to ping the server if we haven't received anything in at least 60 seconds. Modified Paths: -------------- trunk/libgaim/protocols/irc/cmds.c trunk/libgaim/protocols/irc/irc.c trunk/libgaim/protocols/irc/irc.h trunk/libgaim/protocols/irc/parse.c Modified: trunk/libgaim/protocols/irc/cmds.c =================================================================== --- trunk/libgaim/protocols/irc/cmds.c 2006-09-09 19:31:45 UTC (rev 17200) +++ trunk/libgaim/protocols/irc/cmds.c 2006-09-09 19:39:31 UTC (rev 17201) @@ -1,10 +1,10 @@ /** * @file cmds.c - * + * * gaim * * Copyright (C) 2003, Ethan Blanton <ebl...@cs...> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -336,10 +336,14 @@ stamp = g_strdup_printf("\001PING %lu\001", time(NULL)); buf = irc_format(irc, "vn:", "PRIVMSG", args[0], stamp); g_free(stamp); - } else { + } else if (target) { stamp = g_strdup_printf("%s %lu", target, time(NULL)); buf = irc_format(irc, "v:", "PING", stamp); g_free(stamp); + } else { + stamp = g_strdup_printf("%lu", time(NULL)); + buf = irc_format(irc, "vv", "PING", stamp); + g_free(stamp); } irc_send(irc, buf); g_free(buf); Modified: trunk/libgaim/protocols/irc/irc.c =================================================================== --- trunk/libgaim/protocols/irc/irc.c 2006-09-09 19:31:45 UTC (rev 17200) +++ trunk/libgaim/protocols/irc/irc.c 2006-09-09 19:39:31 UTC (rev 17201) @@ -37,6 +37,8 @@ #include "irc.h" +#define PING_TIMEOUT 60 + static void irc_buddy_append(char *name, struct irc_buddy *ib, GString *string); static const char *irc_blist_icon(GaimAccount *a, GaimBuddy *b); @@ -373,6 +375,8 @@ } g_free(buf); + irc->recv_time = time(NULL); + return TRUE; } @@ -787,6 +791,13 @@ } } +static void irc_keepalive(GaimConnection *gc) +{ + struct irc_conn *irc = gc->proto_data; + if ((time(NULL) - irc->recv_time) > PING_TIMEOUT) + irc_cmd_ping(irc, NULL, NULL, NULL); +} + static GaimPluginProtocolInfo prpl_info = { OPT_PROTO_CHAT_TOPIC | OPT_PROTO_PASSWORD_OPTIONAL, @@ -826,7 +837,7 @@ irc_chat_leave, /* chat_leave */ NULL, /* chat_whisper */ irc_chat_send, /* chat_send */ - NULL, /* keepalive */ + irc_keepalive, /* keepalive */ NULL, /* register_user */ NULL, /* get_cb_info */ NULL, /* get_cb_away */ Modified: trunk/libgaim/protocols/irc/irc.h =================================================================== --- trunk/libgaim/protocols/irc/irc.h 2006-09-09 19:31:45 UTC (rev 17200) +++ trunk/libgaim/protocols/irc/irc.h 2006-09-09 19:39:31 UTC (rev 17201) @@ -83,6 +83,8 @@ GaimCircBuffer *outbuf; guint writeh; + + time_t recv_time; }; struct irc_buddy { Modified: trunk/libgaim/protocols/irc/parse.c =================================================================== --- trunk/libgaim/protocols/irc/parse.c 2006-09-09 19:31:45 UTC (rev 17200) +++ trunk/libgaim/protocols/irc/parse.c 2006-09-09 19:39:31 UTC (rev 17201) @@ -533,6 +533,8 @@ char *cur, *end, *tmp, *from, *msgname, *fmt, **args, *msg; guint i; + irc->recv_time = time(NULL); + if (!strncmp(input, "PING ", 5)) { msg = irc_format(irc, "vv", "PONG", input + 5); irc_send(irc, msg); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <the...@us...> - 2006-09-09 10:39:11
|
Revision: 17199 http://svn.sourceforge.net/gaim/?rev=17199&view=rev Author: thekingant Date: 2006-09-09 03:39:06 -0700 (Sat, 09 Sep 2006) Log Message: ----------- This should fix the bug where GStreamer would sometimes fail to initialize correctly. See the insanely long comment I added to the code if you want an explanation. I'm open to suggestions for a better way to fix this. Modified Paths: -------------- trunk/gtk/gtkmain.c Modified: trunk/gtk/gtkmain.c =================================================================== --- trunk/gtk/gtkmain.c 2006-09-09 07:06:44 UTC (rev 17198) +++ trunk/gtk/gtkmain.c 2006-09-09 10:39:06 UTC (rev 17199) @@ -89,6 +89,8 @@ #endif #ifdef HAVE_SIGNAL_H +static guint clean_pid_timeout = 0; + /* * Lists of signals we wish to catch and those we wish to ignore. * Each list terminated with -1 @@ -143,12 +145,44 @@ } #ifdef HAVE_SIGNAL_H -static void -clean_pid(void) +static void sighandler(int sig); + +/** + * Reap all our dead children. Sometimes Gaim forks off a separate + * process to do some stuff. When that process exits we are + * informed about it so that we can call waitpid() and let it + * stop being a zombie. + * + * We used to do this immediately when our signal handler was + * called, but because of GStreamer we now wait one second before + * reaping anything. Why? For some reason GStreamer fork()s + * during their initialization process. I don't understand why... + * but they do it, and there's nothing we can do about it. + * + * Anyway, so then GStreamer waits for its child to die and then + * it continues with the initialization process. This means that + * we have a race condition where GStreamer is waitpid()ing for its + * child to die and we're catching the SIGCHLD signal. If GStreamer + * is awarded the zombied process then everything is ok. But if Gaim + * reaps the zombie process then the GStreamer initialization sequence + * fails. + * + * So the ugly solution is to wait a second to give GStreamer time to + * reap that bad boy. + * + * GStreamer 0.10.10 and newer have a gst_register_fork_set_enabled() + * function that can be called by applications to disable forking + * during initialization. But it's not in 0.10.0, so we shouldn't + * use it. + */ +static gboolean +clean_pid(gpointer data) { int status; pid_t pid; + clean_pid_timeout = 0; + do { pid = waitpid(-1, &status, WNOHANG); } while (pid != 0 && pid != (pid_t)-1); @@ -158,6 +192,12 @@ snprintf(errmsg, BUFSIZ, "Warning: waitpid() returned %d", pid); perror(errmsg); } + + /* Restore signal catching */ + signal(SIGCHLD, sighandler); + + /* This timer should not be called again by glib */ + return FALSE; } char *segfault_message; @@ -175,8 +215,9 @@ abort(); break; case SIGCHLD: - clean_pid(); - signal(SIGCHLD, sighandler); /* restore signal catching on this one! */ + if (clean_pid_timeout > 0) + gaim_timeout_remove(clean_pid_timeout); + clean_pid_timeout = gaim_timeout_add(1000, clean_pid, NULL); break; default: gaim_debug_warning("sighandler", "Caught signal %d\n", sig); @@ -761,6 +802,8 @@ gtk_main(); #ifdef HAVE_SIGNAL_H + if (clean_pid_timeout > 0) + gaim_timeout_remove(clean_pid_timeout); g_free(segfault_message); #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sa...@us...> - 2006-09-09 07:06:48
|
Revision: 17198 http://svn.sourceforge.net/gaim/?rev=17198&view=rev Author: sadrul Date: 2006-09-09 00:06:44 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Patch #1443283 "Debug window: Filtering with Debug Level": "This patch allows to filter on the level of the debug-message." And there are some discussions about the width of the toolbar in the tracker, if anyone is interested. Modified Paths: -------------- trunk/gtk/gtkdebug.c Modified: trunk/gtk/gtkdebug.c =================================================================== --- trunk/gtk/gtkdebug.c 2006-09-09 06:49:05 UTC (rev 17197) +++ trunk/gtk/gtkdebug.c 2006-09-09 07:06:44 UTC (rev 17198) @@ -65,6 +65,7 @@ #else GtkWidget *find; #endif /* HAVE_REGEX_H */ + GtkWidget *filterlevel; } DebugWindow; static char debug_fg_colors[][8] = { @@ -379,10 +380,12 @@ { DebugWindow *win = (DebugWindow *)data; gchar *text; + GaimDebugLevel level; - gtk_tree_model_get(m, iter, 0, &text, -1); + gtk_tree_model_get(m, iter, 0, &text, 1, &level, -1); - regex_match(win, text); + if (level >= gaim_prefs_get_int("/gaim/gtk/debug/filterlevel")) + regex_match(win, text); g_free(text); @@ -406,9 +409,11 @@ { DebugWindow *win = (DebugWindow *)data; gchar *text; + GaimDebugLevel level; - gtk_tree_model_get(m, iter, 0, &text, -1); - gtk_imhtml_append_text(GTK_IMHTML(win->text), text, 0); + gtk_tree_model_get(m, iter, 0, &text, 1, &level, -1); + if (level >= gaim_prefs_get_int("/gaim/gtk/debug/filterlevel")) + gtk_imhtml_append_text(GTK_IMHTML(win->text), text, 0); g_free(text); return FALSE; @@ -512,6 +517,7 @@ GtkTreeIter *iter, DebugWindow *win) { gchar *text; + GaimDebugLevel level; if(!win || !win->window) return; @@ -525,12 +531,14 @@ if(win->paused) return; - gtk_tree_model_get(model, iter, 0, &text, -1); + gtk_tree_model_get(model, iter, 0, &text, 1, &level, -1); - if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(win->filter))) { - regex_match(win, text); - } else { - gtk_imhtml_append_text(GTK_IMHTML(win->text), text, 0); + if (level >= gaim_prefs_get_int("/gaim/gtk/debug/filterlevel")) { + if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(win->filter))) { + regex_match(win, text); + } else { + gtk_imhtml_append_text(GTK_IMHTML(win->text), text, 0); + } } g_free(text); @@ -608,8 +616,72 @@ regex_show_all(win); } +static void +filter_level_pref_changed(const char *name, GaimPrefType type, gconstpointer value, gpointer data) +{ + DebugWindow *win = data; + + if (GPOINTER_TO_INT(value) != gtk_combo_box_get_active(GTK_COMBO_BOX(win->filterlevel))) + gtk_combo_box_set_active(GTK_COMBO_BOX(win->filterlevel), GPOINTER_TO_INT(value)); + if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(win->filter))) + regex_filter_all(win); + else + regex_show_all(win); +} #endif /* HAVE_REGEX_H */ +static void +filter_level_changed_cb(GtkWidget *combo, gpointer null) +{ + gaim_prefs_set_int("/gaim/gtk/debug/filterlevel", + gtk_combo_box_get_active(GTK_COMBO_BOX(combo))); +} + +static void +toolbar_style_pref_changed_cb(const char *name, GaimPrefType type, gconstpointer value, gpointer data) +{ + gtk_toolbar_set_style(GTK_TOOLBAR(data), GPOINTER_TO_INT(value)); +} + +static void +toolbar_icon_pref_changed(GtkWidget *item, GtkWidget *toolbar) +{ + int style = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(item), "user_data")); + gaim_prefs_set_int("/gaim/gtk/debug/style", style); +} + +static gboolean +toolbar_context(GtkWidget *toolbar, GdkEventButton *event, gpointer null) +{ + GtkWidget *menu, *item; + const char *text[3]; + GtkToolbarStyle value[3]; + int i; + + if (!(event->button == 3 && event->type == GDK_BUTTON_PRESS)) + return FALSE; + + text[0] = _("_Icon Only"); value[0] = GTK_TOOLBAR_ICONS; + text[1] = _("_Text Only"); value[1] = GTK_TOOLBAR_TEXT; + text[2] = _("_Both Icon & Text"); value[2] = GTK_TOOLBAR_BOTH_HORIZ; + + menu = gtk_menu_new(); + + for (i = 0; i < 3; i++) { + item = gtk_check_menu_item_new_with_mnemonic(text[i]); + g_object_set_data(G_OBJECT(item), "user_data", GINT_TO_POINTER(value[i])); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(toolbar_icon_pref_changed), toolbar); + if (value[i] == gaim_prefs_get_int("/gaim/gtk/debug/style")) + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), TRUE); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + } + + gtk_widget_show_all(menu); + + gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time()); + return FALSE; +} + static DebugWindow * debug_window_new(void) { @@ -644,7 +716,7 @@ #ifdef HAVE_REGEX_H /* the list store for all the messages */ - win->store = gtk_list_store_new(1, G_TYPE_STRING); + win->store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); /* row-changed gets called when we do gtk_list_store_set, and row-inserted * gets called with gtk_list_store_append, which is a @@ -664,9 +736,15 @@ /* Setup our top button bar thingie. */ toolbar = gtk_toolbar_new(); gtk_toolbar_set_tooltips(GTK_TOOLBAR(toolbar), TRUE); +#if GTK_CHECK_VERSION(2,4,0) + gtk_toolbar_set_show_arrow(GTK_TOOLBAR(toolbar), TRUE); +#endif + g_signal_connect(G_OBJECT(toolbar), "button-press-event", G_CALLBACK(toolbar_context), win); gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), - GTK_TOOLBAR_BOTH_HORIZ); + gaim_prefs_get_int("/gaim/gtk/debug/style")); + gaim_prefs_connect_callback(handle, "/gaim/gtk/debug/style", + toolbar_style_pref_changed_cb, toolbar); gtk_toolbar_set_icon_size(GTK_TOOLBAR(toolbar), GTK_ICON_SIZE_SMALL_TOOLBAR); @@ -766,6 +844,33 @@ regex_pref_highlight_cb, win); #endif /* HAVE_REGEX_H */ + + gtk_toolbar_insert_space(GTK_TOOLBAR(toolbar), -1); + + gtk_toolbar_append_element(GTK_TOOLBAR(toolbar), + GTK_TOOLBAR_CHILD_WIDGET, gtk_label_new(_("Level ")), + NULL, _("Select the debug filter level."), + NULL, NULL, NULL, NULL); + + win->filterlevel = gtk_combo_box_new_text(); + gtk_toolbar_append_element(GTK_TOOLBAR(toolbar), + GTK_TOOLBAR_CHILD_WIDGET, win->filterlevel, + NULL, _("Select the debug filter level."), + NULL, NULL, NULL, NULL); + gtk_combo_box_append_text(GTK_COMBO_BOX(win->filterlevel), _("All")); + gtk_combo_box_append_text(GTK_COMBO_BOX(win->filterlevel), _("Misc")); + gtk_combo_box_append_text(GTK_COMBO_BOX(win->filterlevel), _("Info")); + gtk_combo_box_append_text(GTK_COMBO_BOX(win->filterlevel), _("Warning")); + gtk_combo_box_append_text(GTK_COMBO_BOX(win->filterlevel), _("Error ")); + gtk_combo_box_append_text(GTK_COMBO_BOX(win->filterlevel), _("Fatal Error")); + gtk_combo_box_set_active(GTK_COMBO_BOX(win->filterlevel), + gaim_prefs_get_int("/gaim/gtk/debug/filterlevel")); +#ifdef HAVE_REGEX_H + gaim_prefs_connect_callback(handle, "/gaim/gtk/debug/filterlevel", + filter_level_pref_changed, win); +#endif + g_signal_connect(G_OBJECT(win->filterlevel), "changed", + G_CALLBACK(filter_level_changed_cb), NULL); } /* Add the gtkimhtml */ @@ -865,6 +970,8 @@ /* Controls printing to the debug window */ gaim_prefs_add_bool("/gaim/gtk/debug/enabled", FALSE); + gaim_prefs_add_int("/gaim/gtk/debug/filterlevel", GAIM_DEBUG_ALL); + gaim_prefs_add_int("/gaim/gtk/debug/style", GTK_TOOLBAR_BOTH_HORIZ); gaim_prefs_add_bool("/gaim/gtk/debug/toolbar", TRUE); gaim_prefs_add_int("/gaim/gtk/debug/width", 450); @@ -988,9 +1095,9 @@ #ifdef HAVE_REGEX_H /* add the text to the list store */ gtk_list_store_append(debug_win->store, &iter); - gtk_list_store_set(debug_win->store, &iter, 0, s, -1); + gtk_list_store_set(debug_win->store, &iter, 0, s, 1, level, -1); #else /* HAVE_REGEX_H */ - if(!debug_win->paused) + if(!debug_win->paused && level >= gaim_prefs_get_int("/gaim/gtk/debug/filterlevel")) gtk_imhtml_append_text(GTK_IMHTML(debug_win->text), s, 0); #endif /* !HAVE_REGEX_H */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |