Mercurial > pidgin
comparison src/aim.c @ 216:f7e17fb767eb
[gaim-migrate @ 226]
Gtk-safe thread-safe code, here we come! Yah!
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 04 May 2000 09:32:51 +0000 |
parents | bc117fbcf527 |
children | f3b61c04f44e |
comparison
equal
deleted
inserted
replaced
215:098ceea4133a | 216:f7e17fb767eb |
---|---|
27 #include <gnome.h> | 27 #include <gnome.h> |
28 #endif /* USE_APPLET */ | 28 #endif /* USE_APPLET */ |
29 #endif /* USE_THEMES */ | 29 #endif /* USE_THEMES */ |
30 #include <gtk/gtk.h> | 30 #include <gtk/gtk.h> |
31 #include <gdk/gdkx.h> | 31 #include <gdk/gdkx.h> |
32 #include <gdk/gdk.h> | |
32 #include <unistd.h> | 33 #include <unistd.h> |
33 #include <netinet/in.h> | 34 #include <netinet/in.h> |
34 #include <arpa/inet.h> | 35 #include <arpa/inet.h> |
35 #include <sys/wait.h> | 36 #include <sys/wait.h> |
36 #include <stdio.h> | 37 #include <stdio.h> |
471 } | 472 } |
472 | 473 |
473 if (general_options & OPT_GEN_DEBUG) | 474 if (general_options & OPT_GEN_DEBUG) |
474 show_debug(NULL); | 475 show_debug(NULL); |
475 | 476 |
477 gdk_threads_enter(); | |
478 | |
476 #ifdef USE_APPLET | 479 #ifdef USE_APPLET |
477 applet_widget_register_callback(APPLET_WIDGET(applet), | 480 applet_widget_register_callback(APPLET_WIDGET(applet), |
478 "prefs", | 481 "prefs", |
479 _("Preferences"), | 482 _("Preferences"), |
480 show_prefs, | 483 show_prefs, |
506 | 509 |
507 show_login(); | 510 show_login(); |
508 gtk_main(); | 511 gtk_main(); |
509 | 512 |
510 #endif /* USE_APPLET */ | 513 #endif /* USE_APPLET */ |
514 gdk_threads_leave(); | |
511 | 515 |
512 return 0; | 516 return 0; |
513 | 517 |
514 } | 518 } |