从邮件列表看到的查看gtk版本的一些方法: 一、使用外部命令查看安装的gtk库版本 $pkg-config --modversion gtk+ (查看1.2.x版本) $pkg-config --modversion gtk+-2.0 (查看 2.x 版本) $pkg-config --version (查看pkg-config的版本) $pkg-config --list-all |grep gtk (查看是否安装了gtk) 二、使用dl库查看动态链接库中的符号链接: #include dlfcn.h> #include stdio.h> int main(void) { void *gtk; int *maj, *mi...
by oldstorm - Linux文档专区 - 2009-03-18 11:26:18 阅读(1750) 回复(0)
/* * File: main.c * Author: peter * * Created on 2008年11月18日, 下午7:16 */ #include #include #include gtkWidget *event_show_list; /*事件列表,作为全局变量*/ gtkWidget *event_show_main_frame; /*显示事件的frame*/ gtkWidget *event_add_main_frame; /*添加新事件的frame*/ gtkWidget *event_show_progress_text; /*show页面中“事件内容”文本域*/ gtkWidget *event_show_dispose_area; /*show页...
想自己编译XFCE,下载了gtk,结果在编译其中的pango和atk时出错,如atk: #make check Making check in atk Making check in tests Making check in docs make: don't know how to make all-local. Stop *** Error code 1 Stop in /tmp/atk-1.2.4. ftp://ftp.gtk.org/pub/gtk/v2.2/pango-1.2.5.tar.bz2 ftp://ftp.gtk.org/pub/gtk/v2.2/atk-1.2.4.tar.bz2
What are Widgets? widget is a term used in the world of X for any user interface. A widget can be a text box, label, frame, window or any other GUI component. gtk widgets are all derived from the abstract base class gtkWidget, and inherit the methods, signals and properties implemented therein. 这段话的后半句and inherit the methods, signals and properties implemented therein应该怎么译?尤其是sig...