Re: Make parent aware of drag and drop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can I send custom data with emit_by_name? I need to send an id, a year, and a quarter.


On Oct 18, 2016 10:32 PM, "Chris Moller" <moller@xxxxxxxxxxxxxx> wrote:
Have you looked into g_signal_emit () in any of its variants?

https://developer.gnome.org/gobject/stable/gobject-Signals.html#g-signal-emit

On 10/19/16 00:40, Jim Heald wrote:
Hi,

I have a slightly weird situation. I have two widgets that are both eventboxes, and I'm trying to make it possible to drag what I call a tile widget into a column. Basically, think I'm dragging a box from one column to another.

My issue is I can now drag one tile to a column to get drag data from the drag source; however, I need the parent window to be made aware of this drag because it contains an information store that tells me about where each tile is located within the column widges.

Long story short: I can drag a tile from one column to another. When I do, the column's drag data received function tells me the id of the tile I just dragged to it. I need this information (the drag source and drag dest) to propagate up to the parent Gtk window so it can handle performing the desired modification.

Is there a good way through Gtk for my window to catch the interaction between its children?

Sorry if this seems kind of convoluted, my program is kind of a mess but it works and I'm waiting until it has all the features I want to clean things up. 

Thanks for any help you can give!

Jim 


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux