PyGObject: modify drag icon in TreeView

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

PyGObject: modify drag icon in TreeView

Gtk+ - Apps Dev mailing list
I want to use the "drag-begin" event to show an individual drag-icon.
<<a href="https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin">https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin>

But it has no effect in my Gtk.TreeView
 - I tested with connect() and connect_after()
 - the events are called (tested by print-call)
 - I created a GdkPixbuf.Pixbuf.new_from_file() which returns a valid
   object and not None

Any idea?
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: PyGObject: modify drag icon in TreeView

Gtk+ - Apps Dev mailing list
I can not find a "drag-begin" example on the internet.

On 2018-08-14 00:02 "c.buhtz--- via gtk-app-devel-list"
<[hidden email]> wrote:

> I want to use the "drag-begin" event to show an individual drag-icon.
> <<a href="https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin">https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin>
>
> But it has no effect in my Gtk.TreeView
>  - I tested with connect() and connect_after()
>  - the events are called (tested by print-call)
>  - I created a GdkPixbuf.Pixbuf.new_from_file() which returns a valid
>    object and not None
>
> Any idea?
> _______________________________________________
> gtk-app-devel-list mailing list
> [hidden email]
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: PyGObject: modify drag icon in TreeView

Gtk+ - Apps Dev mailing list
In reply to this post by Gtk+ - Apps Dev mailing list
I opened a stackoverflow question with a MWE for this

https://stackoverflow.com/q/51975256/4865723

On 2018-08-14 00:02 "c.buhtz--- via gtk-app-devel-list"
<[hidden email]> wrote:

> I want to use the "drag-begin" event to show an individual drag-icon.
> <<a href="https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin">https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin>
>
> But it has no effect in my Gtk.TreeView
>  - I tested with connect() and connect_after()
>  - the events are called (tested by print-call)
>  - I created a GdkPixbuf.Pixbuf.new_from_file() which returns a valid
>    object and not None
>
> Any idea?
> _______________________________________________
> gtk-app-devel-list mailing list
> [hidden email]
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: PyGObject: modify drag icon in TreeView

Gtk+ - Apps Dev mailing list
In reply to this post by Gtk+ - Apps Dev mailing list
On 2018-08-22 23:17 <[hidden email]> wrote:
> I opened a stackoverflow question with a MWE for this
>
> https://stackoverflow.com/q/51975256/4865723

There is still no answer. Does anyone of you have a hint where I could
ask such questions, too?
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: PyGObject: modify drag icon in TreeView

Gtk+ - Apps Dev mailing list
In reply to this post by Gtk+ - Apps Dev mailing list
There is a problem with documentation.
https://gitlab.gnome.org/GNOME/pygobject/issues/251

The answer can be found here.
https://stackoverflow.com/a/52248549/4865723
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list