|
我在做gtk升级时碰到这样的问题:程序编译能通过,但是在运行到gtk_widget_show_all()的时候就中止了.
我在这之前因为升级而改动过的,也不太确定是否改动正确的gtk相关函数有:
#define GF2FS(gf) ((XFontSet)(((GdkFontPrivate *)(gf))->xfont)) -->
#define GF2FS(gf) ((XFontSet)(GDK_FONT_XFONT(gf)))
GdkWindowPrivate --> GdkWindowObject
gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS) -->
gtk_toolbar_new();
gtk_signal_new ("select_item",
GTK_RUN_FIRST,
object_class->type, -->delete
GTK_SIGNAL_OFFSET(GtkIchiranClass, select_item),
gtk_marshal_NONE__INT_INT_POINTER,
GTK_TYPE_NONE, 3,
GTK_TYPE_INT,
GTK_TYPE_INT,
GTK_TYPE_GDK_EVENT); -->delete
-->
gtk_signal_new ("select_item",
GTK_RUN_FIRST,
GTK_SIGNAL_OFFSET(GtkIchiranClass, select_item),
gtk_marshal_NONE__INT_INT_POINTER,
GTK_TYPE_NONE, 3,
GTK_TYPE_INT,
GTK_TYPE_INT);
肯请各位高手指点,不胜感激!! |
|