changeset 1942:ba421d552093

[gaim-migrate @ 1952] GTK2 committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 01 Jun 2001 23:04:13 +0000
parents 94e81315be2a
children b7b1bb01fa94
files src/aim.c src/multi.c src/multi.h
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Fri Jun 01 22:56:53 2001 +0000
+++ b/src/aim.c	Fri Jun 01 23:04:13 2001 +0000
@@ -142,8 +142,8 @@
 static void dologin(GtkWidget *widget, GtkWidget *w)
 {
 	struct aim_user *u;
-	char *username = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(name)->entry));
-	char *password = gtk_entry_get_text(GTK_ENTRY(pass));
+	const char *username = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(name)->entry));
+	const char *password = gtk_entry_get_text(GTK_ENTRY(pass));
 
 	if (!strlen(username)) {
 		do_error_dialog(_("Please enter your logon"), _("Signon Error"));
@@ -180,7 +180,7 @@
 
 static void combo_changed(GtkWidget *w, GtkWidget *combo)
 {
-	char *txt = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(combo)->entry));
+	const char *txt = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(combo)->entry));
 	struct aim_user *u;
 
 	u = find_user(txt, -1);
--- a/src/multi.c	Fri Jun 01 22:56:53 2001 +0000
+++ b/src/multi.c	Fri Jun 01 23:04:13 2001 +0000
@@ -868,7 +868,7 @@
 	gc->meter = NULL;
 }
 
-struct aim_user *new_user(char *name, int proto, int opts)
+struct aim_user *new_user(const char *name, int proto, int opts)
 {
 	char *titles[4];
 	int i;
--- a/src/multi.h	Fri Jun 01 22:56:53 2001 +0000
+++ b/src/multi.h	Fri Jun 01 23:04:13 2001 +0000
@@ -78,7 +78,7 @@
 /* now that we have our struct, we're going to need lots of them. Maybe even a list of them. */
 extern GSList *connections;
 
-struct aim_user *new_user(char *, int, int);
+struct aim_user *new_user(const char *, int, int);
 struct gaim_connection *new_gaim_conn(struct aim_user *);
 void destroy_gaim_conn(struct gaim_connection *);