gtk project directory structure

every project share something in common. That something in common save us lazy programmer a lot of time. Here is a nice article about this

common project directory structure
project with i18n


how to display busy cursor

interesting post on mailing list

void busy_stuff ()
GdkDisplay *display;
GdkCursor *cursor;
GdkWindow *window;
gint x, y;

cursor = gdk_cursor_new(GDK_WATCH);

display = gdk_display_get_default();
window = gdk_display_get_window_at_pointer(disp, &x, &y);

gdk_window_set_cursor(window, cursor);

/* do time-consuming stuff here */

gdk_window_set_cursor(window, NULL);

gdk_cursor_unref() prevent memory leak

Mailing list archive