Mercurial > pidgin.yaz
comparison src/main.c @ 5436:ad445074d239
[gaim-migrate @ 5818]
Another big commit. Ugh. I need a very smart regexp.
Core/UI split do_error_dialog(), and soon the mail dialogs! Yay! This
should work without problems at all, but standard disclaimer..
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 18 May 2003 19:59:02 +0000 |
parents | a2f26666de42 |
children | 7e8524b5ff98 |
comparison
equal
deleted
inserted
replaced
5435:a2f26666de42 | 5436:ad445074d239 |
---|---|
48 #include <ctype.h> | 48 #include <ctype.h> |
49 #include "prpl.h" | 49 #include "prpl.h" |
50 #include "sound.h" | 50 #include "sound.h" |
51 #include "gaim.h" | 51 #include "gaim.h" |
52 #include "gaim-socket.h" | 52 #include "gaim-socket.h" |
53 #include "notify.h" | |
53 #include "gtkblist.h" | 54 #include "gtkblist.h" |
54 #include "gtkdebug.h" | 55 #include "gtkdebug.h" |
56 #include "gtknotify.h" | |
55 #if HAVE_SIGNAL_H | 57 #if HAVE_SIGNAL_H |
56 #include <signal.h> | 58 #include <signal.h> |
57 #endif | 59 #endif |
58 #include "locale.h" | 60 #include "locale.h" |
59 #include <getopt.h> | 61 #include <getopt.h> |
176 struct gaim_account *account; | 178 struct gaim_account *account; |
177 const char *username = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(name)->entry)); | 179 const char *username = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(name)->entry)); |
178 const char *password = gtk_entry_get_text(GTK_ENTRY(pass)); | 180 const char *password = gtk_entry_get_text(GTK_ENTRY(pass)); |
179 | 181 |
180 if (!strlen(username)) { | 182 if (!strlen(username)) { |
181 do_error_dialog(_("Please enter your login."), NULL, GAIM_ERROR); | 183 gaim_notify_error(NULL, NULL, _("Please enter your login."), NULL); |
182 return; | 184 return; |
183 } | 185 } |
184 | 186 |
185 /* if there is more than one user of the same name, then fuck | 187 /* if there is more than one user of the same name, then fuck |
186 * them, they just have to use the account editor to sign in | 188 * them, they just have to use the account editor to sign in |
872 /* Set the UI operation structures. */ | 874 /* Set the UI operation structures. */ |
873 gaim_set_debug_ui_ops(gaim_get_gtk_debug_ui_ops()); | 875 gaim_set_debug_ui_ops(gaim_get_gtk_debug_ui_ops()); |
874 gaim_set_win_ui_ops(gaim_get_gtk_window_ui_ops()); | 876 gaim_set_win_ui_ops(gaim_get_gtk_window_ui_ops()); |
875 gaim_set_xfer_ui_ops(gaim_get_gtk_xfer_ui_ops()); | 877 gaim_set_xfer_ui_ops(gaim_get_gtk_xfer_ui_ops()); |
876 gaim_set_blist_ui_ops(gaim_get_gtk_blist_ui_ops()); | 878 gaim_set_blist_ui_ops(gaim_get_gtk_blist_ui_ops()); |
879 gaim_set_notify_ui_ops(gaim_get_gtk_notify_ui_ops()); | |
877 | 880 |
878 | 881 |
879 plugin_search_paths[0] = LIBDIR; | 882 plugin_search_paths[0] = LIBDIR; |
880 plugin_search_paths[1] = gaim_user_dir(); | 883 plugin_search_paths[1] = gaim_user_dir(); |
881 plugin_search_paths[2] = g_strdup_printf("%s/plugins", gaim_user_dir()); | 884 plugin_search_paths[2] = g_strdup_printf("%s/plugins", gaim_user_dir()); |