gdk change cursor
I'm working on a graphics program.My program has a gtkiconview that is filled with icons.Whenever a part is clicked I want the part to float with the cursor.So I am changing the cursor to the picture stored in the treemodel.I'm not sure if there is a better way to do this or not.I just want to drag and drop the parts from one window to another except without having to hold the mouse button.
I'm stuck at changing the cursor to the icon image in the other window.Here is about what I have now ,which doesn't work. Code:
cursor=gdk_pixbuf_new(GDK_COLORSPACE_RGB,1,8,200,200); Gdk-WARNING **: gdkwindow-x11.c:817cannot make windows of type 140 Anyone know how to do this? |
I found a better way to do it .GTK has a lot of built in drag and drop functions.
I added this code to my iconview. Code:
gtk_icon_view_enable_model_drag_source(iconview1, Code:
gtk_drag_dest_set(canvas1, |
All times are GMT -5. The time now is 05:02 PM. |