Timm Bäder
4162d65a7b
tests: Remove teststockbuttonmenu
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
bae12e6a2f
tests: Remove testwindows test
...
It wasn't drawing anything anymore...
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
021fe010b6
API: Remove GtkPlug, GtkSocket and GtkWin32EmbedWidget
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
Timm Bäder
fb3d9022ad
Remove GtkHBox
2016-10-16 18:17:21 +02:00
Benjamin Otte
9a5de96187
API: Remove GtkNumerableIcon
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
4ed9452e90
API: menu: Remove tearoff support
2016-10-16 18:17:21 +02:00
Benjamin Otte
d2a8667f83
API: Remove GtkStatusIcon
2016-10-16 18:17:21 +02:00
Benjamin Otte
29c570a660
tests: Port to GdkMonitor
2016-10-16 18:17:21 +02:00
Matthias Clasen
d053d5c58f
Rename Makefile references from 3.0 to 4.0
...
This is almost certainly incomplete.
Needs careful scrutiny
2016-10-07 10:34:50 -04:00
William Hua
05b9bc5cff
add demo for testing gtk_menu_popup_at_* ()
...
https://bugzilla.gnome.org/show_bug.cgi?id=756579
2016-07-19 09:38:54 -04:00
Emmanuele Bassi
ad78daaf80
gdk: Deprecate gdk_cairo_create()
...
We have GdkDrawingContext, now, which is in charge of creating Cairo
contexts for drawing on a GdkWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=766675
2016-06-09 17:45:40 +01:00
Georges Basile Stavracas Neto
657fcd0717
tests: adapt testscrolledwindow to have max content sizes
...
This patch adpats the current test to show a popover with
max-content-width and -height properties set.
https://bugzilla.gnome.org/show_bug.cgi?id=742281
2016-06-05 11:03:11 -03:00
Bastien Nocera
bb6cce4e6f
Separators not correctly placed
...
What it should look like:
Bold
----
/Size/
x 0.5
x 1.0
What it looks like:
Bold
/Size/
----
x 0.5
x 1.0
https://bugzilla.gnome.org/show_bug.cgi?id=767108
2016-06-01 10:03:19 -04:00
Timm Bäder
5029e11473
tests/scrolling-performance: Define MyTextView
...
The type is used in widget-factory.ui, so add a dummy definition here to
keep the test working.
2016-05-30 19:11:27 +02:00
Carlos Soriano
264b2b78cd
testnotebookdnd: add one GtkListBox as tab content
...
To make sure we test regressions on widgets that bubble up motion
handling and can trigger the motion handling code path on GtkNotebook.
https://bugzilla.gnome.org/show_bug.cgi?id=764395
2016-05-02 13:17:48 +02:00
Matthias Clasen
e0e114fddb
testdnd2: Actually test gtk_drag_set_icon_widget
...
I added a new test function, but didn't actually use it.
No wonder I couldn't reproduce the lifecycle issues with
drag widgets that firefox is experiencing.
2016-04-26 20:34:24 -04:00
Matthias Clasen
4fe336930e
Expand the drag widget testcase
...
This adds a testcase which reuses the drag widget for multiple
drags.
2016-04-26 00:19:02 -04:00
Emmanuele Bassi
b993c7db63
tests: Add GLES support to GtkGears
...
Use the appropriate GLSL shaders when running under an OpenGL ES
context.
2016-04-25 14:35:02 +01:00
Emmanuele Bassi
a92ba06383
tests: Add GLES shaders to testglarea
...
Check if the GdkGLContext is using ES, and load the appropriate shaders
in that case.
2016-04-25 14:35:02 +01:00
Matthias Clasen
6d953cb08e
Add a dnd test using a window as icon
...
This case is causing problems in firefox. Lets at least make
sure that it doesn't crash in GTK+.
2016-04-21 14:23:00 -04:00
Matthias Clasen
6f2d5a6290
Move autotestkeywords to testsuite
...
All the 'make check' and installed tests are now in testsuite/,
and tests/ is just a collection manual test programs.
2016-03-28 17:56:13 -04:00
Benjamin Otte
d42ba8a82a
tests: Add missing break statements
...
http://www.viva64.com/en/b/0383/
2016-03-20 05:36:17 +01:00
Matthias Clasen
213108b64f
Minor cleanup
...
The GtkStatusIcon::size-changed signal expects a boolean return.
2016-03-05 12:11:05 -05:00
Cosimo Cecchi
7ccd91c9eb
testscale: change example to use upwards labels
...
There's no example of that in testscale.
2016-03-03 22:06:16 -08:00
Matthias Clasen
7bd1012e51
tests: Strip newlines from g_warning and g_error
...
g_logv adds one for us already.
2016-02-28 12:23:12 -05:00
Matthias Clasen
566010e91d
Add a testcase for revealer size allocation
...
This was taken from https://bugzilla.gnome.org/show_bug.cgi?id=761760
2016-02-23 20:53:23 -05:00
Benjamin Otte
e7470be7bf
tests: Port testlockbutton to GTask
...
Get rid of deprecations that way.
2016-02-13 06:26:42 +01:00
Benjamin Otte
b561af25ec
testgtk: Compile without warnings on win32
2016-02-11 03:44:47 +01:00
Benjamin Otte
34db80c28b
tests: Remove unused variable
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
Matthias Clasen
17d9e94682
testoffscreen: Remove deprecated calls
...
Not doing these calls doesn't seem to affect the demo,
so lets just remove them.
2016-01-29 11:54:07 -05:00
Matthias Clasen
3302c2a12c
testgeometry: Ignore deprecations
...
All the functionality that is tested here has been deprecated
recently.
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
Carlos Garnacho
a74db1de77
tests: Avoid deprecated API usage in testsocket
...
We can use seat grabs here.
2016-01-28 12:50:50 +01:00
Carlos Garnacho
fef661ae84
tests: Fix deprecation warnings in testinput
2016-01-28 12:50:50 +01:00
Matthias Clasen
5febf4f170
Add a color editor test
...
This tests using a color editor embedded in other ui.
2016-01-23 18:16:51 -05:00
Benjamin Otte
4e627e108e
testnotebookdnd: Add an action widget
...
Just so we have some test that tests action widgets.
2016-01-11 17:03:07 +01:00
Matthias Clasen
7ee65da0e3
Add foreigndrawing example to gtk3-demo
...
This makes it easier accessible and nicer to refer to
from the documentation.
2016-01-10 15:32:53 -05:00
Olivier Fourdan
28f011eb05
wayland: prefer subsurface when possible
...
Quite a few applications use GTK_WINDOW_POPUP to create various
temporary windows and place then on screen. That works fine on X11 but
on Wayland there is no global coordinate system for regular surfaces.
If the application is using a gdk temp window and set a parent with
gtk_window_transient_for(), the gdk wayland backend has all it needs to
create a subsurface that can be placed at will by the application.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759738
2016-01-08 10:33:26 +01:00
Matthias Clasen
bc020fdeb7
tests: Rework the way foreigndrawing works
...
Instead of the weird PathElt struct, generate a quick-n-dirty parser
that parses CSS selectors into GtkWidgetPath elements.
Based on a patch by Benjamin Otte.
2016-01-04 15:39:48 -05:00
Timm Bäder
2b2a538629
testframe: Pass correct state to GtkStyleContext API
2016-01-02 15:52:20 +01:00
Matthias Clasen
7acb670e70
Add more icon entry tests
...
This test shows that changing icon types works.
2015-12-18 19:38:19 -05:00
Matthias Clasen
934941d95d
testdnd2: Add some verbosity
...
This makes it easier to see that we're missing some signals
under Wayland.
2015-12-13 16:02:02 -05:00
Matthias Clasen
a8a33b71e4
Add a drag-end callback
...
This will be helpful in figuring out life-cycle issues
with icon widgets.
2015-12-11 10:50:25 -05:00
Matthias Clasen
c418ca451b
Add a dnd testcase
...
This has tests for drag images, widgets, hotspots.
2015-12-11 10:44:46 -05:00
Matthias Clasen
6915aba952
Add more examples to foreigndrawing
...
Show how to draw checks and radios.
2015-12-05 17:09:59 -05:00
Olivier Fourdan
7fc493a8a8
wayland: fix testtooltips
...
On Wayland, for tooltips to work as expected, the type hint must be set
to tooltips, otherwise the popup window won't be translated as a
subsurface.
Fix the test do work as expected under Wayland.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759018
2015-12-04 13:17:29 +01:00
Benjamin Otte
52ba39ba73
tests: Rework some foreigndrawing code
...
Instead of specifying the full path everytime, just specify the parent
style context and then use its path.
2015-12-03 14:43:56 +01:00
Matthias Clasen
36d5d29af6
Simplify foreign drawing example a bit
2015-12-03 07:55:57 -05:00
Matthias Clasen
574246a3d8
Add a selected text example
2015-12-02 23:10:56 -05:00
Matthias Clasen
16eed47e87
Make foreign drawing example work
...
Set up multiple style contexts to get inheritance right.
2015-12-02 21:32:45 -05:00
Matthias Clasen
09c74f958d
Add another hand-drawn scrollbar
...
This one is supposed to show up in active state, but doesn't.
2015-12-02 18:59:59 -05:00
Matthias Clasen
b5bcc299ad
Add an example of foreign drawing
...
This uses the gtk_render apis with a style context constructed
from a style path.
2015-12-02 18:49:07 -05:00
Matthias Clasen
a3ce702a5a
testentryicons: update dnd example
...
This code was #ifdefed out since 2008. Time to try it.
2015-11-30 18:41:33 -05:00
Matthias Clasen
4005f137a0
testentryicons: Use an existing icon name
...
dialog-info is not an existing icon.
2015-11-30 18:21:44 -05:00
Matthias Clasen
e0aa35ca58
Update testlevelbar
...
This test needs some small updates after the recent changes
to levelbar styling.
2015-11-13 06:41:14 -05: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
Matthias Clasen
601cbbcc87
Improve testlevelbar
...
Add a switch to toggle between discrete and continuous modes.
2015-11-10 23:31:33 -05:00
Alexander Larsson
5e50abf411
testgtk: Add native dialog tests
2015-11-05 16:54:12 +01:00
Benjamin Otte
c580a9d01f
tests: Make stack expand
...
This is to test invisible children are actually resized before they are
made visible (which they currrently are not.
2015-11-04 19:39:29 +01:00
Sébastien Granjoux
ffaaa1e66e
Add a more complex widget in the flipping assistant
...
This reproduces the problem from bug
https://bugzilla.gnome.org/show_bug.cgi?id=756385
2015-10-29 19:21:20 -04:00
Matthias Clasen
8db30aa9a0
testassistant: Add another example
...
This adds a test involving removing and re-adding pages, to
help with
https://bugzilla.gnome.org/show_bug.cgi?id=756385
2015-10-26 09:16:38 -04: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
Emmanuele Bassi
9601479f0c
Allow testglarea to work with legacy GL contexts
...
Use the 1.30 GLSL shading language for the fragment and vertex shaders.
https://bugzilla.gnome.org/show_bug.cgi?id=756142
2015-10-07 16:21:57 +01:00
Matthias Clasen
983cd2f7cc
gdkgears: Use a headerbar
...
This is a testcase for
https://bugzilla.gnome.org/show_bug.cgi?id=755675
2015-09-29 21:19:06 -04:00
Matthias Clasen
29f5cdda10
testflowbox: Add an example with buttons
...
This example populates a flow box with buttons, and makes the
flow box children unfocusable, with the intention that the focus
moves directly between the buttons. Currently, keynav does not
work at all in this case.
2015-08-26 20:00:03 -04:00
Matthias Clasen
0f1c4a303e
gdkgears: Add a popover
...
As pointed out in bug 754143, this reveals a crash in the Wayland
backend.
2015-08-26 18:26:56 -04:00
Matthias Clasen
3d7647991a
Add a test for gtk_flow_box_bind_model
2015-08-16 18:20:50 -04:00
Matthias Clasen
408358c9d9
Add a test for g_list_box_bind_model
2015-08-16 18:20:50 -04:00
Matthias Clasen
c514d1dd5e
testfilechooser: Say Save
...
Thats a more typical affirmative action in save mode.
2015-07-31 07:12:35 -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
2b105dc3d9
testdialog: Error out if templates are missing
...
Coverity complained about us ignoring the return value
here, and it is nicer to get an error message about this.
2015-07-17 16:11:17 -04:00
Emmanuele Bassi
b274a2656d
tests/gears: Ensure we don't use unavailable GL resources
...
We need to check on realize if we have access to a GL context, before
calling GL functions. We use gtk_gl_area_get_error() for that.
We also need to tear down the resources during unrealization, instead
of leaking them.
2015-07-16 14:55:25 +01:00
Benjamin Otte
bc19ea965f
tests: Remove testplacesview test
...
The GtkPlacesView widget was made private, so we can't create it in a
testcase.
2015-07-16 06:37:37 +02:00
Benjamin Otte
974c60a0d5
tests: Fix gcc complaints about testfilechooser
2015-07-16 06:37:32 +02:00
Georges Basile Stavracas Neto
7af88d40b1
placesview: add view for fixed drives and networks
...
Places sidebar shows XDG directories, mounted and unmounted devices,
connected networks, bookmarks and actions like 'Connect to server'
and 'Insert location', which causes the sidebar to grow very quickly
and look cluttered. Because of that, new mockups for the sidebar try
to simplify it.
To make the sidebar simpler, the new mockups propose that it should
only handle connected networks and removable devices such as flash
drives and USB devices, and delegates other devices for external
widgets through the 'Other Locations' item.
To handle fixed devices and manage network connections, add a new
widget named GtkPlacesView, based on Nautilus mockups to keep
consistency between GNOME file management tools - in this case,
between Nautilus and the bundled Gtk's file chooser.
https://bugzilla.gnome.org/show_bug.cgi?id=752034
2015-07-15 23:11:52 -03:00
Benjamin Otte
8756c03885
testtoolbar: Don't expand rows that shouldn't be expanded
2015-07-08 05:48:59 +02:00
Ryan Lortie
d2f27bfe71
testgmenu: use the menu binding code
...
The menu tracker does a better job of this than we can, so move over to
using it instead.
This fixes issues with './testgmenu --import' not properly displaying
the language submenu.
https://bugzilla.gnome.org/show_bug.cgi?id=752016
2015-07-07 09:28:59 -04:00
Matthias Clasen
4a21c129e4
testfilechooser: Add a --local-only flag
...
This allows for easier testing of !local-only mode.
2015-07-04 00:29:26 -04:00
Matthias Clasen
f87f43b622
testfilechooser: Disable the terrible preview
...
It makes testing the intended user experience harder.
2015-07-04 00:29:25 -04:00
Matthias Clasen
e9b847736c
Add a testcase for font options
2015-07-01 19:14:58 -07:00
Cosimo Cecchi
9c7b0f0491
overlay: remove gtk_overlay_add_pass_through_overlay()
...
The API to access this functionality will be the setter we just added in
the previous commit.
https://bugzilla.gnome.org/show_bug.cgi?id=750568
2015-06-17 11:48:37 -07:00
Alexander Larsson
5cf2896308
testoverlay: Fix indentation
2015-06-15 11:00:40 +02:00
Alexander Larsson
1a44a85847
testoverlay: Add test for overlay z ordering
...
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
2015-06-15 10:56:46 +02:00
Alexander Larsson
a9bf6532b4
testoverlay: Fix test by using add_pass_through_overlay
...
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
2015-06-15 10:56:46 +02:00
Alexander Larsson
ccc4b192ec
testoverlay: Add new input stacking test
...
In this case we have a bunch of interactive main children
of the overlay, and then a centered overlay that contains both
non-interactive (labels) and interactive (entry) widgets.
This shows off a problem where the non-interactive parts (the labels)
steals input from the overlay main children (breaks button click and
hover effects).
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
2015-06-15 10:56:45 +02:00
Matthias Clasen
675467063e
testassistant: Remove padding from the filechooser page
...
This tests the new assistant api to remove padding from
pages.
2015-06-14 21:30:01 -04:00
Matthias Clasen
43fcae91f1
Add a filechooser-in-assistant example
...
This is one of the cases where one wants a page without
any padding.
2015-06-14 21:05:49 -04:00
Matthias Clasen
9fbd71394c
Only build testfontchooserdialog on linux
...
We are using this to test pango functionality that
uses fontconfig apis, so this doesn't build on OS X
or Windows anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=750892
2015-06-13 23:00:41 -04:00
Matthias Clasen
dee0da30b6
Add a tree dnd testcase
...
This shows a minimal setup for enabling non-row DND from a treeview.
2015-06-05 08:33:59 -04:00
Matthias Clasen
36a2c507e2
testgtk: Add new Adwaita cursor names
2015-05-07 18:58:33 -04:00
Matthias Clasen
049cbc8b74
GtkFontChooser: Allow a custom font map
...
This lets applications show their own fonts instead of
or in addition to system fonts.
https://bugzilla.gnome.org/show_bug.cgi?id=748771
2015-05-07 07:33:23 -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
cd033e6f07
testfilechooser: Improve filter setup
...
It is not ideal when the default filter filters away
all files, so change things to select the 'all files'
filter by default.
2015-04-05 22:09:22 -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
Matthias Clasen
505fed1383
Fix separator in testsplitheaders
2015-03-28 22:32:12 -04:00
Alexander Larsson
967cb56275
shadow-box: Blur only horizontally/vertically for the non-corner parts
...
There is no need to e.g. blur in the x-direction for the top part
of a box shadow. Also, there is no need to extend the mask in the
non-blurred direction.
https://bugzilla.gnome.org/show_bug.cgi?id=746468
2015-03-21 21:31:49 +01:00
Alexander Larsson
9ba185b749
Add performance test for gtkcairoblur
...
This just creates a large cairo surface and times bluring it
at various values of radius.
https://bugzilla.gnome.org/show_bug.cgi?id=746468
2015-03-21 20:59:57 +01:00
Matthias Clasen
cbf5b49cb8
Add an example for accelerators with manual image menuitems
...
This is somewhat tricky to work out, so put some example
code here for future reference. The tricky part is that
GtkAccelLabel tries to be smart about hiding the accel
if there's not enough space, so we have to make sure to
pack the label with expand=TRUE and set align=GTK_ALIGN_FILL,
or things won't work.
2015-03-06 20:36:11 -05:00
Chun-wei Fan
b3725a455d
test/gtkgears.c: Fix on C89 Compilers
...
Make sure that variables are declared at the top of the block.
Break up one of the sincos() calls into individual calls to sin() and cos()
so that we do not have to complicate the initialization of the following
GLfloat array.
2015-03-06 23:47:35 +08:00
Matthias Clasen
17bc7aaefd
Check for existence of sincos
...
It apparently doesn't exist everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=745578
2015-03-04 06:30:13 -05:00
Emmanuele Bassi
0019eb7bf9
gears: Update to slightly more modern OpenGL
...
Instead of using glxgears, which still uses OpenGL 2.1 and the fixed
pipeline, we use a slightly modified es2gears, OpenGL 3.2, and the
programmable pipeline.
2015-03-03 00:06:35 +00:00
Lars Uebernickel
f3110e4103
Rename GtkSidebar to GtkStackSidebar
...
GtkSidebar is too generic and doesn't fully convey what the widget does.
https://bugzilla.gnome.org/show_bug.cgi?id=744094
2015-02-13 18:01:56 +01:00
Emmanuele Bassi
b87034a985
tests: Update testglarea
...
Since we dropped the legacy OpenGL compatibility profile, we need to use
recent OpenGL APi and concepts. This also means that the example code
gets a tad more complicated.
https://bugzilla.gnome.org/show_bug.cgi?id=741946
2015-02-09 19:10:30 +00:00
Cosimo Cecchi
404e2753c4
scrolledwindow: add a new edge-reached signal
...
This will be used to just detect when an edge of the scrollable area is
reached - as opposed to the edge-overshot signal that is emitted when
the user scrolls past the edge.
https://bugzilla.gnome.org/show_bug.cgi?id=742848
2015-01-31 23:08:17 +00:00
Matthias Clasen
34c29d8d3c
testnotebookdnd: Defer deletion to an idle
...
The code here was always a bit buggy: We removed the tab from
the notebook in a ::drag-data-received handler. But with
GTK_DEST_DEFAULT_DROP, that signal is emitted before we inform
the source side that the drag is finished. With its improved drag
handling, GtkNotebook now interprets this as a 'spontaneous'
removal of the tab being dragged, and cancels the drag, leading
to an unwanted cancel animation.
The easiest fix is to just defer the tab removal to an idle.
2015-01-30 10:13:28 -05:00
Matthias Clasen
7b9065c2ee
Avoid a crash in testcalendar
...
When changing between months, we can get into a situation like
'February 30", which GDate doesn't accept. Don't crash in that
case.
2014-12-23 21:47:50 -05:00
Matthias Clasen
17fec70022
Fix another header guard oversight
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741252
2014-12-08 19:34:23 -05:00
Chun-wei Fan
fbe4f94519
test/gtkgears.c: Fix Builds on Systems Without M_PI
...
Use G_PI in place of M_PI to fix the build on compilers that do not have
M_PI defined.
https://bugzilla.gnome.org/show_bug.cgi?id=740795
2014-12-03 17:10:37 +08:00
Benjamin Otte
0e44722fd8
tests: Add deprecation guards
...
It's the last test still spewing these and I'm too lazy to do a proper
fix.
2014-11-05 13:06:32 +01:00
Matthias Clasen
f83c903ed8
Add a scale to the popover menu example
...
Demonsttrate that this is flexible enough for the intended uses.
2014-10-29 06:49:59 -04:00
Matthias Clasen
228e51b319
Adapt the testpopover example
...
Add the required boxes for each submenu. We now need to specify the
submenu name only once per submenu.
2014-10-29 06:49:59 -04:00
Matthias Clasen
2b5a49c285
Adapt the testpopover example
...
Drop all all explicit role setting from the testpopover example.
2014-10-29 06:49:59 -04:00
Matthias Clasen
2401a6cb8e
Adapt the testpopover example
2014-10-29 06:49:59 -04:00
Matthias Clasen
1fee63d097
Adapt the testpopover example
...
Drop all uses of has-submenu.
2014-10-29 06:49:59 -04:00
Matthias Clasen
4da281d20b
Adapt the testpopover example
...
We now use GtkPopoverMenu, and just add the model buttons
directly to it.
2014-10-29 06:49:58 -04:00
Matthias Clasen
a8cc4787d2
Add a manual popover menu example
...
Reproduce the testpopover popover manually, by packing model
buttons into a stack in a popover.
2014-10-29 06:49:58 -04:00
Cosimo Cecchi
96a3b23736
testlevelbar: fix CSS to be aligned with documentation
...
https://bugzilla.gnome.org/show_bug.cgi?id=707695
2014-10-27 06:56:19 -04:00
Cosimo Cecchi
0555ef20a4
testlevelbar: don't segfault when quitting testlevelbar
...
Quit the mainloop when the window is closed.
https://bugzilla.gnome.org/show_bug.cgi?id=707695
2014-10-27 06:56:19 -04:00
Matthias Clasen
f7813deb26
Test h/vhomogenenous in teststack
...
Add separate checkboxes for hhomogeneous and vhomogeneous.
2014-10-26 15:07:26 -04:00
Matthias Clasen
5ec56d2e6e
Port the overlayscroll example
...
Make the overlayscroll example use the overlay scrolling that is
now built into GtkScrolledWindow, instead of the manual prototype.
2014-10-20 23:07:45 -04:00
Matthias Clasen
05ab0f2227
Add an experiment for overlay scrollbars
...
This is just meant as a prototype for how we can show a
scroll position indicator for touch. This uses GTK_POLICY_EXTERNAL
to hide the scrolled windows scrollbar while still allowing
scrolling.
2014-10-20 23:07:45 -04:00
Carlos Garnacho
ca9d15df92
scrolledwindow: Add ::edge-overshot signal
...
This signal is emitted whenever user scrolling hits the overshoot
edge in the given direction. May be useful to add "reload" or "load
more" behaviors in apps.
https://bugzilla.gnome.org/show_bug.cgi?id=738534
2014-10-20 18:52:43 +02:00
Matthias Clasen
0b0c6a6477
testfilechooser: Test the preview again
...
There is code in there to show a preview, use it.
2014-10-19 20:03:58 -04:00
Lars Uebernickel
582adcab1a
Add GDK_DEP_LIBS to demos and tests
...
Some of them depend on libepoxy now.
2014-10-15 16:15:35 +02:00
Benjamin Otte
e0040acefc
tests: Make gtkgears compile without complaints
2014-10-14 14:33:08 +02:00
Alexander Larsson
fdeb4f8c16
gl: Make gdk_gl_context_make_current() return void
...
Its not really reasonable to handle failures to make_current, it
basically only happens if you pass invalid arguments to it, and
thats not something we trap on similar things on the X drawing side.
If GL is not supported that should be handled by the context creation
failing, and anything going wrong after that is essentially a critical
(or an async X error).
2014-10-13 10:43:32 -04:00
Alexander Larsson
5d7e268aac
Add tests/testglblending
...
This test stacks GL and cairo rendering in various
orders to test the layer handling.
2014-10-13 10:43:31 -04:00
Alexander Larsson
8f3e9d1b05
Add tests/gdkgears
...
A more complex test modeled on the traditional glxgears.
2014-10-13 10:43:31 -04:00
Alexander Larsson
3b3726ae57
Add tests/testglarea
...
This is a very simple test of GtkGLArea.
2014-10-13 10:43:31 -04:00
Benjamin Otte
75ed941ef1
tests: Update testexpand example for deprecations
2014-10-12 05:27:27 +02:00
Benjamin Otte
c96945b390
tests: Update testtooltips for deprecations
2014-10-12 05:21:01 +02:00
Benjamin Otte
3d45d53714
tests: Don't force black background in testwindows
2014-10-12 05:15:23 +02:00
Benjamin Otte
81fe943472
tests: Update testoverlaystyleclass test
...
Make it not use deprecations anymore and use CSS to show things work by
changing border-radius when a style class exists.
2014-10-12 05:11:13 +02: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
Matthias Clasen
9dcb33ad34
Add an example for synchronized scrolling
...
This example uses GTK_POLICY_EXTERNAL to share a scrollbar among
multiple scrolled windows.
2014-10-09 20:18:51 -04:00
Benjamin Otte
f46c31f2fb
tests: Exit test when main window is closed
2014-10-10 00:27:45 +02:00
Matthias Clasen
3897041f4a
More removal of deprecated API
2014-10-07 22:35:02 -04:00
Benjamin Otte
7d1e79ef4b
tests: Add a test for a performance optimisation
...
text-shadow is too slow. Running this testcase reveals that.
2014-10-03 06:18:04 +02:00
Ikey Doherty
cdd2651db0
Add GtkSidebar
...
GtkSidebar behaves internally much like GtkStackSwitcher, providing a vertical
sidebar like widget. It is virtually identical in appearance to the widget
currently used in GNOME Tweak Tool.
This widget is connected to a GtkStack, and builds its own contents as a
GtkListBox subclass, using the "title" child property to provide a consistent
navigatable widget.
Being a subclass of GtkListBox it benefits immediately from strong keyboard
navigation, and minimal changes are required for theming.
https://bugzilla.gnome.org/show_bug.cgi?id=735293
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2014-10-01 00:44:46 -04: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
Matthias Clasen
39349cdea3
testicontheme: Use rtl/ltr lookup flags
...
This should help with diagnosing
https://bugzilla.gnome.org/show_bug.cgi?id=737000
2014-09-21 14:09:16 -04:00
Matthias Clasen
4d835f61a5
Make subsurface test use a stack
...
Just to show that it works.
2014-09-17 12:42:32 -04:00
Matthias Clasen
6e0960197f
Add a quick subsurface tests
...
Just to have some code that uses subsurfaces inside a widget
tree, and not like a 'pseudo-toplevel'.
2014-09-17 11:10:41 -04:00
Matthias Clasen
56bbf12fcd
testaccel: Add another focus location
...
It turns out GtkCellRendererAccel does not deal well with focus
being elsewhere. Adding an entry here makes this much easier to
reproduce.
2014-09-06 19:03:00 -04:00
Matthias Clasen
7b950941ce
testaccel: Handle accel-cleared
2014-09-06 19:02:41 -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
Matthias Clasen
e79348eafe
Add an example for a hig-style toolbar
2014-08-15 23:22:00 -04:00
Matthias Clasen
cab7dcde1b
Deprecate GtkStatusIcon
...
GtkStatusIcon is using a problematic, XEmbed-based protocol under X,
and we want to get rid of it eventually. Document our intentions by
marking GtkStatusIcon as deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=734826
2014-08-15 13:02:31 -04:00
Benjamin Otte
e7ffa16094
tests: Sanitize
...
gcc was unhappy again.
2014-08-15 00:13:06 +02: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
8b2fb4a991
Reconstruct a missing file
...
Sadly I had forgotten to add selectionmode.ui to git.
Here is a reconstructed version that seems to work.
2014-08-11 16:25:21 -04:00
Matthias Clasen
7ecf5c43e0
Add a selection mode testcase
...
This shows what one currently has to do manually to get the typical
selection mode with blue headerbar and checkboxes in list rows.
The goal is to make this easier.
2014-08-08 13:30:54 +02:00
Matthias Clasen
9e3626ee24
tests: Drop use of deprecated api
...
Don't use gtk_tree_view_set_rules_hint anymore.
2014-08-04 12:27:56 +02:00
Matthias Clasen
29d756909d
Set initial focus in some dialog tests
...
Use the new <initial-focus> element here to confirm that it is
parsed properly and works as expected.
2014-08-02 11:59:05 +02:00
Alexander Larsson
341108d4fc
Update testtextview.c to use draw_layer
...
This fixes a regression in the test from the revert in
commit 4fe051bb4a
.
2014-07-28 21:19:31 +02:00
Ignacio Casal Quinteiro
09ecba9a53
testtreemodel: fix unused variable on windows
2014-07-24 08:34:02 +02:00
Matthias Clasen
17ad36bf8b
Trivial cleanup
2014-07-18 14:33:26 -04:00
Matthias Clasen
df007fb982
Add another dialog to test
...
This one is taken from polari, and currently doesn't work
as expected.
2014-07-17 12:17:32 -04:00
Benjamin Otte
46462ee7c4
tests: Add deprecation guards
...
... for newly deprecated gtk_icon_info_get_builtin_pixbuf()
2014-07-10 18:56:34 +02:00
Jasper St. Pierre
ece9ae4bc5
gtkwindow: Remove resize grips
...
Resize grips were introduced for GNOME 3.0, before we had any of the
"new GNOME app" features like invisible borders and CSD. With OS X 10.6
and 10.7, Apple has replaced the classic grips in their applications
with invisible borders as well.
New GNOME app designs don't use resize grips anymore and the new
default theme for GTK+, Adwaita, disables them entirely by forcing their
width and height to 0.
They're past their time. Remove the code to support them. This can
always be reverted if some app relies on them.
2014-07-03 12:58:41 -04:00
Benjamin Otte
62c6ef5a29
tests: Remove tests for icontheme properties
...
These properties have been removed and always return %NULL, so no need
to keep them.
2014-06-30 01:08:02 +02:00
Matthias Clasen
297abd6e54
testdialog: Add a spinner
...
Trying to track down a problem where animation stops when a modal
dialog is opened and closed.
2014-06-29 14:03:52 -04:00
Matthias Clasen
ecffe56955
Avoid deprecation warnings
...
We know regions are deprecated, no need to warn about it here.
2014-06-24 08:23:21 -04:00
Jasper St. Pierre
28f381e936
testwindows: Remove another reference to set_double_buffered
2014-06-21 00:30:59 -04:00
Jasper St. Pierre
38a6a72a7f
Makefile: Add a few more cleanfile / ignore rules
2014-06-16 14:03:53 -04:00
Matthias Clasen
38cbd87cac
tests: Stop using GtkAlignment
...
Fix up all other tests to not use GtkAlignment anymore.
2014-05-23 21:32:51 -04:00
Matthias Clasen
1af417a82d
testadjustsize: Keep using an alignment
...
We are explicitly comparing GtkAlignment with its replacements
here.
2014-05-23 20:42:01 -04:00
Jasper St. Pierre
695ee3fc19
tests: Remove unused args
2014-05-22 11:17:32 -04:00
Matthias Clasen
69cef3c9b4
tests: Adapt to gtk_widget_reparent deprecations
2014-05-22 08:50:18 -04:00
Matthias Clasen
cbb5e27b3e
tests: Update for GtkMisc deprecations
2014-05-22 08:49: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
Matthias Clasen
f9a0a96eb4
Avoid deprecation warnings
...
This is testing deprecated API, after all...
2014-05-13 08:45:35 -04:00
Matthias Clasen
7840bad5d7
Drop most uses of GtkMisc in tests
...
Replace them by GtkWidget h/valign. The only remaining uses
are those where a size group is involved; they can't be replaced
until GtkLabel stops looking at GtkMisc alignment for size
allocation.
2014-05-13 07:43:21 -04:00
Matthias Clasen
3db60baf2d
teststack: don't enumerate transitions manually
...
Thats what introspection is for.
2014-05-02 17:43:18 -04:00
Philip Chimento
5b5813fcdc
stack: Add counterparts of OVER_UP_DOWN transition
...
The GtkStackTransitionType enum now has OVER_DOWN_UP, OVER_LEFT_RIGHT,
and OVER_RIGHT_LEFT values to complement OVER_UP_DOWN.
https://bugzilla.gnome.org/show_bug.cgi?id=726676
2014-05-02 16:54:41 -04:00
Matthias Clasen
f3ba001a1d
GtkMenuSectionBox: Always show separators for labeled sections
...
...unless they are empty.
2014-04-29 12:19:53 -04:00
Matthias Clasen
c8e15e43e9
testmenubutton: Add a toggle for use-popover
2014-04-28 21:55:41 -04:00
Matthias Clasen
7fa1133912
Add an example of iconic rendering
...
testpopover now shows several examples of icon buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=727477
2014-04-28 14:20:27 -04:00
Matthias Clasen
37c9a9aafe
Fix testmenubutton
...
The menu model examples was messing up the order of its items.
2014-04-26 17:49:52 -04:00
Matthias Clasen
45735c5b3c
tests: add missing files to EXTRA_DIST
...
https://bugzilla.gnome.org/show_bug.cgi?id=728846
2014-04-25 22:12:04 -04:00
Matthias Clasen
516f1e1808
Add missing templates to testdialog
...
This makes the template test cases not crash. The templates also
serve to test the new action widget support.
https://bugzilla.gnome.org/show_bug.cgi?id=728846
2014-04-25 22:11:54 -04:00
Benjamin Otte
3f23f20ca8
tests: Don't use deprecated functions in testselection
2014-04-10 17:06:27 +02:00
Benjamin Otte
6d62f84dae
tests: Make testlockbutton not use deprecated API
2014-04-10 17:00:44 +02: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
Benjamin Otte
e109894f37
tests: Add deprecation guards
2014-04-10 02:29:54 +02:00
Matthias Clasen
ac22ff3bda
Add a delayed state test case
...
This adds a switch with delayed state change to testswitch,
demonstrating the functionality that was added in the previous
commit.
2014-04-06 01:52:48 -04:00
Matthias Clasen
ccc4fb8512
Improve list selection example
...
Print out signals, so we see how often they are emitted.
2014-04-06 01:44:38 -04:00
Matthias Clasen
92eab67a49
Add a list box selection testcase
2014-04-06 01:44:37 -04:00
Matthias Clasen
17ee80aafe
Drop an unnecessary include
...
These tests are better if they can be built standalone.
2014-04-02 12:41:24 -04:00
Matthias Clasen
bf79c8f0df
Add a big combobox test case
...
I've seen many bugs about long combo box popups getting misplaced
or wrongly sized. Time to add a testcase.
2014-04-02 09:51:01 -04:00
Matthias Clasen
206d43dcb4
Add a testcase for icons with emblems
...
This is a testcase for
https://bugzilla.gnome.org/show_bug.cgi?id=726830
2014-03-24 20:17:21 -04:00
Matthias Clasen
f5dc69ab8e
Add at testcase for a message dialog with icon
...
Icons in message dialogs may be deprecated, but we still need
to place them properly, so add a testcase.
2014-03-18 19:53:36 -04:00
Matthias Clasen
08f8fd2f5c
Test size constraints
...
This adds some min/max size hints to testimage.
2014-03-14 13:46:31 -04:00
Carlos Garnacho
dc26dfd0c2
tests: fix testcalendar
...
Missing argument in gtk_style_context_get(), fooled by varargs.
2014-03-07 02:50:27 +01:00
Matthias Clasen
441d8f6858
testdialogs: Add message dialog examples
...
Related to
https://bugzilla.gnome.org/show_bug.cgi?id=723668
2014-03-03 07:18:39 -05:00
Matthias Clasen
600a847cca
Make testpopover more versatile
...
Allow testing alignment and positioning.
2014-02-22 15:22:16 -05:00
Benjamin Otte
c1e2b22a2d
tests: Connect signals in visuals test
...
This is useful for demoing animations.
2014-02-20 02:10:07 +01:00
Benjamin Otte
eae03be479
tests: Don't use show_all() for a builder file
...
It's enough to gtk_widget_show() the window as all the widgets in a
builder file a marked properly for visibility.
2014-02-20 02:10:07 +01:00
Matthias Clasen
ac907cd8aa
Add a testcase for box sizing
2014-02-16 23:24:13 -05:00
William Jon McCann
9b81131003
tests: fix volume button
2014-02-13 20:47:24 -05:00
William Jon McCann
70a2772afd
tests: add a visibility toggle to the action bar test
...
https://bugzilla.gnome.org/show_bug.cgi?id=723929
2014-02-12 08:08:03 -05:00
Matthias Clasen
59099cd6e7
Add a test for model-based popovers
...
https://bugzilla.gnome.org/show_bug.cgi?id=723014
2014-02-07 15:11:51 -05:00
Matthias Clasen
be60724d08
Add a testcase for various dialog headerbar scenarios
2014-02-02 17:35:11 -05:00
William Jon McCann
b69ac965ea
tests: fix button underline in testassistant
...
https://bugzilla.gnome.org/show_bug.cgi?id=723212
2014-01-29 20:56:21 -05:00
Matthias Clasen
3948a485a7
Remove deprecations and warnings from tests
...
This removes one instance of gtk_dialog_get_action_area.
2014-01-24 21:09:34 -05:00
Matthias Clasen
4caf302498
Remove deprecation warnings from demos and tests
...
There were a few uses of gtk_widget_get_root_window that
need to be removed.
2014-01-24 21:08:59 -05:00
William Jon McCann
00326d3362
Add an expand button box type
...
https://bugzilla.gnome.org/show_bug.cgi?id=720059
2014-01-17 17:52:07 -05:00
Andika Triwidada
0a768d274d
Changed obsolete FSF portal addresses to web address
...
Fixed https://bugzilla.gnome.org/show_bug.cgi?id=721530
2014-01-12 19:56:49 +07:00
Alexander Larsson
59bf558995
testtextview: Add test for gtk_text_view_add_child_in_window
...
https://bugzilla.gnome.org/show_bug.cgi?id=711826
2014-01-10 12:08:51 +01:00
Matthias Clasen
0f9f3e8fa2
Make testsplitheaders more robust
...
Same empty string issue that I fixed in GtkHeaderBar a few days
ago.
2014-01-07 13:45:55 -05:00
Matthias Clasen
07f9b3ffa2
Add an action bar test
...
https://bugzilla.gnome.org/show_bug.cgi?id=721665
2014-01-07 08:46:37 -05:00
William Jon McCann
0a95515bfe
tests: use actionbar in headerbar test
...
This is a great example of where headerbar should not be used.
https://bugzilla.gnome.org/show_bug.cgi?id=721665
2014-01-07 08:46:37 -05:00
Matthias Clasen
c93182c416
Make testtitlebar more versatile
...
Test adding multiple custom widgets at each end. This exposes
that we're doing it wrong - the pack-end widgets are ordered
in the wrong way.
2014-01-06 23:37:05 -05:00
Matthias Clasen
ae4d82dc0c
Avoid compiler warnings
2014-01-06 20:35:29 -05:00
William Jon McCann
dae65b7c62
tests: add menu alignments to the menubutton test
...
https://bugzilla.gnome.org/show_bug.cgi?id=720939
2014-01-06 13:55:42 -05:00
William Jon McCann
b2dbcea3a2
tests: add some space to menubutton test
...
https://bugzilla.gnome.org/show_bug.cgi?id=720939
2014-01-06 13:55:42 -05:00
Matthias Clasen
d28ca4cdce
Add an example for split headers
...
This shows how to deal with variability in window decorations
with split header bars.
2014-01-06 10:32:19 -05:00
Colin Walters
c45057c88a
testbbox: Remove unused variable
...
This was the only compiler warning in Continuous for gtk3.
2014-01-04 17:52:22 -05:00
Clayton Walker
568e867dad
gtk: remove unused GTK_BUTTONBOX_DEFAULT_STYLE from gtkenums.h tests: remove GTK_BUTTONBOX_DEFAULT_STYLE from testbbox.c and fix crashing
...
https://bugzilla.gnome.org/show_bug.cgi?id=721317
2014-01-04 13:56:42 -05:00
Matthias Clasen
7e1a4800fa
Redo header bar decorations once more
...
Applications need a way to fix or adapt the decoration layout,
for situations like split header bars. Setting the layout from
the theme with a style property did not offer a good way to do
this, and the ::show-close-button property does not provide
fine-grained control.
To improve the situation, move the layout string to a property of
GtkHeaderBar which is backed by a setting. This allows platforms to
set a default button layout independent of the theme, while applications
can override the default.
The style GtkWindow style property is now deprecated and ignored.
2013-12-21 21:58:24 -05:00
Matthias Clasen
8ba7c7f64d
testtitlebar: Add custom content
...
This will help in tracking down size allocation issues
in GtkHeaderBar.
2013-12-16 20:35:23 -05:00
Matthias Clasen
abe994f1d7
testtitlebar: Set a window icon
...
This reveals that GtkHeaderBar does not pick up window icons
correctly for it menu button, currently.
2013-12-13 01:02:36 -05:00
Matthias Clasen
a9eb813054
testtitlebar: Fix initial values
...
Make sure that the controls show the initial values fo the
headerbar properties, not the other way around.
2013-12-12 21:18:11 -05:00
Matthias Clasen
2f90781073
testtitlebar: more tests
...
Turn this into a GtkApplication with an app menu.
Allow to override the gtk-shell-shows-app-menu setting
and the decoration-button-layout style property.
2013-12-12 21:12:44 -05:00
Matthias Clasen
7ab7a262c1
Make testtitlebar more testy
...
Now that the nice titlebar example is in gtk3-demo, we can
use testtitlebar as an actual testbed for headerbar stuff.
This immediately reveals size allocation issues when titlebar
widgets change size.
2013-12-12 16:56:41 -05:00
Volker Sobek
d881edd33a
testtitlebar: Fix -Wunused-variable warning
...
GtkWidget *title is no longer used.
https://bugzilla.gnome.org/show_bug.cgi?id=720296
2013-12-12 02:15:20 +01:00
Matthias Clasen
0191760bdc
Use ::has-subtitle in testtitlebar
...
This also gets simplified.
2013-12-10 23:03:12 -05:00
Matthias Clasen
56719c6363
Don't use depeprecated api
...
GtkPrintUnixDialog and testtitlebar were still using
gtk_widget_set_margin_left/right. Switch them over to
gtk_widget_set_margin_start/end.
2013-12-01 16:55:57 -05:00
Benjamin Otte
8765269478
tests: Add max-width-chars to testwindowsize test
2013-11-25 03:56:21 +01:00