Timm Bäder
4cc4868e93
label: Remove "line" from wrap properties
...
The property names are "wrap" and "wrap-mode", so it doesn't make sense
that the accessors refer to line_wrap and line_wrap_mode.
2019-09-09 17:36:23 +02:00
Timm Bäder
1866aa93e3
fishbowl: Plug a small leak
2019-07-13 10:10:17 +02:00
Matthias Clasen
37f8df2722
fishbowl: Don't pop up popovers too early
...
Wayland does not like this.
2019-05-28 20:25:17 +00:00
Matthias Clasen
7447abb52b
Stop using gtk_widget_get_toplevel
...
All uses of it can be replaced by gtk_widget_get_root.
2019-05-28 20:25:16 +00:00
Matthias Clasen
63f6aca1cf
fishbowl: Add a menubutton demo
...
This reveals some issues with the position tracking.
2019-05-24 00:31:07 +00:00
Matthias Clasen
018795127e
fishbowl: Fix the lock button
2019-05-24 00:13:03 +00:00
Matthias Clasen
220ccaf363
gtk-demo: Fix fishbowl setup
...
The fishbowl demo was failing to reset a static variable
when setting up, causing it to crash the second time around.
Closes : #1665
2019-02-11 08:51:13 -05:00
Timm Bäder
d246abd085
fishbowl: Use a GtkPicture for videos
2018-08-25 08:06:37 +02:00
Benjamin Otte
2210b9a302
gtk-demo: Merge widgetbowl into fishbowl
2018-04-24 21:55:37 +02:00
Benjamin Otte
aa2f415283
demo: Clean up GtkFishbowl widget
...
1. Remove set_icons property
2. Make it a GtkWidget subclass
3. Add gtk_fishbowl_set_creation_func()
4. Make the widgetbowl use the new benchmarking infrastructure of the
fishbowl
2018-04-24 21:55:37 +02:00
Benjamin Otte
db5b8ca997
demo: Move benchmarking implementation to fishbowl widget
2018-04-24 21:55:37 +02:00
Benjamin Otte
c5bcc47ce7
demo: Don't add more icons all the time
...
If adding new icons takes longer than a second, the frame clock should
run before we add even more icons...
2018-04-22 02:57:47 +02:00
Benjamin Otte
2f3cf6227a
fishbowl: Make stats tracking work somewhat with broken X servers
...
Broken X servers being the ones that don't support NET_WM_TIMINGS (ie
every WM but mutter and XWayland).
2018-03-30 18:58:33 +02:00
Benjamin Otte
89f6a4ede4
demos: Improve frame rate tracking for fishbowl demo
...
We now properly use GdkFrameTimings and can therefor check for dropping
even a single frame in the history (of 16 frames or 1/4 of a second).
Once that happens, we immediately stop adding new items to the bowl.
A side effect is that the number of icons is now a *lot* smaller.
2018-03-30 16:51:09 +02:00
Benjamin Otte
07164e098a
window: Turn gtk_window_set_screen() into gtk_window_set_display()
...
And have a priv->display instead of a priv->screen.
Includes turning gtk_menu_set_screen() into gtk_menu_set_display(),
because that function just forwards to its window.
2017-10-31 08:25:37 +01:00
Timm Bäder
a0444b9c42
gtk4-demo: Add widgetbowl demo
...
Same as fishbowl, but with widgets
2017-07-19 21:27:15 -04:00
Benjamin Otte
4fdf880b6e
gtk-demo: Make icon counter work from ui file
...
Gets rid of update always being 1 frame late.
2017-01-07 02:09:40 +01:00
Benjamin Otte
cd8e41e491
gtk-demo: Add GtkFishbowl
...
Avoids usage of GtkFixed where child properties eat up all the CPU time.
And that's kinda not what I want to benchmark.
2017-01-07 02:09:40 +01:00
Benjamin Otte
1912d992d8
gtk-demo: Allow locking of icon count in fishbowl demo
...
I'm not sure I'm proud of the hack to get the changing icon into the UI
file without having to write code. But it works.
2016-11-20 05:29:03 +01:00
Benjamin Otte
2e284451ff
gtk-demo: Add fishbowl demo
2016-11-05 03:35:46 +01:00