summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* gdkgears: Add a popoverMatthias Clasen2015-08-261-1/+11
| | | | | As pointed out in bug 754143, this reveals a crash in the Wayland backend.
* Add a test for gtk_flow_box_bind_modelMatthias Clasen2015-08-161-15/+27
|
* Add a test for g_list_box_bind_modelMatthias Clasen2015-08-162-0/+224
|
* testfilechooser: Say SaveMatthias Clasen2015-07-311-1/+1
| | | | Thats a more typical affirmative action in save mode.
* testgtk: Remove pointless codeMatthias Clasen2015-07-171-1/+1
| | | | | The display is getting overwritten immediately. Pointed out by coverity.
* testdialog: Error out if templates are missingMatthias Clasen2015-07-171-2/+6
| | | | | Coverity complained about us ignoring the return value here, and it is nicer to get an error message about this.
* tests/gears: Ensure we don't use unavailable GL resourcesEmmanuele Bassi2015-07-161-35/+87
| | | | | | | | 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.
* tests: Remove testplacesview testBenjamin Otte2015-07-162-5/+2
| | | | | The GtkPlacesView widget was made private, so we can't create it in a testcase.
* tests: Fix gcc complaints about testfilechooserBenjamin Otte2015-07-161-34/+37
|
* placesview: add view for fixed drives and networksGeorges Basile Stavracas Neto2015-07-152-0/+29
| | | | | | | | | | | | | | | | | | | | 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
* testtoolbar: Don't expand rows that shouldn't be expandedBenjamin Otte2015-07-081-2/+0
|
* testgmenu: use the menu binding codeRyan Lortie2015-07-071-373/+14
| | | | | | | | | | 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
* testfilechooser: Add a --local-only flagMatthias Clasen2015-07-041-1/+4
| | | | This allows for easier testing of !local-only mode.
* testfilechooser: Disable the terrible previewMatthias Clasen2015-07-041-0/+2
| | | | It makes testing the intended user experience harder.
* Add a testcase for font optionsMatthias Clasen2015-07-012-0/+97
|
* overlay: remove gtk_overlay_add_pass_through_overlay()Cosimo Cecchi2015-06-171-1/+2
| | | | | | | 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
* testoverlay: Fix indentationAlexander Larsson2015-06-151-5/+5
|
* testoverlay: Add test for overlay z orderingAlexander Larsson2015-06-151-0/+67
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=750568 https://bugs.freedesktop.org/show_bug.cgi?id=90917
* testoverlay: Fix test by using add_pass_through_overlayAlexander Larsson2015-06-151-1/+1
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=750568 https://bugs.freedesktop.org/show_bug.cgi?id=90917
* testoverlay: Add new input stacking testAlexander Larsson2015-06-151-0/+53
| | | | | | | | | | | | | | 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
* testassistant: Remove padding from the filechooser pageMatthias Clasen2015-06-141-0/+1
| | | | | This tests the new assistant api to remove padding from pages.
* Add a filechooser-in-assistant exampleMatthias Clasen2015-06-141-0/+6
| | | | | This is one of the cases where one wants a page without any padding.
* Only build testfontchooserdialog on linuxMatthias Clasen2015-06-131-1/+5
| | | | | | | | 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
* Add a tree dnd testcaseMatthias Clasen2015-06-052-0/+140
| | | | This shows a minimal setup for enabling non-row DND from a treeview.
* testgtk: Add new Adwaita cursor namesMatthias Clasen2015-05-071-1/+6
|
* GtkFontChooser: Allow a custom font mapMatthias Clasen2015-05-071-1/+23
| | | | | | | This lets applications show their own fonts instead of or in addition to system fonts. https://bugzilla.gnome.org/show_bug.cgi?id=748771
* testgtk: Respect display cursor size limitationsMatthias Clasen2015-04-071-1/+4
| | | | | Instead of hardcoding 64, ask the display about the maximal supported cursor size.
* testfilechooser: Improve filter setupMatthias Clasen2015-04-051-3/+3
| | | | | | It is not ideal when the default filter filters away all files, so change things to select the 'all files' filter by default.
* testgtk: Set initial cursorMatthias Clasen2015-04-051-1/+1
| | | | | Arrange for the entry and the cursor area to both start out with the arrow cursor.
* testgtk: Redo the cursor exampleMatthias Clasen2015-04-051-69/+175
| | | | | | 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.
* testgtk: Update cursor theme on size changeMatthias Clasen2015-04-051-1/+1
| | | | | We were connecting to the wrong signal, so we were not picking up all changes to the spin button value.
* Fix separator in testsplitheadersMatthias Clasen2015-03-281-0/+1
|
* shadow-box: Blur only horizontally/vertically for the non-corner partsAlexander Larsson2015-03-211-1/+1
| | | | | | | | 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
* Add performance test for gtkcairoblurAlexander Larsson2015-03-212-0/+60
| | | | | | | 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
* Add an example for accelerators with manual image menuitemsMatthias Clasen2015-03-061-3/+19
| | | | | | | | | 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.
* test/gtkgears.c: Fix on C89 CompilersChun-wei Fan2015-03-061-4/+3
| | | | | | | | 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.
* Check for existence of sincosMatthias Clasen2015-03-041-0/+11
| | | | | | It apparently doesn't exist everywhere. https://bugzilla.gnome.org/show_bug.cgi?id=745578
* gears: Update to slightly more modern OpenGLEmmanuele Bassi2015-03-031-201/+615
| | | | | | 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.
* Rename GtkSidebar to GtkStackSidebarLars Uebernickel2015-02-131-2/+2
| | | | | | GtkSidebar is too generic and doesn't fully convey what the widget does. https://bugzilla.gnome.org/show_bug.cgi?id=744094
* tests: Update testglareaEmmanuele Bassi2015-02-091-16/+240
| | | | | | | | 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
* scrolledwindow: add a new edge-reached signalCosimo Cecchi2015-01-311-0/+9
| | | | | | | | 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
* testnotebookdnd: Defer deletion to an idleMatthias Clasen2015-01-301-7/+16
| | | | | | | | | | | | 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.
* Avoid a crash in testcalendarMatthias Clasen2014-12-231-4/+10
| | | | | | When changing between months, we can get into a situation like 'February 30", which GDate doesn't accept. Don't crash in that case.
* Fix another header guard oversightMatthias Clasen2014-12-081-1/+1
| | | | Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741252
* test/gtkgears.c: Fix Builds on Systems Without M_PIChun-wei Fan2014-12-031-8/+8
| | | | | | | 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
* tests: Add deprecation guardsBenjamin Otte2014-11-051-0/+6
| | | | | It's the last test still spewing these and I'm too lazy to do a proper fix.
* Add a scale to the popover menu exampleMatthias Clasen2014-10-291-0/+12
| | | | Demonsttrate that this is flexible enough for the intended uses.
* Adapt the testpopover exampleMatthias Clasen2014-10-291-455/+420
| | | | | Add the required boxes for each submenu. We now need to specify the submenu name only once per submenu.
* Adapt the testpopover exampleMatthias Clasen2014-10-291-10/+0
| | | | Drop all all explicit role setting from the testpopover example.
* Adapt the testpopover exampleMatthias Clasen2014-10-291-10/+10
|