GTK Drag-and-drop Validation X11 Cursor lock up within drag_get_data.

2011-03-14 Thread Dan Saul
Hi, I have been unable to get drag and drop validation working in pygtk. I am out of ideas and would like a second opinion. My goal is to only allow files which contain .jpg to be dropped. Specifically, whenever I call widget.drag_get_data within the drag-motion callback The X11 cursor locks up.

Re: Drag And Drop - "drag-motion" cursor lockup? [FIXED]

2010-04-12 Thread Dan Saul
ta) { Self* self = SELF(user_data); // Cleanup drag data. if (TRUE == selfp->drop_data_ready) { g_free(selfp->drop_data); selfp->drop_data = NULL; selfp->drop_data_ready = FALSE; } // Un-draw the highlight. if (TRUE == selfp->drop_highlight) { gtk_drag_unhighlight(widget); selfp->drop_highlight

Drag And Drop - "drag-motion" cursor lockup?

2010-04-01 Thread Dan Saul
Hi, I am trying to implement drag and drop. Currently just trying to get the destination working. I have the basics working, but if I attempt to do custom "drag-motion" validation and I call gtk_drag_get_data() the Xserver locks with a drag cursor. The only way to get out is to Alt-F1 then kill th

g_spawn_async_with_pipes() vs system()

2008-10-25 Thread Dan Saul
L, NULL, &childPid, &in_fd, &out_fd, NULL, &err); assert(success == TRUE); Any thoughts would be appreciated (or if you know of a tutorial for this function), Dan Saul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Segmentation fault while using g_thread_init

2008-10-23 Thread Dan Saul
Hi Aparna, Forgive me if I am wrong, but g_thread_init(NULL); gdk_threads_init(); might duplicate the call. I recall when using gnet (which initiates the threads itself it segfaulted if I called g_thread_init. Perhaps taking one of those out would fix your problem? Dan On 18-Oct-08, at 7

Gtk Window Screen Boundaries

2008-10-11 Thread Dan Saul
Hi Gtk Application Development, I am developing a program that is akin to a Dock, is there a way to tell gtk or the xwindow system not to place windows within certain rects (also maximize limits) so that windows do not spawn underneath the windows? I have set the window type hint to Dock but to no

libwnck empty window listing

2008-07-21 Thread Dan Saul
Hi all, I have been trying to learn how to use libwnck to write a simple application launcher. All has been going good up until the point where I tried to get a listing of the windows, at which time I just get an empty null glist back. Sources: http://www.slello.com/tmp/wnck-test/ http://www.slel

Moving non decorated window using code.

2007-07-01 Thread Dan Saul
I have a GTKWindow that I have created and then afterwards attempted to move using gtk_window_move(), I have the window set so that if I click on it it toggles the window's decorations, the default being none. For production I wish to have the window have no decorations, but If I configure the win

Re: Shared or dynamic?!

2007-05-30 Thread Dan Saul
I have only just started with libraries myself, but the best I can explain it to you is this: * Static libraries are hardly different then .o files, except rather then a .o file for each of your source files there is only one, the library. * Dynamic Libraries is any cod

Re: Run Loop Memory Management

2007-05-29 Thread Dan Saul
On Tue, 2007-29-05 at 16:29 -0700, Brian J. Tarricone wrote: > On Tue, 29 May 2007 18:12:57 -0500 Dan Saul wrote: > > >Good day, new to the list and GTK+ in general. > > > >I am formerly a Macintosh developer. Currently however I am now working > >on Objective C bin

Run Loop Memory Management

2007-05-29 Thread Dan Saul
ke to get the opinions of those who are more experianced whether there is a better -- or more appropriate place for me to put this code. Thank you for your time, Dan Saul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnom