comparison src/main.c @ 8273:f24172f53650

[gaim-migrate @ 8997] This is Scott Lamb's eventloop abstraction patch. If it breaks things, Scott Lamb will be glad to take the punishment. If it doesn't, it should make integration into other event loops easier. Well, no, not easier, harder actually, but it'll be done more appropriately and less hackily.. er, hacky. Is hackily a word? committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 17 Feb 2004 02:17:48 +0000
parents 1d68a254237b
children e38c127ec2d4
comparison
equal deleted inserted replaced
8272:9af78e73f0b2 8273:f24172f53650
25 25
26 #include "account.h" 26 #include "account.h"
27 #include "conversation.h" 27 #include "conversation.h"
28 #include "core.h" 28 #include "core.h"
29 #include "debug.h" 29 #include "debug.h"
30 #include "eventloop.h"
30 #include "ft.h" 31 #include "ft.h"
31 #include "log.h" 32 #include "log.h"
32 #include "notify.h" 33 #include "notify.h"
33 #include "prefs.h" 34 #include "prefs.h"
34 #include "prpl.h" 35 #include "prpl.h"
40 #include "gtkaccount.h" 41 #include "gtkaccount.h"
41 #include "gtkblist.h" 42 #include "gtkblist.h"
42 #include "gtkconn.h" 43 #include "gtkconn.h"
43 #include "gtkconv.h" 44 #include "gtkconv.h"
44 #include "gtkdebug.h" 45 #include "gtkdebug.h"
46 #include "gtkeventloop.h"
45 #include "gtkft.h" 47 #include "gtkft.h"
46 #include "gtknotify.h" 48 #include "gtknotify.h"
47 #include "gtkplugin.h" 49 #include "gtkplugin.h"
48 #include "gtkpounce.h" 50 #include "gtkpounce.h"
49 #include "gtkprefs.h" 51 #include "gtkprefs.h"
126 && gaim_prefs_get_bool("/gaim/gtk/sound/silent_signon")) { 128 && gaim_prefs_get_bool("/gaim/gtk/sound/silent_signon")) {
127 if(snd_tmout) { 129 if(snd_tmout) {
128 g_source_remove(snd_tmout); 130 g_source_remove(snd_tmout);
129 } 131 }
130 gaim_gtk_sound_set_login_mute(TRUE); 132 gaim_gtk_sound_set_login_mute(TRUE);
131 snd_tmout = g_timeout_add(10000, sound_timeout, NULL); 133 snd_tmout = gaim_timeout_add(10000, sound_timeout, NULL);
132 } 134 }
133 } 135 }
134 136
135 static gboolean domiddleclick(GtkWidget *w, GdkEventButton *event, gpointer null) 137 static gboolean domiddleclick(GtkWidget *w, GdkEventButton *event, gpointer null)
136 { 138 {
812 814
813 #ifdef _WIN32 815 #ifdef _WIN32
814 wgaim_init(hint); 816 wgaim_init(hint);
815 #endif 817 #endif
816 gaim_core_set_ui_ops(gaim_gtk_core_get_ui_ops()); 818 gaim_core_set_ui_ops(gaim_gtk_core_get_ui_ops());
819 gaim_eventloop_set_ui_ops(gaim_gtk_eventloop_get_ui_ops());
817 820
818 if (!gaim_core_init(GAIM_GTK_UI)) { 821 if (!gaim_core_init(GAIM_GTK_UI)) {
819 fprintf(stderr, 822 fprintf(stderr,
820 "Initialization of the Gaim core failed. Dumping core.\n" 823 "Initialization of the Gaim core failed. Dumping core.\n"
821 "Please report this!\n"); 824 "Please report this!\n");