SlickEdit Tips

解决常见STL类型的变量,如string, map, vector等,不能使用 . 或 -> 自动提示的功能。 把以下目录下的源代码从tag中删除: /usr/include/c++/4.1.2/ext /usr/include/c++/4.1.2/debug /usr/include/c++/4.1.2/tr1

2007-08-07 · wuan

有趣签名

狂欢是一群人的孤单…… 如果你看到面前的阴影,别怕,那是因为你的背后有阳光。 谁能对偶的感情就像对人民币一样忠诚? 一山不能容二虎,除非一公和一母。 我喝酒是想把痛苦溺死,但这该死的痛苦却学会了游泳。 我悄悄的来,悄悄的走,挥一挥匕首,不留一个活口。 生活真他妈好玩,因为生活老他妈玩我。 活着...

2007-08-04 · wuan

笑话一则

小学语文课, 女老师问:软字怎么拼?" 学生齐喊:“日完软.” 老师说:“基本正确,部分女生发音不很到位,应是__日完俺~~软,来,大家一起念!”

2007-08-01 · wuan

Load a background image in a Gtk Window

FROM: http://www.gtkforums.com/about446.html For completeness heres a copy of the routine I used to create windows with a background image… You probably need to customise it a little, Im working on an embedded device that supports only 640x480. GtkWidget *SetupWindow(gchar *data,gboolean Transient) { GdkPixmap *background; GdkPixbuf *pixbuf; GdkScreen *ourscreen; GdkColormap *colormap; GtkStyle *style; GdkColor fg; GdkColor bg; GError *error = NULL; GdkRectangle *rect; GtkWidget *window; pixbuf = gdk_pixbuf_new_from_file ("pics/fb.png",&error); if (error != NULL) { if (error->domain == GDK_PIXBUF_ERROR) { g_print ("Pixbuf Related Error:\n"); } if (error->domain == G_FILE_ERROR) { g_print ("File Error: Check file permissions and state:\n"); } g_printerr ("%s\n", error[0].message); exit(1); } gdk_pixbuf_render_pixmap_and_mask (pixbuf, &background, NULL, 0); style = gtk_style_new (); style->bg_pixmap[0] = background; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), data); // gtk_window_maximize(GTK_WINDOW(window)); gtk_window_set_modal (GTK_WINDOW (window),TRUE); gtk_window_set_default_size(GTK_WINDOW(window),640,480); gtk_widget_set_style (GTK_WIDGET(window), GTK_STYLE(style)); gtk_window_set_position(GTK_WINDOW(window),GTK_WIN_POS_CENTER_ALWAYS); gtk_container_set_border_width(GTK_CONTAINER(window), 14); if(Transient==TRUE) gtk_window_set_transient_for(GTK_WINDOW (window),GTK_WINDOW(mainwindow)); gtk_widget_show (window); return(window);...

2007-07-19 · wuan

failed to write cache

执行fc-cache -v时得到错误信息: [/sun/home]# fc-cache -v /usr/share/fonts: caching, 0 fonts, 4 dirs /usr/share/fonts: failed to write cache /usr/share/fonts/X11: caching, 0 fonts, 6 dirs /usr/share/fonts/X11: failed to write cache /usr/share/fonts/X11/100dpi: caching, 0 fonts, 0 dirs /usr/share/fonts/X11/100dpi: failed to write cache /usr/share/fonts/X11/75dpi: caching, 0 fonts, 0 dirs /usr/share/fonts/X11/75dpi: failed to write cache /usr/share/fonts/X11/Type1: caching, 8 fonts, 0 dirs /usr/share/fonts/X11/Type1: failed to write cache /usr/share/fonts/X11/encodings: caching, 0 fonts, 1 dirs /usr/share/fonts/X11/encodings: failed to write cache /usr/share/fonts/X11/encodings/large: caching, 0 fonts, 0 dirs /usr/share/fonts/X11/encodings/large: failed to write cache /usr/share/fonts/X11/misc: caching, 0 fonts, 0 dirs /usr/share/fonts/X11/misc: failed to write cache /usr/share/fonts/X11/util: caching, 0 fonts, 0 dirs /usr/share/fonts/X11/util: failed to write cache /usr/share/fonts/truetype: caching, 0 fonts, 22 dirs /usr/share/fonts/truetype: failed to write cache /usr/share/fonts/truetype/arphic: caching, 2 fonts, 0 dirs /usr/share/fonts/truetype/arphic:...

2007-07-18 · wuan