Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/aim.c Wed May 03 22:31:49 2000 +0000 +++ b/src/aim.c Thu May 04 09:32:51 2000 +0000 @@ -29,6 +29,7 @@ #endif /* USE_THEMES */ #include <gtk/gtk.h> #include <gdk/gdkx.h> +#include <gdk/gdk.h> #include <unistd.h> #include <netinet/in.h> #include <arpa/inet.h> @@ -473,6 +474,8 @@ if (general_options & OPT_GEN_DEBUG) show_debug(NULL); + gdk_threads_enter(); + #ifdef USE_APPLET applet_widget_register_callback(APPLET_WIDGET(applet), "prefs", @@ -508,6 +511,7 @@ gtk_main(); #endif /* USE_APPLET */ + gdk_threads_leave(); return 0;