diff libpurple/protocols/gg/gg.c @ 21235:fba1f6c3df0b

Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
author Gabriel Schulhof <nix@go-nix.ca>
date Sun, 14 Oct 2007 18:07:19 +0000
parents cab348e39751
children 73c5f5bfeb39 a20ef7180680
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Sun Oct 14 03:14:43 2007 +0000
+++ b/libpurple/protocols/gg/gg.c	Sun Oct 14 18:07:19 2007 +0000
@@ -336,7 +336,7 @@
 	purple_request_file_with_hint(action, _("Save buddylist..."), NULL, TRUE,
 			G_CALLBACK(ggp_callback_buddylist_save_ok), NULL,
 			purple_connection_get_account(gc), NULL, NULL,
-			"blist", gc);
+			PURPLE_REQUEST_HINT_BLIST, gc);
 }
 /* }}} */
 
@@ -350,7 +350,7 @@
 	purple_request_file_with_hint(action, "Load buddylist from file...", NULL, FALSE,
 			G_CALLBACK(ggp_callback_buddylist_load_ok), NULL,
 			purple_connection_get_account(gc), NULL, NULL,
-			"blist", gc);
+			PURPLE_REQUEST_HINT_BLIST, gc);
 }
 /* }}} */
 
@@ -506,7 +506,7 @@
 		_("OK"), G_CALLBACK(ggp_callback_register_account_ok),
 		_("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel),
 		purple_connection_get_account(gc), NULL, NULL,
-		"register-account", gc);
+		PURPLE_REQUEST_HINT_REGISTER, gc);
 }
 /* }}} */
 
@@ -665,7 +665,7 @@
 		_("OK"), G_CALLBACK(ggp_callback_find_buddies),
 		_("Cancel"), NULL,
 		purple_connection_get_account(gc), NULL, NULL,
-		"blist", gc);
+		PURPLE_REQUEST_HINT_BLIST, gc);
 }
 /* }}} */
 
@@ -802,7 +802,7 @@
 		fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok),
 		_("Cancel"), NULL,
 		purple_connection_get_account(gc), NULL, NULL,
-		"account", gc);
+		PURPLE_REQUEST_HINT_ACCOUNT, gc);
 
 	g_free(msg);
 }
@@ -883,7 +883,7 @@
 			_("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok),
 			_("Cancel"), NULL,
 			purple_connection_get_account(gc), NULL, NULL,			  
-			"buddy", gc);
+			PURPLE_REQUEST_HINT_BUDDY, gc);
 	g_free(msg);
 }
 /* }}} */