summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Adapt the testpopover exampleMatthias Clasen2014-10-291-6/+0
| | | | Drop all uses of has-submenu.
* Adapt the testpopover exampleMatthias Clasen2014-10-293-587/+559
| | | | | We now use GtkPopoverMenu, and just add the model buttons directly to it.
* Add a manual popover menu exampleMatthias Clasen2014-10-293-22/+664
| | | | | Reproduce the testpopover popover manually, by packing model buttons into a stack in a popover.
* testlevelbar: fix CSS to be aligned with documentationCosimo Cecchi2014-10-271-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=707695
* testlevelbar: don't segfault when quitting testlevelbarCosimo Cecchi2014-10-271-0/+12
| | | | | | Quit the mainloop when the window is closed. https://bugzilla.gnome.org/show_bug.cgi?id=707695
* Test h/vhomogenenous in teststackMatthias Clasen2014-10-261-4/+17
| | | | Add separate checkboxes for hhomogeneous and vhomogeneous.
* Port the overlayscroll exampleMatthias Clasen2014-10-201-291/+13
| | | | | Make the overlayscroll example use the overlay scrolling that is now built into GtkScrolledWindow, instead of the manual prototype.
* Add an experiment for overlay scrollbarsMatthias Clasen2014-10-202-0/+377
| | | | | | | 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.
* scrolledwindow: Add ::edge-overshot signalCarlos Garnacho2014-10-202-0/+131
| | | | | | | | 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
* testfilechooser: Test the preview againMatthias Clasen2014-10-191-1/+1
| | | | There is code in there to show a preview, use it.
* Add GDK_DEP_LIBS to demos and testsLars Uebernickel2014-10-151-0/+1
| | | | Some of them depend on libepoxy now.
* tests: Make gtkgears compile without complaintsBenjamin Otte2014-10-142-6/+10
|
* gl: Make gdk_gl_context_make_current() return voidAlexander Larsson2014-10-131-11/+2
| | | | | | | | | | 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).
* Add tests/testglblendingAlexander Larsson2014-10-132-0/+100
| | | | | This test stacks GL and cairo rendering in various orders to test the layer handling.
* Add tests/gdkgearsAlexander Larsson2014-10-134-0/+736
| | | | A more complex test modeled on the traditional glxgears.
* Add tests/testglareaAlexander Larsson2014-10-132-0/+160
| | | | This is a very simple test of GtkGLArea.
* tests: Update testexpand example for deprecationsBenjamin Otte2014-10-121-16/+4
|
* tests: Update testtooltips for deprecationsBenjamin Otte2014-10-121-2/+13
|
* tests: Don't force black background in testwindowsBenjamin Otte2014-10-121-2/+0
|
* tests: Update testoverlaystyleclass testBenjamin Otte2014-10-121-5/+15
| | | | | Make it not use deprecations anymore and use CSS to show things work by changing border-radius when a style class exists.
* testgtk: Don't trigger deprecation warningsBenjamin Otte2014-10-121-23/+33
| | | | | .. and various other assorted fixes, mostly related to drawing code that assumed stuff wasn't transparent by default.
* Add an example for synchronized scrollingMatthias Clasen2014-10-092-0/+70
| | | | | This example uses GTK_POLICY_EXTERNAL to share a scrollbar among multiple scrolled windows.
* tests: Exit test when main window is closedBenjamin Otte2014-10-101-0/+1
|
* More removal of deprecated APIMatthias Clasen2014-10-074-39/+63
|
* tests: Add a test for a performance optimisationBenjamin Otte2014-10-032-0/+84
| | | | text-shadow is too slow. Running this testcase reveals that.
* Add GtkSidebarIkey Doherty2014-10-011-2/+11
| | | | | | | | | | | | | | | | | 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>