/soc/2013/ankitkv/gobjectification: ec0d44434ba8: Merged default...

Ankit Vani a at nevitus.org
Thu Feb 6 09:47:10 EST 2014


Changeset: ec0d44434ba8656020b08ddba46ed65e5b1a15af
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2014-02-06 19:50 +0530
Branch:	 gtkdoc-conversion
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/ec0d44434ba8

Description:

Merged default branch

diffstat:

 ChangeLog.API                                  |  23 ++++++++++++++++
 finch/gntaccount.c                             |   4 +-
 finch/gntblist.c                               |   8 ++--
 finch/gntnotify.c                              |   2 +-
 finch/gntplugin.c                              |   6 ++--
 finch/gntrequest.c                             |  15 +++++-----
 finch/gntstatus.c                              |   8 ++--
 finch/libgnt/gnt-skel.c                        |   2 +-
 finch/libgnt/gnt-skel.h                        |   4 +-
 finch/libgnt/gntbindable.c                     |   2 +-
 finch/libgnt/gntbindable.h                     |   4 +-
 finch/libgnt/gntbox.c                          |   2 +-
 finch/libgnt/gntbox.h                          |   4 +-
 finch/libgnt/gntbutton.c                       |   2 +-
 finch/libgnt/gntbutton.h                       |   4 +-
 finch/libgnt/gntcheckbox.c                     |   2 +-
 finch/libgnt/gntcheckbox.h                     |   4 +-
 finch/libgnt/gntclipboard.c                    |   2 +-
 finch/libgnt/gntclipboard.h                    |   4 +-
 finch/libgnt/gntcombobox.c                     |   2 +-
 finch/libgnt/gntcombobox.h                     |   4 +-
 finch/libgnt/gntentry.c                        |   2 +-
 finch/libgnt/gntentry.h                        |   4 +-
 finch/libgnt/gntfilesel.c                      |   2 +-
 finch/libgnt/gntfilesel.h                      |   4 +-
 finch/libgnt/gntlabel.c                        |   2 +-
 finch/libgnt/gntlabel.h                        |   4 +-
 finch/libgnt/gntline.c                         |   2 +-
 finch/libgnt/gntline.h                         |   4 +-
 finch/libgnt/gntmenu.c                         |   2 +-
 finch/libgnt/gntmenu.h                         |   4 +-
 finch/libgnt/gntmenuitem.c                     |   2 +-
 finch/libgnt/gntmenuitem.h                     |   4 +-
 finch/libgnt/gntmenuitemcheck.c                |   2 +-
 finch/libgnt/gntmenuitemcheck.h                |   4 +-
 finch/libgnt/gntprogressbar.c                  |   2 +-
 finch/libgnt/gntprogressbar.h                  |   4 +-
 finch/libgnt/gntslider.c                       |   2 +-
 finch/libgnt/gntslider.h                       |   4 +-
 finch/libgnt/gnttextview.c                     |   2 +-
 finch/libgnt/gnttextview.h                     |   4 +-
 finch/libgnt/gnttree.c                         |   2 +-
 finch/libgnt/gnttree.h                         |   4 +-
 finch/libgnt/gntwidget.c                       |   2 +-
 finch/libgnt/gntwidget.h                       |   4 +-
 finch/libgnt/gntwindow.c                       |   2 +-
 finch/libgnt/gntwindow.h                       |   4 +-
 finch/libgnt/gntwm.c                           |   2 +-
 finch/libgnt/gntwm.h                           |   4 +-
 finch/libgnt/gntws.c                           |   2 +-
 finch/libgnt/gntws.h                           |   4 +-
 finch/libgnt/wms/irssi.c                       |   6 ++--
 finch/libgnt/wms/s.c                           |   6 ++--
 libpurple/account.c                            |   2 +-
 libpurple/accountopt.c                         |   2 +-
 libpurple/accountopt.h                         |   2 +-
 libpurple/accounts.c                           |  18 ++++++------
 libpurple/dnsquery.c                           |   2 +-
 libpurple/dnssrv.c                             |   6 ++--
 libpurple/dnssrv.h                             |   4 +-
 libpurple/http.c                               |   4 +-
 libpurple/notify.c                             |   5 ++-
 libpurple/notify.h                             |   7 ++--
 libpurple/pluginpref.c                         |  10 +++---
 libpurple/pluginpref.h                         |   4 +-
 libpurple/plugins/autoaccept.c                 |   2 +-
 libpurple/plugins/perl/common/AccountOpts.xs   |   2 +-
 libpurple/plugins/perl/common/PluginPref.xs    |   6 ++--
 libpurple/plugins/perl/common/Prefs.xs         |   2 +-
 libpurple/plugins/perl/common/Proxy.xs         |   4 +-
 libpurple/plugins/perl/common/Request.xs       |   4 +-
 libpurple/plugins/perl/common/SavedStatuses.xs |   6 ++--
 libpurple/plugins/pluginpref_example.c         |   4 +-
 libpurple/plugins/tcl/tcl_cmds.c               |   8 ++--
 libpurple/prefs.c                              |   2 +-
 libpurple/prefs.h                              |   2 +-
 libpurple/protocols/bonjour/bonjour_ft.c       |   2 +-
 libpurple/protocols/bonjour/jabber.c           |   2 +-
 libpurple/protocols/gg/deprecated.c            |   4 +-
 libpurple/protocols/gg/validator.c             |   8 ++--
 libpurple/protocols/jabber/si.c                |   4 +-
 libpurple/protocols/msn/msn.c                  |   2 +-
 libpurple/protocols/sametime/sametime.c        |   2 +-
 libpurple/protocols/yahoo/util.c               |   2 +-
 libpurple/proxy.c                              |  36 +++++++++++++-------------
 libpurple/proxy.h                              |   4 +-
 libpurple/request.c                            |   6 ++--
 libpurple/request.h                            |   4 +-
 libpurple/savedstatuses.c                      |  12 ++++----
 libpurple/savedstatuses.h                      |  21 +++++++-------
 libpurple/status.h                             |  10 +++---
 pidgin/gtkaccount.c                            |   8 ++--
 pidgin/gtkblist.c                              |   2 +-
 pidgin/gtkdocklet.c                            |  10 +++---
 pidgin/gtkpluginpref.c                         |   8 ++--
 pidgin/gtkprefs.c                              |   6 ++--
 pidgin/gtkrequest.c                            |  12 ++++----
 pidgin/gtksavedstatuses.c                      |  17 ++++++-----
 pidgin/gtkstatusbox.c                          |  21 +++++++-------
 pidgin/plugins/contact_priority.c              |   4 +-
 pidgin/plugins/extplacement.c                  |   2 +-
 pidgin/plugins/unity.c                         |   2 +-
 102 files changed, 279 insertions(+), 250 deletions(-)

diffs (truncated from 2502 to 300 lines):

diff --git a/ChangeLog.API b/ChangeLog.API
--- a/ChangeLog.API
+++ b/ChangeLog.API
@@ -143,6 +143,8 @@ version 3.0.0 (??/??/????):
 		  details.
 		* purple_account_get_alias renamed to purple_account_get_private_alias
 		* purple_account_set_alias renamed to purple_account_set_private_alias
+		* purple_account_option_get_type renamed to
+		  purple_account_option_get_pref_type
 		* PurplePrivacyType renamed to PurpleAccountPrivacyType
 		* purple_privacy_* functions are now purple_account_privacy_*
 		* Removed arguments local and restore from purple_account_privacy_allow
@@ -215,15 +217,36 @@ version 3.0.0 (??/??/????):
 		  purple_notify_user_info_add_pair_html
 		* purple_notify_user_info_get_entries returns a GQueue instead of
 		  a GList
+		* purple_notify_user_info_entry_get_type renamed to
+		  purple_notify_user_info_entry_get_entry_type
+		* purple_notify_user_info_entry_set_type renamed to
+		  purple_notify_user_info_entry_set_entry_type
 		* purple_notify_user_info_prepend_pair renamed to
 		  purple_notify_user_info_prepend_pair_html
+		* purple_plugin_pref_get_type renamed to
+		  purple_plugin_pref_get_pref_type
+		* purple_plugin_pref_set_type renamed to
+		  purple_plugin_pref_set_pref_type
+		* purple_prefs_get_type renamed to purple_prefs_get_pref_type
+		* purple_proxy_info_get_type renamed to purple_proxy_info_get_proxy_type
+		* purple_proxy_info_set_type renamed to purple_proxy_info_set_proxy_type
+		* purple_request_field_get_type renamed to
+		  purple_request_field_get_field_type
 		* PurpleRoomlist is now a GObject. Please see the documentation for
 		  details.
 		* purple_roomlist_room_get_type is now
 		  purple_roomlist_room_get_room_type
 		* purple_roomlist_field_get_type is now
 		  purple_roomlist_field_get_field_type
+		* purple_savedstatus_get_type renamed to
+		  purple_savedstatus_get_primitive_type
+		* purple_savedstatus_set_type renamed to
+		  purple_savedstatus_set_primitive_type
+		* purple_savedstatus_substatus_get_type renamed to
+		  purple_savedstatus_substatus_get_status_type
 		* purple_srv_resolve now takes a PurpleAccount as the first parameter
+		* purple_srv_txt_query_get_type renamed to
+		  purple_srv_txt_query_get_query_type
 		* PurpleStatus is now a GObject. Please see the documentation for
 		  details.
 		* purple_status_attr_* functions are now purple_status_attribute_*
diff --git a/finch/gntaccount.c b/finch/gntaccount.c
--- a/finch/gntaccount.c
+++ b/finch/gntaccount.c
@@ -220,7 +220,7 @@ save_account_cb(AccountEditDialog *dialo
 		{
 			PurpleAccountOption *option = iter->data;
 			GntWidget *entry = entries->data;
-			PurplePrefType type = purple_account_option_get_type(option);
+			PurplePrefType type = purple_account_option_get_pref_type(option);
 			const char *setting = purple_account_option_get_setting(option);
 
 			if (type == PURPLE_PREF_STRING)
@@ -410,7 +410,7 @@ add_protocol_options(AccountEditDialog *
 	for (iter = prplinfo->protocol_options; iter; iter = iter->next)
 	{
 		PurpleAccountOption *option = iter->data;
-		PurplePrefType type = purple_account_option_get_type(option);
+		PurplePrefType type = purple_account_option_get_pref_type(option);
 
 		box = gnt_hbox_new(TRUE);
 		gnt_box_set_pad(GNT_BOX(box), 0);
diff --git a/finch/gntblist.c b/finch/gntblist.c
--- a/finch/gntblist.c
+++ b/finch/gntblist.c
@@ -1092,7 +1092,7 @@ chat_components_edit_ok(PurpleChat *chat
 			char *val;
 
 			id = purple_request_field_get_id(field);
-			if (purple_request_field_get_type(field) == PURPLE_REQUEST_FIELD_INTEGER)
+			if (purple_request_field_get_field_type(field) == PURPLE_REQUEST_FIELD_INTEGER)
 				val = g_strdup_printf("%d", purple_request_field_int_get_value(field));
 			else
 				val = g_strdup(purple_request_field_string_get_value(field));
@@ -2175,7 +2175,7 @@ remove_typing_cb(gpointer null)
 
 	current = purple_savedstatus_get_current();
 	message = purple_savedstatus_get_message(current);
-	prim = purple_savedstatus_get_type(current);
+	prim = purple_savedstatus_get_primitive_type(current);
 
 	newmessage = gnt_entry_get_text(GNT_ENTRY(ggblist->statustext));
 	item = gnt_combo_box_get_selected_data(GNT_COMBO_BOX(ggblist->status));
@@ -2186,7 +2186,7 @@ remove_typing_cb(gpointer null)
 			newprim = item->u.prim;
 			break;
 		case STATUS_SAVED_POPULAR:
-			newprim = purple_savedstatus_get_type(item->u.saved);
+			newprim = purple_savedstatus_get_primitive_type(item->u.saved);
 			break;
 		default:
 			goto end;  /* 'New' or 'Saved' is selected, but this should never happen. */
@@ -2287,7 +2287,7 @@ savedstatus_changed(PurpleSavedStatus *n
 	g_signal_handlers_block_matched(ggblist->statustext, G_SIGNAL_MATCH_FUNC,
 			0, 0, NULL, status_text_changed, NULL);
 
-	prim = purple_savedstatus_get_type(now);
+	prim = purple_savedstatus_get_primitive_type(now);
 	message = purple_savedstatus_get_message(now);
 
 	/* Rebuild the status dropdown */
diff --git a/finch/gntnotify.c b/finch/gntnotify.c
--- a/finch/gntnotify.c
+++ b/finch/gntnotify.c
@@ -292,7 +292,7 @@ purple_notify_user_info_get_xhtml(Purple
 	for (l = purple_notify_user_info_get_entries(user_info)->head; l != NULL;
 			l = l->next) {
 		PurpleNotifyUserInfoEntry *user_info_entry = l->data;
-		PurpleNotifyUserInfoEntryType type = purple_notify_user_info_entry_get_type(user_info_entry);
+		PurpleNotifyUserInfoEntryType type = purple_notify_user_info_entry_get_entry_type(user_info_entry);
 		const char *label = purple_notify_user_info_entry_get_label(user_info_entry);
 		const char *value = purple_notify_user_info_entry_get_value(user_info_entry);
 
diff --git a/finch/gntplugin.c b/finch/gntplugin.c
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -504,7 +504,7 @@ process_pref_frame(PurplePluginPrefFrame
 			if(label == NULL)
 				continue;
 
-			if(purple_plugin_pref_get_type(pref) == PURPLE_PLUGIN_PREF_INFO) {
+			if(purple_plugin_pref_get_pref_type(pref) == PURPLE_PLUGIN_PREF_INFO) {
 				field = purple_request_field_label_new("*", purple_plugin_pref_get_label(pref));
 				purple_request_field_group_add_field(group, field);
 			} else {
@@ -515,8 +515,8 @@ process_pref_frame(PurplePluginPrefFrame
 		}
 
 		field = NULL;
-		type = purple_prefs_get_type(name);
-		if(purple_plugin_pref_get_type(pref) == PURPLE_PLUGIN_PREF_CHOICE) {
+		type = purple_prefs_get_pref_type(name);
+		if(purple_plugin_pref_get_pref_type(pref) == PURPLE_PLUGIN_PREF_CHOICE) {
 			GList *list = purple_plugin_pref_get_choices(pref);
 			gpointer current_value = NULL;
 
diff --git a/finch/gntrequest.c b/finch/gntrequest.c
--- a/finch/gntrequest.c
+++ b/finch/gntrequest.c
@@ -308,7 +308,7 @@ request_fields_cb(GntWidget *button, Pur
 		for (; fields ; fields = fields->next)
 		{
 			PurpleRequestField *field = fields->data;
-			PurpleRequestFieldType type = purple_request_field_get_type(field);
+			PurpleRequestFieldType type = purple_request_field_get_field_type(field);
 			if (!purple_request_field_is_visible(field))
 				continue;
 			if (type == PURPLE_REQUEST_FIELD_BOOLEAN)
@@ -429,7 +429,7 @@ create_boolean_field(PurpleRequestField 
 static GntWidget*
 create_string_field(PurpleRequestField *field, GntWidget **username)
 {
-	const char *hint = purple_request_field_get_type_hint(field);
+	const char *hint = purple_request_field_get_field_type_hint(field);
 	GntWidget *entry = gnt_entry_new(
 			purple_request_field_string_get_default_value(field));
 	gnt_entry_set_masked(GNT_ENTRY(entry),
@@ -624,7 +624,7 @@ finch_request_fields(const char *title, 
 		for (; fields ; fields = fields->next)
 		{
 			PurpleRequestField *field = fields->data;
-			PurpleRequestFieldType type = purple_request_field_get_type(field);
+			PurpleRequestFieldType type = purple_request_field_get_field_type(field);
 			const char *label = purple_request_field_get_label(field);
 
 			if (!purple_request_field_is_visible(field))
@@ -844,7 +844,7 @@ void finch_request_save_in_prefs(gpointe
 
 		for (; fields ; fields = fields->next) {
 			PurpleRequestField *field = fields->data;
-			PurpleRequestFieldType type = purple_request_field_get_type(field);
+			PurpleRequestFieldType type = purple_request_field_get_field_type(field);
 			PurplePrefType pt;
 			gpointer val = NULL;
 			const char *id = purple_request_field_get_id(field);
@@ -867,7 +867,7 @@ void finch_request_save_in_prefs(gpointe
 					break;
 			}
 
-			pt = purple_prefs_get_type(id);
+			pt = purple_prefs_get_pref_type(id);
 			switch (pt) {
 				case PURPLE_PREF_INT:
 				{
@@ -893,7 +893,7 @@ void finch_request_save_in_prefs(gpointe
 GntWidget *finch_request_field_get_widget(PurpleRequestField *field)
 {
 	GntWidget *ret = NULL;
-	switch (purple_request_field_get_type(field)) {
+	switch (purple_request_field_get_field_type(field)) {
 		case PURPLE_REQUEST_FIELD_BOOLEAN:
 			ret = create_boolean_field(field);
 			break;
@@ -913,7 +913,8 @@ GntWidget *finch_request_field_get_widge
 			ret = create_account_field(field);
 			break;
 		default:
-			purple_debug_error("GntRequest", "Unimplemented request-field %d\n", purple_request_field_get_type(field));
+			purple_debug_error("GntRequest", "Unimplemented request-field %d\n",
+					purple_request_field_get_field_type(field));
 			break;
 	}
 	return ret;
diff --git a/finch/gntstatus.c b/finch/gntstatus.c
--- a/finch/gntstatus.c
+++ b/finch/gntstatus.c
@@ -94,7 +94,7 @@ populate_statuses(GntTree *tree)
 			continue;
 
 		title = purple_savedstatus_get_title(saved);
-		type = purple_primitive_get_name_from_type(purple_savedstatus_get_type(saved));
+		type = purple_primitive_get_name_from_type(purple_savedstatus_get_primitive_type(saved));
 		message = purple_savedstatus_get_message(saved);  /* XXX: Strip possible markups */
 
 		gnt_tree_add_row_last(tree, saved,
@@ -322,7 +322,7 @@ save_savedstatus_cb(GntWidget *button, E
 	else
 	{
 		purple_savedstatus_set_title(edit->saved, title);
-		purple_savedstatus_set_type(edit->saved, prim);
+		purple_savedstatus_set_primitive_type(edit->saved, prim);
 		purple_savedstatus_set_message(edit->saved, message);
 		if (statuses.tree)
 		{
@@ -358,7 +358,7 @@ add_substatus(EditStatus *edit, PurpleAc
 
 	if (sub)
 	{
-		key->type = purple_savedstatus_substatus_get_type(sub);
+		key->type = purple_savedstatus_substatus_get_status_type(sub);
 		type = purple_status_type_get_name(key->type);
 		message = purple_savedstatus_substatus_get_message(sub);
 		key->message = g_strdup(message);
@@ -545,7 +545,7 @@ void finch_savedstatus_edit(PurpleSavedS
 
 	edit->type = combo = gnt_combo_box_new();
 	gnt_box_add_widget(GNT_BOX(box), combo);
-	current = saved ? purple_savedstatus_get_type(saved) : PURPLE_STATUS_UNSET;
+	current = saved ? purple_savedstatus_get_primitive_type(saved) : PURPLE_STATUS_UNSET;
 	for (i = 0; prims[i] != PURPLE_STATUS_UNSET; i++)
 	{
 		gnt_combo_box_add_data(GNT_COMBO_BOX(combo), GINT_TO_POINTER(prims[i]),
diff --git a/finch/libgnt/gnt-skel.c b/finch/libgnt/gnt-skel.c
--- a/finch/libgnt/gnt-skel.c
+++ b/finch/libgnt/gnt-skel.c
@@ -92,7 +92,7 @@ gnt_skel_init(GTypeInstance *instance, g
  * GntSkel API
  *****************************************************************************/
 GType
-gnt_skel_get_gtype(void)
+gnt_skel_get_type(void)
 {
 	static GType type = 0;
 
diff --git a/finch/libgnt/gnt-skel.h b/finch/libgnt/gnt-skel.h
--- a/finch/libgnt/gnt-skel.h
+++ b/finch/libgnt/gnt-skel.h
@@ -34,7 +34,7 @@
 #include "gntcolors.h"
 #include "gntkeys.h"
 
-#define GNT_TYPE_SKEL				(gnt_skel_get_gtype())
+#define GNT_TYPE_SKEL				(gnt_skel_get_type())
 #define GNT_SKEL(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_SKEL, GntSkel))
 #define GNT_SKEL_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_SKEL, GntSkelClass))
 #define GNT_IS_SKEL(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_SKEL))
@@ -63,7 +63,7 @@ struct _GntSkelClass
 
 G_BEGIN_DECLS
 
-GType gnt_skel_get_gtype(void);
+GType gnt_skel_get_type(void);
 
 GntWidget * gnt_skel_new();
 
diff --git a/finch/libgnt/gntbindable.c b/finch/libgnt/gntbindable.c
--- a/finch/libgnt/gntbindable.c
+++ b/finch/libgnt/gntbindable.c
@@ -257,7 +257,7 @@ duplicate_hashes(GntBindableClass *klass
  * GntBindable API
  *****************************************************************************/
 GType
-gnt_bindable_get_gtype(void)
+gnt_bindable_get_type(void)
 {
 	static GType type = 0;
 
diff --git a/finch/libgnt/gntbindable.h b/finch/libgnt/gntbindable.h
--- a/finch/libgnt/gntbindable.h
+++ b/finch/libgnt/gntbindable.h
@@ -34,7 +34,7 @@
 #include <glib-object.h>



More information about the Commits mailing list