|
环境是windows xp sp2,gtk-+2.0 version 2.16.6, gcc 3.4.5 (mingw-vista special r3)
运行demo,及自编的程序
最简单的程序如:
#include <gtk/gtk.h>
int main( int argc, char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (G_OBJECT (window), "delete_event",
G_CALLBACK (gtk_main_quit), NULL);
gtk_container_set_border_width (GTK_CONTAINER (window), 10);
gtk_widget_show (window);
gtk_main ();
return (0);
}
编译成功,但是在运行时,右键点击任务栏上的程序图标,在console里会报错:
GLib-WARNING **: g_main_context_check() called recursively from within a source's
check() or prepare() member.
GLib-WARNING **: g_main_context_prepare() called recursively from within a source'
s check() or prepare() member.
我到处打听,不知有高手知道吗?
PS: google上 我只搜到两条相关信息,怀疑是个bug
<!-- m --><a class="postlink" href="http://www.dsource.org/forums/viewtopic.php?t=5179&sid=0368cec966f5a135506cf99b24ec5030">http://www.dsource.org/forums/viewtopic ... 9b24ec5030</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.kksou.com/php-gtk2/articles/set-up-an-application-to-run-in-the-system-tray-using-GtkStatusIcon---Part-2---display-GTK-window-on-left-click.php">http://www.kksou.com/php-gtk2/articles/ ... -click.php</a><!-- m --> |
|