Can put a GtkLayout in a GtkListBox

2014-11-05 Thread Cedric Bellegarde
Hello, in this code, adding a layout to a GtkListBox do not show layout content :( What am i missing? regards, from gi.repository import Gtk class mywindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title=Hello) box = Gtk.ListBox() label =

Re: Flowbox: widget expanding

2014-11-05 Thread Tristan Van Berkom
On Wed, 2014-11-05 at 10:56 +0100, Cedric Bellegarde wrote: Here the code: First, please remember to Reply-All or reply to the list, this is not a private discussion I'm having. #!/usr/bin/python from gi.repository import Gtk win = Gtk.Window() flow = Gtk.FlowBox() b1 =

Re: Can put a GtkLayout in a GtkListBox

2014-11-05 Thread Tristan Van Berkom
On Wed, 2014-11-05 at 13:08 +0100, Cedric Bellegarde wrote: Hello, in this code, adding a layout to a GtkListBox do not show layout content :( What am i missing? A GtkLayout is like a GtkViewport which you can place widgets at specific locations and draw on etc, it has the special

Re: Can put a GtkLayout in a GtkListBox

2014-11-05 Thread Cedric Bellegarde
Ok, so here another question... I want to implement drag and drop in a gtklistbox. If i add buttons to gtklistbox, set button as drag source, it works. If i add complex widgets to gtklistbox, as my container (gtkgrid) doesn't have a window, it fails to be a drag source. That's why i'm

Re: Flowbox: widget expanding

2014-11-05 Thread Cedric Bellegarde
Thanks, it works https://github.com/gnumdk/lollypop/commit/3a715b75c065d74d68d3c5896b61dcb18822a265 regards, -- Cédric Bellegarde Le mer. 5 nov. 2014 à 13:24, Tristan Van Berkom tris...@upstairslabs.com a écrit : On Wed, 2014-11-05 at 10:56 +0100, Cedric Bellegarde wrote: Here the code:

glib2 magazines: values in chunk-data pretty low

2014-11-05 Thread Mgr . Martin Žember
Hello! I am wondering about this and I probably misunderstand something: (gdb) Continuing. Breakpoint 4, allocator_add_slab (allocator=0x738cc260 allocator, chunk_size=32, ix=1) at gslice.c:1285 1285 chunk-next = (ChunkLink*) ((guint8*) chunk + chunk_size); 1: chunk-data =

Re: Can put a GtkLayout in a GtkListBox

2014-11-05 Thread Cédric Bellegarde
Ok, just need to add an eventbox... regards, -- Cédric Le mer. 5 nov. 2014 à 14:41, Cedric Bellegarde gnu...@gmail.com a écrit : Ok, so here another question... I want to implement drag and drop in a gtklistbox. If i add buttons to gtklistbox, set button as drag source, it works. If i add