diff pidgin/gtkdialogs.c @ 16202:0973688f4b74

Word on the street is that we don't want things named pidginfoo_bar(), but pidgin_foo_bar() instead.
author Richard Laager <rlaager@wiktel.com>
date Mon, 16 Apr 2007 05:27:17 +0000
parents 247e421c4fa6
children 5fa9896c77e8
line wrap: on
line diff
--- a/pidgin/gtkdialogs.c	Mon Apr 16 05:07:21 2007 +0000
+++ b/pidgin/gtkdialogs.c	Mon Apr 16 05:27:17 2007 +0000
@@ -246,7 +246,7 @@
 };
 
 void
-pidgindialogs_destroy_all()
+pidgin_dialogs_destroy_all()
 {
 	while (dialogwindows) {
 		gtk_widget_destroy(dialogwindows->data);
@@ -299,7 +299,7 @@
 	g_object_unref(G_OBJECT(pixmap));
 }
 
-void pidgindialogs_about()
+void pidgin_dialogs_about()
 {
 	GtkWidget *hbox;
 	GtkWidget *vbox;
@@ -674,7 +674,7 @@
 }
 
 static void
-pidgindialogs_im_cb(gpointer data, PurpleRequestFields *fields)
+pidgin_dialogs_im_cb(gpointer data, PurpleRequestFields *fields)
 {
 	PurpleAccount *account;
 	const char *username;
@@ -682,11 +682,11 @@
 	account  = purple_request_fields_get_account(fields, "account");
 	username = purple_request_fields_get_string(fields,  "screenname");
 
-	pidgindialogs_im_with_user(account, username);
+	pidgin_dialogs_im_with_user(account, username);
 }
 
 void
-pidgindialogs_im(void)
+pidgin_dialogs_im(void)
 {
 	PurpleRequestFields *fields;
 	PurpleRequestFieldGroup *group;
@@ -715,13 +715,13 @@
 						_("Please enter the screen name or alias of the person "
 						  "you would like to IM."),
 						fields,
-						_("OK"), G_CALLBACK(pidgindialogs_im_cb),
+						_("OK"), G_CALLBACK(pidgin_dialogs_im_cb),
 						_("Cancel"), NULL,
 						NULL);
 }
 
 void
-pidgindialogs_im_with_user(PurpleAccount *account, const char *username)
+pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username)
 {
 	PurpleConversation *conv;
 
@@ -737,7 +737,7 @@
 }
 
 static gboolean
-pidgindialogs_ee(const char *ee)
+pidgin_dialogs_ee(const char *ee)
 {
 	GtkWidget *window;
 	GtkWidget *hbox;
@@ -802,7 +802,7 @@
 }
 
 static void
-pidgindialogs_info_cb(gpointer data, PurpleRequestFields *fields)
+pidgin_dialogs_info_cb(gpointer data, PurpleRequestFields *fields)
 {
 	char *username;
 	gboolean found = FALSE;
@@ -814,7 +814,7 @@
 		purple_request_fields_get_string(fields,  "screenname")));
 
 	if (username != NULL && purple_str_has_suffix(username, "rocksmyworld"))
-		found = pidgindialogs_ee(username);
+		found = pidgin_dialogs_ee(username);
 
 	if (!found && username != NULL && *username != '\0' && account != NULL)
 		serv_get_info(purple_account_get_connection(account), username);
@@ -823,7 +823,7 @@
 }
 
 void
-pidgindialogs_info(void)
+pidgin_dialogs_info(void)
 {
 	PurpleRequestFields *fields;
 	PurpleRequestFieldGroup *group;
@@ -852,13 +852,13 @@
 						_("Please enter the screen name or alias of the person "
 						  "whose info you would like to view."),
 						fields,
-						_("OK"), G_CALLBACK(pidgindialogs_info_cb),
+						_("OK"), G_CALLBACK(pidgin_dialogs_info_cb),
 						_("Cancel"), NULL,
 						NULL);
 }
 
 static void
-pidgindialogs_log_cb(gpointer data, PurpleRequestFields *fields)
+pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields)
 {
 	char *username;
 	PurpleAccount *account;
@@ -903,7 +903,7 @@
  * TODO - This needs to deal with logs of all types, not just IM logs.
  */
 void
-pidgindialogs_log(void)
+pidgin_dialogs_log(void)
 {
 	PurpleRequestFields *fields;
 	PurpleRequestFieldGroup *group;
@@ -943,38 +943,38 @@
 						_("Please enter the screen name or alias of the person "
 						  "whose log you would like to view."),
 						fields,
-						_("OK"), G_CALLBACK(pidgindialogs_log_cb),
+						_("OK"), G_CALLBACK(pidgin_dialogs_log_cb),
 						_("Cancel"), NULL,
 						NULL);
 }
 
 static void
-pidgindialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias)
+pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias)
 {
 	purple_contact_set_alias(contact, new_alias);
 }
 
 void
-pidgindialogs_alias_contact(PurpleContact *contact)
+pidgin_dialogs_alias_contact(PurpleContact *contact)
 {
 	g_return_if_fail(contact != NULL);
 
 	purple_request_input(NULL, _("Alias Contact"), NULL,
 					   _("Enter an alias for this contact."),
 					   contact->alias, FALSE, FALSE, NULL,
-					   _("Alias"), G_CALLBACK(pidgindialogs_alias_contact_cb),
+					   _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb),
 					   _("Cancel"), NULL, contact);
 }
 
 static void
-pidgindialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias)
+pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias)
 {
 	purple_blist_alias_buddy(buddy, new_alias);
 	serv_alias_buddy(buddy);
 }
 
 void
-pidgindialogs_alias_buddy(PurpleBuddy *buddy)
+pidgin_dialogs_alias_buddy(PurpleBuddy *buddy)
 {
 	gchar *secondary;
 
@@ -984,32 +984,32 @@
 
 	purple_request_input(NULL, _("Alias Buddy"), NULL,
 					   secondary, buddy->alias, FALSE, FALSE, NULL,
-					   _("Alias"), G_CALLBACK(pidgindialogs_alias_buddy_cb),
+					   _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb),
 					   _("Cancel"), NULL, buddy);
 
 	g_free(secondary);
 }
 
 static void
-pidgindialogs_alias_chat_cb(PurpleChat *chat, const char *new_alias)
+pidgin_dialogs_alias_chat_cb(PurpleChat *chat, const char *new_alias)
 {
 	purple_blist_alias_chat(chat, new_alias);
 }
 
 void
-pidgindialogs_alias_chat(PurpleChat *chat)
+pidgin_dialogs_alias_chat(PurpleChat *chat)
 {
 	g_return_if_fail(chat != NULL);
 
 	purple_request_input(NULL, _("Alias Chat"), NULL,
 					   _("Enter an alias for this chat."),
 					   chat->alias, FALSE, FALSE, NULL,
-					   _("Alias"), G_CALLBACK(pidgindialogs_alias_chat_cb),
+					   _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb),
 					   _("Cancel"), NULL, chat);
 }
 
 static void
-pidgindialogs_remove_contact_cb(PurpleContact *contact)
+pidgin_dialogs_remove_contact_cb(PurpleContact *contact)
 {
 	PurpleBlistNode *bnode, *cnode;
 	PurpleGroup *group;
@@ -1025,7 +1025,7 @@
 }
 
 void
-pidgindialogs_remove_contact(PurpleContact *contact)
+pidgin_dialogs_remove_contact(PurpleContact *contact)
 {
 	PurpleBuddy *buddy = purple_contact_get_priority_buddy(contact);
 
@@ -1034,7 +1034,7 @@
 
 	if (((PurpleBlistNode*)contact)->child == (PurpleBlistNode*)buddy &&
 			!((PurpleBlistNode*)buddy)->next) {
-		pidgindialogs_remove_buddy(buddy);
+		pidgin_dialogs_remove_buddy(buddy);
 	} else {
 		gchar *text;
 		text = g_strdup_printf(
@@ -1048,7 +1048,7 @@
 					buddy->name, contact->totalsize - 1);
 
 		purple_request_action(contact, NULL, _("Remove Contact"), text, 0, contact, 2,
-				_("_Remove Contact"), G_CALLBACK(pidgindialogs_remove_contact_cb),
+				_("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb),
 				_("Cancel"), NULL);
 
 		g_free(text);
@@ -1062,14 +1062,14 @@
 }
 
 static void
-pidgindialogs_merge_groups_cb(struct _PidginGroupMergeObject *GGP)
+pidgin_dialogs_merge_groups_cb(struct _PidginGroupMergeObject *GGP)
 {
 	purple_blist_rename_group(GGP->parent, GGP->new_name);
 	free_ggmo(GGP);
 }
 
 void
-pidgindialogs_merge_groups(PurpleGroup *source, const char *new_name)
+pidgin_dialogs_merge_groups(PurpleGroup *source, const char *new_name)
 {
 	gchar *text;
 	struct _PidginGroupMergeObject *ggp;
@@ -1086,14 +1086,14 @@
 	ggp->new_name = g_strdup(new_name);
 	
 	purple_request_action(source, NULL, _("Merge Groups"), text, 0, ggp, 2,
-			_("_Merge Groups"), G_CALLBACK(pidgindialogs_merge_groups_cb),
+			_("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb),
 			_("Cancel"), G_CALLBACK(free_ggmo));
 
 	g_free(text);
 }
 
 static void
-pidgindialogs_remove_group_cb(PurpleGroup *group)
+pidgin_dialogs_remove_group_cb(PurpleGroup *group)
 {
 	PurpleBlistNode *cnode, *bnode;
 
@@ -1130,7 +1130,7 @@
 }
 
 void
-pidgindialogs_remove_group(PurpleGroup *group)
+pidgin_dialogs_remove_group(PurpleGroup *group)
 {
 	gchar *text;
 
@@ -1140,7 +1140,7 @@
 						   group->name);
 
 	purple_request_action(group, NULL, _("Remove Group"), text, 0, group, 2,
-						_("_Remove Group"), G_CALLBACK(pidgindialogs_remove_group_cb),
+						_("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb),
 						_("Cancel"), NULL);
 
 	g_free(text);
@@ -1148,7 +1148,7 @@
 
 /* XXX - Some of this should be moved into the core, methinks. */
 static void
-pidgindialogs_remove_buddy_cb(PurpleBuddy *buddy)
+pidgin_dialogs_remove_buddy_cb(PurpleBuddy *buddy)
 {
 	PurpleGroup *group;
 	gchar *name;
@@ -1167,7 +1167,7 @@
 }
 
 void
-pidgindialogs_remove_buddy(PurpleBuddy *buddy)
+pidgin_dialogs_remove_buddy(PurpleBuddy *buddy)
 {
 	gchar *text;
 
@@ -1177,20 +1177,20 @@
 						   buddy->name);
 
 	purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, buddy, 2,
-						_("_Remove Buddy"), G_CALLBACK(pidgindialogs_remove_buddy_cb),
+						_("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb),
 						_("Cancel"), NULL);
 
 	g_free(text);
 }
 
 static void
-pidgindialogs_remove_chat_cb(PurpleChat *chat)
+pidgin_dialogs_remove_chat_cb(PurpleChat *chat)
 {
 	purple_blist_remove_chat(chat);
 }
 
 void
-pidgindialogs_remove_chat(PurpleChat *chat)
+pidgin_dialogs_remove_chat(PurpleChat *chat)
 {
 	const gchar *name;
 	gchar *text;
@@ -1202,7 +1202,7 @@
 			name ? name : "");
 
 	purple_request_action(chat, NULL, _("Remove Chat"), text, 0, chat, 2,
-						_("_Remove Chat"), G_CALLBACK(pidgindialogs_remove_chat_cb),
+						_("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb),
 						_("Cancel"), NULL);
 
 	g_free(text);