/soc/2013/ankitkv/gobjectification: eb33b477148d: Added a case f...

Ankit Vani a at nevitus.org
Thu Jul 18 17:22:05 EDT 2013


Changeset: eb33b477148d3c7733650e0ded8a7f219297c720
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-19 02:51 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/eb33b477148d

Description:

Added a case for enum types in tcl_signals.c

diffstat:

 libpurple/plugins/tcl/tcl_signals.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff --git a/libpurple/plugins/tcl/tcl_signals.c b/libpurple/plugins/tcl/tcl_signals.c
--- a/libpurple/plugins/tcl/tcl_signals.c
+++ b/libpurple/plugins/tcl/tcl_signals.c
@@ -209,7 +209,6 @@ static void *tcl_signal_callback(va_list
 		case G_TYPE_UINT:
 		case G_TYPE_LONG:
 		case G_TYPE_ULONG:
-		case G_TYPE_ENUM:
 			/* I should really cast these individually to
 			 * preserve as much information as possible ...
 			 * but heh */
@@ -325,6 +324,10 @@ static void *tcl_signal_callback(va_list
 										  purple_chat_get_account(PURPLE_CHAT(node))));
 				}
 			}
+			else if (G_TYPE_IS_ENUM(handler->argtypes[i]))
+			{
+				arg = Tcl_NewIntObj(va_arg(args, int));
+			}
 			else
 			{
 				/* What?  I guess just pass the word ... */



More information about the Commits mailing list