Re: Display Raster Data?

2018-08-01 Thread Luca Bacci via gtk-list
I suggest you use GStreamer, you can build a video by pushing bitmap frames and it does everything else for you. Otherwise, you can animate a DrawingArea. Set up a 60hz timer on your own. The timer callback simply calls gtk_widget_queue_draw_area()

Re: Display Raster Data?

2018-08-01 Thread Luca Bacci via gtk-list
I should point out that the draw_func may be called by Gtk whenever it needs, The best is to have the timer callback change the "current" bitmap and call gtk_widget_queue_draw_area(). Then on the drawing callback of the drawing area you just paint the "current" bitmap. 2018-08-01 15:44 GMT+02:0

Re: Display Raster Data?

2018-08-01 Thread Luca Bacci via gtk-list
ration and better cross platform support. (The application links > in about 1/5th the time.) > Well SDL2 is a good library, sure. Choose what best suits your needs Hope it helps. Have a nice day! Luca 2018-08-01 17:44 GMT+02:00 R0b0t1 : > On Wed, Aug 1, 2018 at 8:52 AM, Luca Bacci via gtk-

Re: Emitting signals from threads

2018-12-18 Thread Luca Bacci via gtk-list
Hi Mitko! Can you post here the code for the button-press event handler? It should more or less follow the code here: http://scentric.net/tutorial/sec-misc-get-renderer-from-click.html Luca Il giorno lun 17 dic 2018 alle ore 20:28 Mitko Haralanov via gtk-list < gtk-list@gnome.org> ha scritto: >

Re: Emitting signals from threads

2018-12-18 Thread Luca Bacci via gtk-list
Is it Gtk2 or Gtk3, which version exactly? Il giorno mar 18 dic 2018 alle ore 18:47 Mitko Haralanov via gtk-list < gtk-list@gnome.org> ha scritto: > I mistakenly replied only to Luca!! Forwarding to the list. > > (Sorry, Luca, my bad) > - Mitko > > -- Forwarded message - > From:

Re: Emitting signals from threads

2019-01-09 Thread Luca Bacci via gtk-list
gt; > >> > > > > has a "todo-list". Each time you call "g_idle_add" it adds an > item to > > >> > > > > that todo-list and schedules a call to your function. If your > function > > >> > > > > doesn&#

Re: Emitting signals from threads

2019-01-09 Thread Luca Bacci via gtk-list
Hi Mitko, last time I tried creating a simple C application for testing but I did get always correct values. (Btw I used g_idle_add) Can you try to write a minimal test application that still exhibits the problem? That would be very helpful! ___ gtk-list

Re: Window having unnecessary space

2019-01-29 Thread Luca Bacci via gtk-list
Try running your application with environment variable GTK_DEBUG=interactive This loads the inspector, with that you can see the tree of widgets and their space/allocationsize. Luca Il giorno mar 29 gen 2019 alle ore 19:20 J.Arun Mani via gtk-list < gtk-list@gnome.org> ha scritto: > Hello. > Im

Re: Emitting signals from threads

2019-02-28 Thread Luca Bacci via gtk-list
Hi, I can't promise I will find a solution but I'll certainly take a look at this Il gio 28 feb 2019, 02:13 Paul Davis ha scritto: > You are right, and I withdraw my remarks. As noted, I didn't read it > carefully enough. > > But yes, g_idle_add_full() runs in the worker thread, however that's o

Re: Emitting signals from threads

2019-03-06 Thread Luca Bacci via gtk-list
I'm working on it. But yes, this really seems a bug in Gtk. Il mer 6 mar 2019, 18:40 Mitko Haralanov ha scritto: > Hi, > > Any update? Does anyone think this is a bug that should be filed against > Gtk? > > Thanks > > On Thu, Feb 28, 2019 at 2:05 AM Luca Bacci > wrote: > > > > Hi, I can't promi

Re: Emitting signals from threads

2019-03-07 Thread Luca Bacci via gtk-list
Yes, go ahead. I don't know if that can be useful to you, but if you increase the time spent in usleep() to something greater it works correctly. With usleep(1) I get mixed results: Third column activated Third column activated Activated an other column Activated an other column Third column

Re: Emitting signals from threads

2019-03-07 Thread Luca Bacci via gtk-list
just setting column1 as resizable fixes the issue Il giorno gio 7 mar 2019 alle ore 18:35 Luca Bacci ha scritto: > Yes, go ahead. > > I don't know if that can be useful to you, but if you increase

Re: Emitting signals from threads

2019-03-07 Thread Luca Bacci via gtk-list
try adding the line gtk_tree_view_column_set_resizable (gtk_tree_view_get_column(view, 0), TRUE); Il giorno gio 7 mar 2019 alle ore 19:43 Luca Bacci ha scritto: > just setting column1 as resizable >

Re: Emitting signals from threads

2019-03-08 Thread Luca Bacci via gtk-list
Hi, yes you should file a bug Of course, the sizing of the column is also marked as > "AUTOMATIC", which may be the reason why. I am assuming that it works > for you because you are overriding the "AUTOMATIC" sizing by calling > gtk_tree_view_column_set_resizable() after the UI has been processed.