Mercurial > pidgin.yaz
comparison src/aim.c @ 3716:d7e83b4db191
[gaim-migrate @ 3849]
Warning fixes
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 16 Oct 2002 19:44:19 +0000 |
parents | 239981ebcb05 |
children | d85208a99af2 |
comparison
equal
deleted
inserted
replaced
3715:764d6f1848b2 | 3716:d7e83b4db191 |
---|---|
26 #ifndef _WIN32 | 26 #ifndef _WIN32 |
27 #include <dlfcn.h> | 27 #include <dlfcn.h> |
28 #endif | 28 #endif |
29 #endif /* GAIM_PLUGINS */ | 29 #endif /* GAIM_PLUGINS */ |
30 #include <gtk/gtk.h> | 30 #include <gtk/gtk.h> |
31 #ifdef _WIN32 | 31 #ifndef _WIN32 |
32 #include <winsock.h> | |
33 #else | |
34 #include <gdk/gdkx.h> | 32 #include <gdk/gdkx.h> |
35 #include <unistd.h> | 33 #include <unistd.h> |
36 #include <sys/socket.h> | 34 #include <sys/socket.h> |
37 #include <netinet/in.h> | 35 #include <netinet/in.h> |
38 #include <arpa/inet.h> | 36 #include <arpa/inet.h> |
39 #include <sys/un.h> | 37 #include <sys/un.h> |
40 #include <sys/wait.h> | 38 #include <sys/wait.h> |
41 #endif /* _WIN32 */ | 39 #endif /* !_WIN32 */ |
42 #include <gdk/gdk.h> | 40 #include <gdk/gdk.h> |
43 #include <sys/types.h> | 41 #include <sys/types.h> |
44 #include <sys/stat.h> | 42 #include <sys/stat.h> |
45 #include <errno.h> | 43 #include <errno.h> |
46 #include <stdio.h> | 44 #include <stdio.h> |
48 #include <stdarg.h> | 46 #include <stdarg.h> |
49 #include <stdlib.h> | 47 #include <stdlib.h> |
50 #include <ctype.h> | 48 #include <ctype.h> |
51 #include "prpl.h" | 49 #include "prpl.h" |
52 #include "gaim.h" | 50 #include "gaim.h" |
53 #include "pixmaps/logo.xpm" | |
54 #if HAVE_SIGNAL_H | 51 #if HAVE_SIGNAL_H |
55 #include <signal.h> | 52 #include <signal.h> |
56 #endif | 53 #endif |
57 #include "locale.h" | 54 #include "locale.h" |
58 #include "gtkspell.h" | 55 #include "gtkspell.h" |
59 #include <getopt.h> | 56 #include <getopt.h> |
57 | |
60 #ifdef _WIN32 | 58 #ifdef _WIN32 |
61 #include "win32dep.h" | 59 #include "win32dep.h" |
62 #endif | 60 #endif |
63 | 61 |
62 #ifndef _WIN32 | |
64 static gchar *aspell_cmd[] = { "aspell", "--sug-mode=fast","-a", NULL }; | 63 static gchar *aspell_cmd[] = { "aspell", "--sug-mode=fast","-a", NULL }; |
65 static gchar *ispell_cmd[] = { "ispell", "-a", NULL }; | 64 static gchar *ispell_cmd[] = { "ispell", "-a", NULL }; |
65 #endif | |
66 | 66 |
67 static GtkWidget *name; | 67 static GtkWidget *name; |
68 static GtkWidget *pass; | 68 static GtkWidget *pass; |
69 | 69 |
70 GList *log_conversations = NULL; | 70 GList *log_conversations = NULL; |
163 u = new_user(username, DEFAULT_PROTO, OPT_USR_REM_PASS); | 163 u = new_user(username, DEFAULT_PROTO, OPT_USR_REM_PASS); |
164 g_snprintf(u->password, sizeof u->password, "%s", password); | 164 g_snprintf(u->password, sizeof u->password, "%s", password); |
165 save_prefs(); | 165 save_prefs(); |
166 serv_login(u); | 166 serv_login(u); |
167 } | 167 } |
168 | 168 #if 0 |
169 static void dologin_all(GtkWidget *widget, GtkWidget *w) | 169 static void dologin_all(GtkWidget *widget, GtkWidget *w) |
170 { | 170 { |
171 struct aim_user *u; | 171 struct aim_user *u; |
172 GSList *users = aim_users; | 172 GSList *users = aim_users; |
173 | 173 |
176 if (u->options & OPT_USR_AUTO) | 176 if (u->options & OPT_USR_AUTO) |
177 serv_login(u); | 177 serv_login(u); |
178 users = users->next; | 178 users = users->next; |
179 } | 179 } |
180 } | 180 } |
181 | 181 #endif |
182 static void doenter(GtkWidget *widget, GtkWidget *w) | 182 static void doenter(GtkWidget *widget, GtkWidget *w) |
183 { | 183 { |
184 if (widget == name) { | 184 if (widget == name) { |
185 gtk_entry_set_text(GTK_ENTRY(pass), ""); | 185 gtk_entry_set_text(GTK_ENTRY(pass), ""); |
186 gtk_entry_select_region(GTK_ENTRY(GTK_COMBO(name)->entry), 0, 0); | 186 gtk_entry_select_region(GTK_ENTRY(GTK_COMBO(name)->entry), 0, 0); |
505 const gchar *msg, | 505 const gchar *msg, |
506 gpointer user_data) { | 506 gpointer user_data) { |
507 debug_printf("%s - %s\n", domain, msg); | 507 debug_printf("%s - %s\n", domain, msg); |
508 g_log_default_handler(domain, flags, msg, user_data); | 508 g_log_default_handler(domain, flags, msg, user_data); |
509 } | 509 } |
510 #endif | 510 #endif /* _WIN32 */ |
511 | 511 |
512 /* FUCKING GET ME A TOWEL! */ | 512 /* FUCKING GET ME A TOWEL! */ |
513 #ifdef _WIN32 | 513 #ifdef _WIN32 |
514 int gaim_main(int argc, char *argv[]) | 514 int gaim_main(int argc, char *argv[]) |
515 #else | 515 #else |