pidgin.next.minor: 7a565c5f: Made the Purple::Request::Field(s) funct...

deryni at pidgin.im deryni at pidgin.im
Wed Jan 7 09:05:51 EST 2009


-----------------------------------------------------------------
Revision: 7a565c5f8c00f36bc587ecccbe2526989fb3a732
Ancestor: 9f92dcfdef33f14b1b048cb8ea7377742e37bb11
Author: deryni at pidgin.im
Date: 2009-01-06T06:23:46
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/7a565c5f8c00f36bc587ecccbe2526989fb3a732

Modified files:
        ChangeLog.API libpurple/plugins/perl/common/Request.xs

ChangeLog: 

Made the Purple::Request::Field(s) functions act more perl-like.
Call the new() functions as Class->new(...) instead of Class::new(...).

-------------- next part --------------
============================================================
--- ChangeLog.API	6d3d91f31b8d68214cf475817d82aedef853db28
+++ ChangeLog.API	f263adb0fc876598bcbfe0d2d743af53e432cedb
@@ -36,6 +36,21 @@ version 2.6.0 (??/??/????):
 		  objects from GtkIMHtml protocol callbacks.
 		* pidgin_utils_init, pidgin_utils_uninit
 
+	perl:
+		Changed:
+		* Made a bunch of functions act more perl-like. Call the new()
+		  functions as Class->new(...) instead of Class::new(...):
+			* Purple::Request::Fields::new
+			* Purple::Request::Field::new
+			* Purple::Request::Field::account_new
+		 	* Purple::Request::Field::bool_new
+		 	* Purple::Request::Field::choice_new
+		 	* Purple::Request::Field::int_new
+		 	* Purple::Request::Field::label_new
+		 	* Purple::Request::Field::list_new
+		 	* Purple::Request::Field::string_new
+		 	* Purple::Request::Field::group_new
+
 version 2.5.3 (12/20/2008):
 	libpurple
 		Changed:
============================================================
--- libpurple/plugins/perl/common/Request.xs	ac83c233eb655c873588801bfaa771f0a464e325
+++ libpurple/plugins/perl/common/Request.xs	458957e43a1efba1eefe315514c67cc74e766319
@@ -211,10 +211,11 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_account_new(id, text, account = NULL)
+purple_request_field_account_new(class, id, text, account = NULL)
 	const char *id
 	const char *text
 	Purple::Account account
+	C_ARGS: id, text, account
 
 Purple::Account
 purple_request_field_account_get_default_value(field)
@@ -255,10 +256,11 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_bool_new(id, text, default_value = TRUE)
+purple_request_field_bool_new(class, id, text, default_value = TRUE)
 	const char *id
 	const char *text
 	gboolean default_value
+	C_ARGS: id, text, default_value
 
 gboolean
 purple_request_field_bool_get_default_value(field)
@@ -282,10 +284,11 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_choice_new(id, text, default_value = 0)
+purple_request_field_choice_new(class, id, text, default_value = 0)
 	const char *id
 	const char *text
 	int default_value
+	C_ARGS: id, text, default_value
 
 void
 purple_request_field_choice_add(field, label)
@@ -324,10 +327,11 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_int_new(id, text, default_value = 0)
+purple_request_field_int_new(clas, id, text, default_value = 0)
 	const char *id
 	const char *text
 	int default_value
+	C_ARGS: id, text, default_value
 
 int
 purple_request_field_int_get_default_value(field)
@@ -355,17 +359,19 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_label_new(id, text)
+purple_request_field_label_new(class, id, text)
 	const char *id
 	const char *text
+	C_ARGS: id, text
 
 MODULE = Purple::Request  PACKAGE = Purple::Request::Field  PREFIX = purple_request_field_
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_list_new(id, text)
+purple_request_field_list_new(class, id, text)
 	const char *id
 	const char *text
+	C_ARGS: id, text
 
 void
 purple_request_field_list_add(field, item, data)
@@ -425,10 +431,11 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_new(id, text, type)
+purple_request_field_new(class, id, text, type)
 	const char *id
 	const char *text
 	Purple::RequestFieldType type
+	C_ARGS: id, text, type
 
 void
 purple_request_field_set_label(field, label)
@@ -454,11 +461,12 @@ Purple::Request::Field
 PROTOTYPES: ENABLE
 
 Purple::Request::Field
-purple_request_field_string_new(id, text, default_value, multiline)
+purple_request_field_string_new(class, id, text, default_value, multiline)
 	const char *id
 	const char *text
 	const char *default_value
 	gboolean multiline
+	C_ARGS: id, text, default_value, multiline
 
 const char *
 purple_request_field_string_get_default_value(field)
@@ -527,8 +535,9 @@ Purple::Request::Field::Group
 	Purple::Request::Field::Group group
 
 Purple::Request::Field::Group
-purple_request_field_group_new(title)
+purple_request_field_group_new(class, title)
 	const char *title
+	C_ARGS: title
 
 MODULE = Purple::Request  PACKAGE = Purple::Request::Field  PREFIX = purple_request_field_
 PROTOTYPES: ENABLE
@@ -561,7 +570,8 @@ Purple::Request::Fields
 PROTOTYPES: ENABLE
 
 Purple::Request::Fields
-purple_request_fields_new()
+purple_request_fields_new(class)
+	C_ARGS: /* void */
 
 void
 purple_request_fields_add_group(fields, group)


More information about the Commits mailing list