Copywrite protection and source-code distribution

2018-08-01 Thread Roger Matthews via gtk-app-devel-list
I have developed an application using GTK+3.10. What copy-write protection can you (GTK+) provide for me. I have been told that copywrite is free and automatic and that to protect the software from piracy I need sufficient money to prove prior usage in a court of law. I don't see how the

Re: Display Raster Data?

2018-08-01 Thread Eric Cashon via gtk-list
I don't know the format, size, etc. of the images that you are working with. There are a few things that can affect the time it takes to move image data around. GTK should be able to handle the problem well though. Try setting up a test environment with a frame counter and a timer on your

Resize all images that are part of a notebook

2018-08-01 Thread Jack D via gtk-list
Greetings, I am trying to create a program that has a notebook with several images. I want to be able to grab the corner of the window and expand or contract the image size, maintaining aspect ratio of any image on any notebook page. The following is my latest attempt. However, this program auto

Re: Display Raster Data?

2018-08-01 Thread Luca Bacci via gtk-list
> > > in GTK3, this is almost certainly not the best way to do this. You want to > use a frame timer based on the refresh/vblank cycle of the monitor. Yes you're right, I just meant to give the base idea. ..I think that gtk_widget_queue_draw_area() enqueues a redraw at the next frame clock tick,

Re: Display Raster Data?

2018-08-01 Thread R0b0t1 via gtk-list
On Wed, Aug 1, 2018 at 8:52 AM, Luca Bacci via gtk-list wrote: > 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

Re: Display Raster Data?

2018-08-01 Thread Paul Davis
On Wed, Aug 1, 2018 at 9:44 AM, Luca Bacci via gtk-list wrote: > 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 >

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

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 R0b0t1 via gtk-list
On Wed, Aug 1, 2018 at 3:45 AM, Paul Davis wrote: > > 60Hz is a reasonable common refresh rate, but it's not universal, and you > probably should not rely on it being the context in which your program runs. > ... I'm not, the update is driven by frame decoding elsewhere. I pointed it out because

Re: Display Raster Data?

2018-08-01 Thread Paul Davis
On Wed, Aug 1, 2018 at 12:18 AM, R0b0t1 via gtk-list wrote: > Hello, > > I have bitmaps being generated by a process and need to display them > at ~60Hz. just a quick note: you don't get to control the refresh rate. your screen update refresh rate is independent of GTK+. All modern GUI