Re: glib and relative file names

2011-10-09 Thread Larry Reaves
pwd.c: #include glib.h int main(int argc, char **argv) { gchar *cwd = g_get_current_dir(); g_print(%s\n, cwd); g_free(cwd); return 0; } gcc -o pwd pwd.c `pkg-config --cflags --libs glib-2.0` Works for me. This should work for converting to absolute path in the event you detect a

pointer grab

2011-10-09 Thread control H
Dear list, my app has a button, when it is pressed it waits till the pointer clicks somewhere in a drawing area. I have implemented this by calling gdk_device_grab() in the button-press callback. As such it works OK, but a small detail is that after the drawing area has been clicked, the button