summaryrefslogtreecommitdiff
path: root/tests/animated-resizing.c
Commit message (Collapse)AuthorAgeFilesLines
* tests/animated-resizing: Use gtk_window_default_size() insteadJonas Ådahl2020-12-071-1/+1
| | | | | This will actually make it resize on-demand, as the default size is the size used when computing the window size when the size is not fixed.
* tests/animated-resizing: Don't try to resize during frame dispatchJonas Ådahl2020-12-071-4/+12
| | | | | | This will not work on X11 because it's too late to resize, due to resizing being asynchronous i.e. it won't be complete before we need to draw.
* tests/animated-resizing: Resize widget instead of windowJonas Ådahl2020-12-071-2/+3
| | | | | This means the window needs to be marked as non-resizable, otherwise it won't shrink.
* display: Remove unneeded gettersBenjamin Otte2020-05-171-7/+0
| | | | Applications can use the listmodel instead.
* Use gtk_window_set_child throughoutMatthias Clasen2020-05-041-1/+1
| | | | | Replace all uses of gtk_container_add on windows by gtk_window_set_child.
* window: Remove type argument from gtk_window_new()Benjamin Otte2020-02-141-1/+1
|
* Stop using gtk_main and gtk_main_quitMatthias Clasen2020-02-091-2/+15
| | | | Replace these calls with direct use of GMainContext api.
* Remove primary monitor apiMatthias Clasen2020-01-301-1/+1
| | | | | | | | We only have implementations of this on X11 and Win32, so make it available as backend api there. Update all callers to use either the backend api, or just monitor 0.
* tests: Stop using gtk_window_set_gravityMatthias Clasen2019-03-261-3/+0
| | | | This api is going away.
* tests: Stop using gtk_window_moveMatthias Clasen2019-03-261-4/+0
| | | | It is going away.
* tests: Avoid a use of ::map-eventMatthias Clasen2018-01-161-4/+3
| | | | We can use the ::map signal here instead.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-1/+1
|
* Update callersMatthias Clasen2017-01-191-2/+2
| | | | Adapt all our tests and examples to the new initialization api.
* tests: Use a drawing area in animated-resizingBenjamin Otte2016-11-181-12/+12
|
* widget: Remove app-paintableTimm Bäder2016-10-311-1/+0
|
* tests: Port to GdkMonitorBenjamin Otte2016-10-161-5/+5
|
* animated-resizing, video-timer: Add missing return value from ::drawOwen W. Taylor2013-04-251-1/+3
| | | | | When we connect to GtkWidget::draw, the signal handler should have a return value. This fixes overdrawing client-side decorations.
* tests/animated-resizing: Split frame statistics out into a separate fileOwen W. Taylor2013-04-231-117/+12
| | | | | Split the code for computing frame rate and latency into a separate file so we can use it from multiple tests.
* GtkTickCallback: document use of G_SOURCE_CONTINUE/REMOVE for return valueOwen W. Taylor2013-02-141-1/+1
| | | | | Document that G_SOURCE_CONTINUE and G_SOURCE_REMOVE are the preferred return values from a tick callback.
* Merge with Merge GdkFrameHistory into GdkFrameClockOwen W. Taylor2013-02-141-1/+1
|
* Merge GdkFrameHistory into GdkFrameClockOwen W. Taylor2013-02-141-8/+5
| | | | | | Now that GdkFrameClock is a class, not interface, there's no real advantage to splitting the frame history into an aggregate object, so directly merge it into GdkFrameClock.
* Add gtk_widget_add_tick_callback(), remove GtkTimeline, etc.Owen W. Taylor2013-02-141-14/+23
| | | | | | | | | | | | | | | Add a very simple GtkWidget function for an "tick" callback, which is connected to the ::update signal of GdkFrameClock. Remove: - GtkTimeline. The consensus is that it is too complex. - GdkPaintClockTarget. In the rare cases where tick callbacks aren't sufficient, it's possible to track the paint clock with ::realize/::unrealize/::hierarchy-changed. GtkTimeline is kept using ::update directly to allow using a GtkTimeline with a paint clock but no widget.
* animated-resizing: enhance outputOwen W. Taylor2013-02-141-13/+131
| | | | | | | | | Show the average and standard deviation of the latency in addition to the frame rate. Add options to print the output in machine-readable form, and to control the frequency and total number of statistics that will be output. https://bugzilla.gnome.org/show_bug.cgi?id=685460
* animated-resizing: make circle size a #defineOwen W. Taylor2013-02-141-9/+12
| | | | | | | Clean up the code with a #define for circle size. This also allows determining we're throttled by number-of-requests or number-of-pixels. https://bugzilla.gnome.org/show_bug.cgi?id=685460
* Add a test of an animated resizing windowOwen W. Taylor2013-02-141-0/+197
Add a test of a window with an animated size and contents. The test accepts load factor command line argument to see how things work as the drawing of the content requires more GPU resources. https://bugzilla.gnome.org/show_bug.cgi?id=685460