diff src/gtkrequest.c @ 5794:5e93fc46d1af

[gaim-migrate @ 6219] Removed the __ prefix from static functions. I love them, but ANSI C knocked on my door and threatened to sue, saying they own all rights to them, so I was forced to remove them. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 07 Jun 2003 07:57:24 +0000
parents da18a02c3705
children 9467bff78029
line wrap: on
line diff
--- a/src/gtkrequest.c	Sat Jun 07 06:41:31 2003 +0000
+++ b/src/gtkrequest.c	Sat Jun 07 07:57:24 2003 +0000
@@ -53,7 +53,7 @@
 } GaimRequestData;
 
 static void
-__input_response_cb(GtkDialog *dialog, gint id, GaimRequestData *data)
+input_response_cb(GtkDialog *dialog, gint id, GaimRequestData *data)
 {
 	const char *value;
 
@@ -78,7 +78,7 @@
 }
 
 static void
-__action_response_cb(GtkDialog *dialog, gint id, GaimRequestData *data)
+action_response_cb(GtkDialog *dialog, gint id, GaimRequestData *data)
 {
 	if (id < data->cb_count && data->cbs[id] != NULL)
 		((GaimRequestActionCb)data->cbs[id])(data->user_data, id);
@@ -91,7 +91,7 @@
 		return (l);
 
 static const char *
-__text_to_stock(const char *text)
+text_to_stock(const char *text)
 {
 	STOCK_ITEMIZE(_("Yes"),    GTK_STOCK_YES);
 	STOCK_ITEMIZE(_("No"),     GTK_STOCK_NO);
@@ -135,13 +135,13 @@
 
 	/* Create the dialog. */
 	dialog = gtk_dialog_new_with_buttons("", NULL, 0,
-					     __text_to_stock(cancel_text), 1,
-					     __text_to_stock(ok_text),     0,
+					     text_to_stock(cancel_text), 1,
+					     text_to_stock(ok_text),     0,
 					     NULL);
 	data->dialog = dialog;
 
 	g_signal_connect(G_OBJECT(dialog), "response",
-					 G_CALLBACK(__input_response_cb), data);
+					 G_CALLBACK(input_response_cb), data);
 
 	/* Setup the dialog */
 	gtk_container_set_border_width(GTK_CONTAINER(dialog), 6);
@@ -272,7 +272,7 @@
 
 	for (i = 0; i < action_count; i++) {
 		gtk_dialog_add_button(GTK_DIALOG(dialog),
-							  __text_to_stock(buttons[2 * i]), i);
+							  text_to_stock(buttons[2 * i]), i);
 
 		data->cbs[i] = buttons[2 * i + 1];
 	}
@@ -280,7 +280,7 @@
 	g_free(buttons);
 
 	g_signal_connect(G_OBJECT(dialog), "response",
-					 G_CALLBACK(__action_response_cb), data);
+					 G_CALLBACK(action_response_cb), data);
 
 	/* Setup the dialog */
 	gtk_container_set_border_width(GTK_CONTAINER(dialog), 6);