GDK_Menu:window键盘的换挡值。Alt
获取屏幕大小:
GdkScreen *screen = gdk_screen_get_default();
gint width = gdk_screen_get_width(screen);
gint height = gdk_screen_get_height(screen);
获取设置时间:
time_t now_time;
struct tm *tmNowTime;
char stringTime[1024] = {0x00};
now_time = time(NULL);
tmNowTime = localtime(&now_time);
if(tmNowTime == NULL)
{
exit(-1);
}
if(strftime(stringTime,sizoef(stringTime),"%F %T",tmNowTime) == 0)
{
exit(-1);
}