Matthias Clasen
535e604b91
Drop the shape window example in testgtk
...
Not sure this can be rescued without root window coordinates.
It is also somewhat inherently X11-specific.
2017-08-11 15:46:00 -04:00
Benjamin Otte
29b0954c45
testgtk: Actually expand the scrolled window
2017-08-02 00:23:43 +01:00
Benjamin Otte
7297aeb54c
testgtk: Get rid of GtkEventBox
2017-08-02 00:23:30 +01:00
Timm Bäder
b71f644cf5
eventbox: Remove visible-window property
...
The GdkWindow that was supposed to back it is gone.
2017-07-27 21:53:42 +02:00
Timm Bäder
52875b7639
testgtk: Remove unused local variable
2017-07-19 21:27:16 -04:00
Timm Bäder
a73d3418bc
layout: Remove bin_window
2017-07-19 21:27:14 -04:00
Tom Schoonjans
2139b7642b
testgtk.c: native file chooser filter changes
...
Set the filter before showing the dialog
Afterwards, fetch the last active filter and display its name.
https://bugzilla.gnome.org/show_bug.cgi?id=784723
2017-07-18 13:30:44 -04:00
Carlos Garnacho
a72404dd5a
gtk: Mass delete all GtkWidget event mask API
...
We now rely on toplevels receiving and forwarding all the events
the windowing should be able to handle. Event masks are no longer a
way to determine whether an event is deliverable ot a widget.
Events will always be delivered in the three captured/target/bubbled
phases, widgets can now just attach GtkEventControllers and let those
handle the events.
2017-05-25 16:25:58 +02:00
Tim-Philipp Müller
d276cd47a5
meson: tests: make tests find resources from the source dir
...
Should probably also do this in the autotools build, since
the same problem exists there as well if we use srcdir != builddir.
2017-05-03 15:10:53 +01:00
Timm Bäder
db4b1d28f5
label: Remove angle property
2017-04-25 20:30:37 +02:00
Timm Bäder
c92b7d4224
box: Remove fill child property
...
GtkWidget:halign and GtkWidget:valign are sufficient
2017-04-25 20:30:37 +02:00
Timm Bäder
5729ea7744
box: Remove expand child property
...
GtkWidget already has hexpand/vexpand properties.
2017-04-25 20:30:37 +02:00
Timm Bäder
2aea8dfee9
togglebutton: Move :inconsistent to GtkCheckButton
2017-01-30 18:11:00 +01:00
Timm Bäder
66d584ce6e
togglebutton: Move :draw-indicator property to GtkCheckButton
...
It's not used in GtkToggleButton at all, only in GtkCheckButton and
GtkRadioButton.
2017-01-30 18:11:00 +01:00
Timm Bäder
ea897c6df4
Remove gtk_widget_show_all
2017-01-20 21:37:04 +01:00
Matthias Clasen
2c7e567f05
Update callers
...
Adapt all our tests and examples to the new initialization api.
2017-01-19 13:50:17 -05:00
Benjamin Otte
f2f5941d65
testgtk: Remove resize grips example
...
Resize grips are gone. And just showing an empty window is not terribly
exciting.
2016-12-20 18:01:12 +01:00
Benjamin Otte
ef75ca2d53
API: gdk: Remove gdk_window_process_updates()
...
We have a frame clock now.
2016-11-23 19:02:58 +01:00
Benjamin Otte
4850271ae8
API: Remove gtk_cairo_should_draw_window()
...
The answer is: Yes.
2016-11-23 18:48:38 +01:00
Matthias Clasen
c418ce0365
testgtk: Stop using gtk_micro_version
...
This will be going away soon
2016-11-19 12:28:52 -05:00
Matthias Clasen
6ed58cfd50
Fix the build
...
testgtk.c had some dead code referring to GdkColor. Drop it.
2016-11-01 14:11:25 -04:00
Timm Bäder
5071206d60
widget: Remove app-paintable
2016-10-31 19:28:28 +01:00
Benjamin Otte
73cd739e19
API: widget: Remove gtk_widget_is_composited()
...
We don't need to clutter our API with functions that are easily
available elsewhere and effectively unused.
2016-10-29 04:49:47 +02:00
Benjamin Otte
d249e77bcb
API: screen: Remove gdk_screen_is_composited()
...
Switch code to use gdk_display_is_composited() instead.
The new code also doesn't use a vfunc to query the property but rather
requires the backend to call set_composited()/set_rgba() to change the
value.
2016-10-29 04:49:47 +02:00
Benjamin Otte
a334316d5e
API: widget: Remove GtkWidget::composited-changed signal
...
Nobody uses it.
If you need the functionality, listen to display changes on
your widget and then connect to the display's notify::composited.
2016-10-29 04:49:47 +02:00
Timm Bäder
ead36206a3
Remove GtkActionGroup
2016-10-18 00:34:41 +02:00
Timm Bäder
bc7206d70f
Remove GtkStock
2016-10-18 00:29:20 +02:00
Timm Bäder
a4368a73a5
widget: Remove gtk_widget_reparent
2016-10-18 00:29:17 +02:00
Timm Bäder
77f50ec5d7
window: Remove reshow_with_initial_size
2016-10-18 00:29:17 +02:00
Benjamin Otte
dbeeaf7de6
cssprovider: Remove GError out argument from load functions
...
People should use the GtkCssProvider::parsing-error signal instead.
2016-10-17 16:52:05 +02:00
Benjamin Otte
1d4f23da8e
API: container: Remove GtkContainer::child property
2016-10-16 18:18:58 +02:00
Benjamin Otte
4df6ddad54
API: container: Remove gtk_container_set_border_width()
2016-10-16 18:18:58 +02:00
Timm Bäder
ad155fb26c
Remove GtkStock API from GtkImage
2016-10-16 18:17:21 +02:00
Timm Bäder
d36e4125d1
testgtk: Remove GtkImageMenuItem usage
2016-10-16 18:17:21 +02:00
Timm Bäder
b9a304cf6f
testgtk: fix css
2016-10-16 18:17:21 +02:00
Timm Bäder
590cd6a9f2
button: Remove GtkStock API
2016-10-16 18:17:21 +02:00
Timm Bäder
f45dadadd0
box: Remove 'padding' child property
2016-10-16 18:17:21 +02:00
Benjamin Otte
eace2cf421
API: Remove gdk_window_set_background()
...
Backgrounds are always transparent black.
2016-10-16 18:17:21 +02:00
Benjamin Otte
662001b60a
API: Remove ability to set visuals on windows
...
And with it, gtk_widget_get_visual() and gtk_widget_set_visual() are
gone.
We now always use the RGBA visual (if available) and otherwise fall back
to the system visual.
2016-10-16 18:17:21 +02:00
Benjamin Otte
89f2e17f91
API: Remove gdk_window_set_composited()
...
And the related call gdk_display_supports_composite().
2016-10-16 18:17:21 +02:00
Benjamin Otte
013caef941
testgtk: Remove feature unsupported in Wayland
...
Wayland doesn't allow positioning windows randomly, so don't try.
2016-10-16 18:17:21 +02:00
Benjamin Otte
c2125e80a3
API: window: Remove geometry support
2016-10-16 18:17:21 +02:00
Benjamin Otte
b561af25ec
testgtk: Compile without warnings on win32
2016-02-11 03:44:47 +01:00
Matthias Clasen
8e6cc260ca
testgtk: Remove an unused variable
2016-02-10 16:10:23 -05:00
Matthias Clasen
e79db79e2c
testgtk: Avoid deprecation warnings
...
Eventually, we should probably remove the examples that rely
on geometry support, since they probably don't work correctly
anymore. For now, just disable the warnings.
2016-01-29 11:54:07 -05:00
Carlos Garnacho
cf4e179a45
tests: Avoid deprecated API usage in testgtk
...
We can use seat grabs here.
2016-01-28 12:50:50 +01:00
Alexander Larsson
51dc4873fd
Add gtk_native_dialog_destroy()
...
Its very easy to get extra references to the NativeDialog so that
when you release your last reference any visible dialog is not
hidden. We handle this by adding a destroy method similar to how
you destroy regular toplevels.
2015-11-11 16:06:44 +01:00
Alexander Larsson
5e50abf411
testgtk: Add native dialog tests
2015-11-05 16:54:12 +01:00
Owen W. Taylor
26d8a56506
testgtk/Alpha Window: fix the drawn area when we are drawing decorations
...
A GtkWindow's allocation includes the titlebar, borders, and shadows; we
only want to draw our custom alpha content over the child allocation of
the GtkWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=756886
2015-10-22 11:05:04 -04:00
Matthias Clasen
ccfacb383c
testgtk: Remove pointless code
...
The display is getting overwritten immediately. Pointed out by
coverity.
2015-07-17 19:54:09 -04:00
Matthias Clasen
36a2c507e2
testgtk: Add new Adwaita cursor names
2015-05-07 18:58:33 -04:00
Matthias Clasen
65b7fc91bd
testgtk: Respect display cursor size limitations
...
Instead of hardcoding 64, ask the display about the
maximal supported cursor size.
2015-04-07 18:40:21 -04:00
Matthias Clasen
a6c7889cb6
testgtk: Set initial cursor
...
Arrange for the entry and the cursor area to both start out
with the arrow cursor.
2015-04-05 19:10:39 -04:00
Matthias Clasen
e77b2832aa
testgtk: Redo the cursor example
...
Use cursor names instead of font cursors, so we can also show
cursors that are not represented in the X cursor font and thus
don't have a value in the GdkCursorType enumeration.
2015-04-05 19:00:44 -04:00
Matthias Clasen
386534ef1f
testgtk: Update cursor theme on size change
...
We were connecting to the wrong signal, so we were not picking
up all changes to the spin button value.
2015-04-05 13:28:26 -04:00
Benjamin Otte
0a6443ebaf
testgtk: Don't trigger deprecation warnings
...
.. and various other assorted fixes, mostly related to drawing code that
assumed stuff wasn't transparent by default.
2014-10-12 04:54:40 +02:00
Eric Le Bihan
ed5f6d4333
Fix testgtk.c when building for Wayland.
...
Fix wrong usage of GDK_WINDOWING_WAYLAND instead of
GDK_WINDOWING_X11 in test/testgtk.c.
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
https://bugzilla.gnome.org/show_bug.cgi?id=737363
2014-09-25 17:48:43 -04:00
Jasper St. Pierre
1073ae57ce
testgtk: Fix enabling of the cursor demo
...
Make this a lot less hacky.
2014-09-02 11:26:56 -07:00
Matthias Clasen
41fe530795
testgtk: Make cursor demo work with wayland
...
We have the wayland apis to do this.
2014-09-02 09:53:51 -04:00
Руслан Ижбулатов
694c8d32d5
Fix various warnings about unused things
...
https://bugzilla.gnome.org/show_bug.cgi?id=734735
2014-08-13 23:38:47 +00:00
Matthias Clasen
69cef3c9b4
tests: Adapt to gtk_widget_reparent deprecations
2014-05-22 08:50:18 -04:00
Matthias Clasen
39ccbe6549
tests: Drop manual property editor
...
No need for this anymore, now that we have the inspector everywhere.
2014-05-22 08:32:48 -04:00
Benjamin Otte
949aa98a8f
testgtk: Don't use deprecated functions in selection test
2014-04-10 16:53:42 +02:00
Benjamin Otte
5600499c2f
testgtk: Remove rc file test
...
The test didn't work anymore since RC files stopped being used in 3.0.
2014-04-10 16:50:32 +02:00
Benjamin Otte
27ada645ca
testgtk: Don't use deprecated functions in progress bar test
2014-04-10 16:48:13 +02:00
Benjamin Otte
78ae3690fa
testgtk: Don't use deprecated functions in event watcher test
2014-04-10 16:46:07 +02:00
Benjamin Otte
6d56ef2d52
testgtk: Don't use deprecated functions in scrolled windows test
2014-04-10 16:42:59 +02:00
Benjamin Otte
2a0d046df3
testgtk: Don't use deprecated functions in dialogs test
2014-04-10 16:36:16 +02:00
Benjamin Otte
4f7a972aac
testgtk: Make dialogs example work without static variable
...
Makes it a bit more complicated, but meh.
2014-04-10 16:16:41 +02:00
Benjamin Otte
38149c472e
testgtk: Clean up dialog example
...
Don't pass a static variable to a callback, when the static variable
could just be deinfed in the callback.
2014-04-10 16:07:05 +02:00
Benjamin Otte
27770485f8
testgtk: Don't use deprecated functions in flipping test
2014-04-10 14:29:51 +02:00
Benjamin Otte
11e17262b7
testgtk: Don't use deprecated functions in scrolling test
2014-04-10 02:40:49 +02:00
Benjamin Otte
9cbd681174
testgtk: Don't call deprecated function in mainloop test
2014-04-10 02:36:38 +02:00
Martin Renold
f8ba25877d
testgtk: Don't use GDK_POINTER_MOTION_HINT_MASK anymore
2013-11-16 01:50:53 +01:00
Yosef Or Boczko
719dd636a9
Replace all margin-left and margin-right with margin-start and margin-end
...
https://bugzilla.gnome.org/show_bug.cgi?id=710238
2013-11-15 02:54:35 +01:00
Benjamin Otte
859805bda4
testgtk: Remove idle test
...
The test is broken, written like it's 1999 and testing a feature that
I'm about to deprecate.
2013-10-05 14:57:24 +02:00
William Jon McCann
a9e82cd46a
Deprecate and ignore gtk-enable-tooltips setting
...
It is enabled by default except on touch input devices.
2013-06-30 14:28:02 -04:00
William Jon McCann
3d5d3e8eae
Fix a couple of deprecation warnings related to stock items
2013-06-30 13:14:18 -04:00
William Jon McCann
b86588e9f5
Deprecate GtkImageMenuItem
...
Use GtkMenuItem for menus with only text or GMenu for those
with icons for "nouns" and just text for "verbs".
2013-06-27 18:48:46 -04:00
Benjamin Otte
427d4195a1
tests: Ignore deprecation warnings
2013-06-26 15:51:32 +02:00
William Jon McCann
fc71cbe5a6
Remove most of the stock API usage from the tests
...
With the exception of GtkActions and the tests for stock items.
2013-06-24 19:53:08 -04:00
Alexander Larsson
6d71f7f61b
testgtk: Test GtkListBox placeholder widgets
2013-06-13 12:17:07 +02:00
Alexander Larsson
043d445a03
testgtk: Add ListBox test
...
This is a simple test of a scrolling listbox with sorting, filtering
and a header row.
2013-06-13 12:17:06 +02:00
Benjamin Otte
1e8640f294
testgtk: Disable deprecations when using old functions
2013-05-30 20:01:33 +02:00
Benjamin Otte
06bd9200cd
testgtk: Get rid of screen part in display & screen test
2013-04-06 10:47:55 +02:00
Matthias Clasen
cfc0118f6f
Replace GLE reference
...
Recommending gtkparasite is more useful nowadays.
2013-03-17 19:01:25 -04:00
Matthias Clasen
7dd2539e1b
Add a missing runtime check
...
The cursor theme and size settting code was ifdefed to only
be compiled with the X11 backend, but it didn't check for
running under X at runtime. Fix that.
http://bugzilla.gnome.org/695495
2013-03-13 06:04:58 -04:00
Alexander Larsson
b57a2c8341
Add widget transparency test to testgtk
...
https://bugzilla.gnome.org/show_bug.cgi?id=687842
2013-02-07 11:11:38 +01:00
Cosimo Cecchi
ce869921ab
Don't use gtk_scrolled_window_add_with_viewport() in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=693015
2013-02-01 22:58:55 -05:00
Benjamin Otte
a70e85702f
testgtk: Remove GtkAlignment usage from progressbar test
...
We can use gtk_widget_set_[hv]align here.
2012-12-21 19:47:40 +01:00
Matthias Clasen
1617344222
testgtk: Work around some property editor problem
...
The property editor fails to show anything for GtkSettings, unless
we tell it to just show GTK_TYPE_SETTINGS. For now, do just that, then.
2012-06-02 08:41:08 -04:00
Matthias Clasen
909fe12282
testgtk: Show GtkSettings
2012-03-22 00:17:21 -04:00
Javier Jardón
45f660ef75
Use GDK symbolic names for button numbers
2012-03-13 13:10:30 +00:00
Benjamin Otte
47402cc26a
testgtk: Fix compiler warnings
2012-03-01 15:10:36 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Cosimo Cecchi
80f0feda98
testgtk: use GtkColorChooserDialog instead of GtkColorSelectionDialog
2012-02-14 16:37:03 -05:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Carlos Garcia Campos
3c486ee96d
testgtk: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Javier Jardón
1796e2f6ba
test/testgtk.c: Fix compilation warning
2012-01-03 16:58:42 +01:00
Javier Jardón
465301c64f
tests/testgtk: Do not use GdkColor-based api
2011-12-26 17:12:20 +01:00