Kristian Rietveld
b50375abf4
Add forgotten calls to signal_monitor_assert_is_empty()
2011-08-22 21:30:35 +02:00
Kristian Rietveld
d63015e627
Fix some memory leaks in treemodel unit tests
2011-08-22 21:30:35 +02:00
Kristian Rietveld
36f712f272
Add some notes on how filter model testing can be made (even) more thorough
2011-08-22 21:30:34 +02:00
Kristian Rietveld
04885f1c29
Update filtermodel ref count unit tests to new cache depth
2011-08-22 21:30:34 +02:00
Kristian Rietveld
ad0f54b87b
Add more unit tests for GtkTreeModelSort
...
To test ref counting during rows-reordered and the new_order arrays supplied
with rows-reordered signals.
2011-08-22 21:30:34 +02:00
Kristian Rietveld
9ef07cb0f3
Move SignalMonitor to treemodel.[ch] so it can be used by other tests
2011-08-22 21:30:34 +02:00
Kristian Rietveld
21d7eca12a
Remove left-over dump call
2011-08-22 21:30:33 +02:00
Kristian Rietveld
30340e521e
Test GtkTreeModelFilter's reference transfers
2011-08-22 21:30:33 +02:00
Kristian Rietveld
e321034074
Unit test GtkTreeModelFilter's rows-reordered emissions
2011-08-22 21:30:33 +02:00
Kristian Rietveld
bcc1fd7efd
Unit test rows reordered ref count handling in GtkTreeView
2011-08-22 21:30:32 +02:00
Kristian Rietveld
0ee6141cf6
Should validate TreeModelRefCount before the sort and filter model
2011-08-22 21:30:32 +02:00
Kristian Rietveld
9e2fbca594
Add reference counting unit tests for GtkTreeModelFilter
2011-08-22 21:30:32 +02:00
Kristian Rietveld
f42de9e52a
Add more "has child" unit tests
...
This allows for more thorough testing of "has child" filter functions.
We also test a has child filter function with a sort model as
child model, to verify that we receive enough signals to function
properly.
2011-08-22 21:30:32 +02:00
Kristian Rietveld
504d6715c1
Add cleaned up and easier version of unit test for bug 311955
2011-08-22 21:30:32 +02:00
Kristian Rietveld
35e09df282
Check level length in unit test for bug 311955
2011-08-22 21:30:32 +02:00
Kristian Rietveld
59efa6acdd
Remove checks for superfluous signals which are not longer emitted
2011-08-22 21:30:32 +02:00
Kristian Rietveld
b161328682
Correct/expand base tests to check emitted signals
...
The filter model is now more strict about the signals which are emitted,
so the base tests have been expanded to test with both the root level
nodes collapsed and expanded.
2011-08-22 21:30:32 +02:00
Kristian Rietveld
1158ed5795
treemodelrefcount: check_iter(): check if iter is valid
2011-08-22 21:30:32 +02:00
Kristian Rietveld
07d99d26b2
treemodelrefcount: make it possible to assert within check functions
2011-08-22 21:30:32 +02:00
Kristian Rietveld
cac5d60633
Unit test reference counting in GtkTreeModelSort
2011-08-22 21:30:31 +02:00
Kristian Rietveld
d241323b08
Move asserts to gtktreemodelrefcount.h for other unit tests to use
2011-08-22 21:30:31 +02:00
Kristian Rietveld
bda09159c3
Add generic GtkTreeModel reference counting unit tests
2011-08-22 21:30:31 +02:00
Kristian Rietveld
1cb14a16b7
Add GtkTreeModelRefCount, only to be used in unit tests
2011-08-22 21:30:31 +02:00
Kristian Rietveld
e89782742d
Fix a couple of memleaks in the filter model tests
...
(Not all of them yet, need to do the remainder on Linux since valgrind
on Mac OS X is a bit too noisy).
2011-08-22 21:30:31 +02:00
Xavier Claessens
22adfc67e5
Add thorough unit test for bug #621076
...
Minor edits and additions by Kristian Rietveld.
2011-08-22 21:30:30 +02:00
Kristian Rietveld
a172697d47
Corrections to has-child filter tests
2011-08-22 21:30:30 +02:00
Kristian Rietveld
74764f28bc
Improve specific_has_child_filter() test to also verify signals
2011-08-22 21:30:30 +02:00
Kristian Rietveld
ebb12d5f06
Improve specific_root_has_child_filter test to also verify signals
2011-08-22 21:30:30 +02:00
Kristian Rietveld
5bd3c52c0f
Have a separate category for tests of gtk_tree_model_filter_row_deleted
2011-08-22 21:30:30 +02:00
Kristian Rietveld
3452b0493d
Add two unit tests for gtk_tree_model_filter_row_inserted
2011-08-22 21:30:30 +02:00
Kristian Rietveld
4f33f10511
Use g_assert_cmpint instead of g_assert in check_level_length()
2011-08-22 21:30:30 +02:00
Xavier Claessens
dc12c373dc
Improve error messages of signal monitor
2011-08-22 21:30:30 +02:00
Kristian Rietveld
1686e515d6
Three more TreeModelFilter remove ancestor tests
2011-08-22 21:30:30 +02:00
Kristian Rietveld
b27a6568b7
Improve filter model remove node unit tests
2011-08-22 21:30:29 +02:00
Kristian Rietveld
431987a2fa
Add more unit tests for gtk_tree_model_filter_row_deleted()
2011-08-22 21:30:29 +02:00
Kristian Rietveld
cb8c608e49
Add unit test for bug 77977 for reference
2011-08-22 21:30:29 +02:00
Kristian Rietveld
ed603fa790
Add bug base and bug numbers to tree model unit tests
2011-08-22 21:30:29 +02:00
Kristian Rietveld
f1d791355a
Move TreeModelSort specific tests to a new sortmodel.c file
2011-08-22 21:30:29 +02:00
Kristian Rietveld
b227aa06eb
Make naming of tree model unit tests consistent
...
All test paths now start with the name of the class which is being
tested.
2011-08-22 21:30:29 +02:00
Kristian Rietveld
2cb9f03a66
Put all GtkTreeModel unit tests in a single binary
...
This to reduce linking time and have all tests in a single binary.
2011-08-22 21:30:29 +02:00
Rico Tzschichholz
ecd5f73dd7
build: Fix makefile for new location of test image
2011-07-23 12:27:45 +02:00
Benjamin Otte
d82aeb8245
tests: Fix stylecontext test that we changed semantics for
...
We don't have different priorities for superclasses anymore.
2011-07-23 01:24:07 +02:00
Benjamin Otte
d56e8c8e54
tests: Move declaration tests to new test infrastructure
...
This way, we can test more feature of them, in particular check for
different errors, which were causing test failures.
2011-07-21 02:43:54 +02:00
Benjamin Otte
a02b82056a
tests: Remove unused file from EXTRA_DIST
2011-07-21 02:43:54 +02:00
Benjamin Otte
d314709af6
tests: Declare previously invalid CSS as valid now
...
The CSS is valid, it might just not work (though most of it will for
siblings).
2011-07-21 02:43:54 +02:00
Benjamin Otte
4f5e69fa2c
tests: Fix whitespace between url and (
...
It's not allowed according to CSS (and browsers).
2011-07-21 02:43:54 +02:00
Benjamin Otte
75a43bb40c
tests: Move empty css parser test to new CSS tests
2011-07-20 02:36:44 +02:00
Benjamin Otte
15674c5bd4
tests: Move stylecontext CSS tests
...
Use the new CSS infrastructure for part of the old CSS tests. This way
we can probably check for warning messages such as deprecations.
2011-07-20 02:36:44 +02:00
Javier Jardón
32e00d1f43
Use AM_CPPFLAGS instead the obsolete INCLUDES
2011-07-06 15:58:32 +01:00
Matthias Clasen
5398a160ad
Add a test for entry signals
...
These tests check that text and selection boundaries are in a
consistent state when we emit notifications, that ::insert-text
and ::delete-text are emitted before any changes, and that
::changed is emitted after property notifications when inserting
or deleting text.
2011-07-05 16:08:08 -04:00
Benjamin Otte
fd5ceee925
tests: undefine GTK_DISABLE_DEPRECATED as we include deprecated types
2011-07-05 16:08:01 -04:00
Matthias Clasen
8bbab02215
Add a first, trivial test for accessibles
2011-07-05 16:07:57 -04:00
Matthias Clasen
813b2c0aff
And remove it from the build too
2011-07-05 16:07:57 -04:00
Matthias Clasen
d3ab2fe19c
Remove the old gail tests
...
This is not what we are looking for in tests, and it hasn't been
touched in ages.
2011-07-05 16:07:56 -04:00
Benjamin Otte
8c32d2d516
gtk: Move a11y tests fro a11y/tests to tests/a11y
2011-07-05 16:07:56 -04:00
Matthias Clasen
cdaaea7017
Use boxes instead of vboxes
2011-06-07 18:38:28 -04:00
Matthias Clasen
906292541a
Add tests for GtkTreePath
2011-05-31 22:10:40 -04:00
Javier Jardón
e5c7daa828
tests: avoid boxed structs copying where possible
...
Use the GtkStyleContext accessors for boxed properties where possible,
to reduce allocations.
2011-05-31 19:12:24 +02:00
Martin Nordholts
a3f52949c4
Bug 633291 - Handle Shift-keys in X11 gdk_test_simulate_key()
...
If a level 1 key maps to a key value passed to
gdk_test_simulate_key(), raise the GDK_SHIFT_MASK flag so the reqested
key value is generated. Also add a regression test for this fix.
2011-02-13 12:57:01 +01:00
Matthias Clasen
524ce69bcb
Bump the version to 3.0.0
...
At the same time, change the library sonames for -3.0 to just -3.
This is necessary since the 2.99 releases installed libraries like
libgtk-3.0.so.0.9903.0, and we want to prevent the library version
number from jumping back. So 3.0 will have libgtk-3.so.0.0.0.
2011-02-10 14:41:02 -05:00
Matthias Clasen
726b0d8736
Bandaid fix for icon view subclassing
...
I've decided that it is isn't feasible to make cell areas runtime-settable
in the time we have left before 3.0, therefore, I'm going with the
approach to allow init() functions to instantiate the default cell area
and issue a warning if a construct property is ignored.
This is not ideal, but it keeps existing icon view and combo box
subclasses working.
https://bugzilla.gnome.org/show_bug.cgi?id=639139
2011-01-31 17:39:42 -05:00
Matthias Clasen
30958ea8ad
Fix a segfault in gtk_statusbar_remove_all
...
https://bugzilla.gnome.org/show_bug.cgi?id=640487
2011-01-31 11:50:23 -05:00
Matthias Clasen
a04e721473
Add binding-set tests
2011-01-30 21:27:55 -05:00
Matthias Clasen
cb6e036d67
More compiler warnings silenced
2011-01-30 01:59:12 -05:00
Matthias Clasen
2b631739c0
Fix another compiler warning about unused variables
2011-01-30 01:53:49 -05:00
Matthias Clasen
6dc142a50a
Silence more compiler warnings
2011-01-30 01:52:55 -05:00
Matthias Clasen
290c34b232
Try harder to find a good display name for paper sizes
...
This was requested in https://bugzilla.gnome.org/show_bug.cgi?id=639186 .
Also add some tests for GtkPaperSize.
2011-01-12 22:30:08 -05:00
Matthias Clasen
f2cde4cf3b
Move the GtkApplication example to the right place
2011-01-06 01:13:50 -05:00
Szilárd Pfeiffer
8219ed3a26
Add gtk_tree_model_iter_previous() vfunc
...
https://bugzilla.gnome.org/show_bug.cgi?id=128058
2011-01-05 23:39:11 -05:00
Benjamin Otte
cd80f49053
tests: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
bb64831987
tests: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Kristian Høgsberg
9c002cf2c1
Silence automake warnings
...
When commenting out a binary, also comment out the related variables.
Don't include Makefile.decl in gtk-doc Makefile.am's as they disagree
on assigning to EXTRA_DIST.
2011-01-03 11:59:45 -05:00
Robert Ancell
f4419be0d6
Fix DSO link issues
2010-12-22 15:01:50 +11:00
Matthias Clasen
7b6d759b04
Temporarily disable combo box entry test
...
This one got broken by the treeview refactoring, I assume.
2010-12-21 14:43:17 -05:00
Matthias Clasen
07d49ee56a
Merge libgdk and libgtk
...
This commit does a number of things:
- remove some dead wchar configury from configure.ac and gdkconfig.h
- repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
macros for each included backend, include it in gdk.h and install
it in $includedir instead of below $libdir
- drop the backend from the library names
- build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
It does not yet enable building multiple backends at the same time.
2010-12-21 12:06:55 -05:00
Matthias Clasen
a9753ef5c6
Add a test for basic style properties
2010-12-20 08:19:23 -05:00
Cosimo Cecchi
b792a31995
widgetpath: allow GTypes non-derived from GTK_TYPE_WIDGET
...
This makes things like GtkCellRenderer or GtkNumerableIcon more easily
themeable.
https://bugzilla.gnome.org/show_bug.cgi?id=637169
2010-12-17 18:30:57 +01:00
Kristian Rietveld
cbfc3f5bf0
Make gtk_tree_view_get_cell_area() aware of row separators
2010-12-12 15:09:27 +01:00
Kristian Rietveld
8c743a0363
Add unit test for row separator height
2010-12-12 15:03:33 +01:00
Matthias Clasen
fae1e74812
More !srcdir fixes for the stylecontext test
2010-12-06 19:05:18 -05:00
Matthias Clasen
f2ab9e497d
Prepare the stylecontext test to run out-of-srcdir
...
This is necessary to make distcheck work.
2010-12-06 14:13:07 -05:00
Matthias Clasen
587c08a151
Add explanation to failing test
2010-12-04 15:39:48 +01:00
Matthias Clasen
12d6b5889d
Add a testcase a problem with style property handling
2010-12-04 15:39:48 +01:00
Matthias Clasen
d532c0e5c2
Test some wilder names for classes, etc
2010-12-04 15:39:37 +01:00
Matthias Clasen
c5b38121ec
Add tests for matching
...
These tests try to decipher how specificity works for selectors.
2010-12-04 15:39:17 +01:00
Matthias Clasen
49fed3d7d7
More css parsing tests
2010-12-04 15:39:17 +01:00
Matthias Clasen
933440e1f1
Some css parsing tests
2010-12-04 15:39:16 +01:00
Benjamin Otte
e0fb7a86e5
gtk: Remove GtkRuler
...
It is really bad code, mostly unused and no one stepped up to fix it.
Note that Gtk developers do not object to a ruler widget in priciple,
just to the current implementation. If someone wants to propose a sane
version, please don't hesitate.
https://bugzilla.gnome.org/show_bug.cgi?id=613942
2010-11-24 16:56:10 +01:00
Matthias Clasen
04ba8ef77a
GtkApplication: rewrite example application
...
The intended way of using GtkApplication is mainly by subclassing,
so make the example do that.
2010-11-05 16:26:51 -04:00
Ignacio Casal Quinteiro
1fad7eaf85
Add caseless unit tests for textiter.
2010-11-01 15:21:53 +01:00
Ignacio Casal Quinteiro
be703155aa
Add unit tests for textiter.
2010-11-01 15:21:39 +01:00
Matthias Clasen
816f08872a
Fix make check
2010-11-01 09:17:21 -04:00
Javier Jardón
a9894d4cf4
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 05:22:58 +02:00
Javier Jardón
8177ad320e
Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range()
2010-10-30 02:26:23 +02:00
Matthias Clasen
0d9ebb501d
Move min-display-width/height to GtkScrolledWindow
...
It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.
We also add GtkScrollablePolicy to determine how to size the
scrollable content.
2010-10-22 19:21:17 +02:00
Emmanuele Bassi
ce5a29bc38
recent-manager: Coalesce multiple changes
...
Since the ::changed implementation of GtkRecentManager implies a
synchronous write operation, when we receive multiple requests to emit a
::changed signal we might end up blocking.
This change coalesces multiple ::changed emission requests using the
following sequence:
• the first request will install a timeout in 250 ms, which will
emit the ::changed signal
• each further request while the timeout has not been emitted
will increase a counter
‣ if the counter reaches 250 before the timeout has been
emitted, then the RecentManager will remove the timeout
source and force a signal emission and reset the counter
This sequence should guarantee that frequent ::changed emission requests
are coalesced, and also guarantee that we don't let them dangle for too
long.
https://bugzilla.gnome.org/show_bug.cgi?id=616997
2010-10-22 18:08:48 +01:00
Alberto Garcia
d6a73fd5b0
Assign all g_signal_connect() and friends to gulong variables
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
2010-10-22 18:58:47 +02:00
Michael Natterer
3dc1f09772
gtk: use the new scrollable API to get to the scroll adjustments
2010-10-22 17:10:49 +02:00
Tadej Borovšak
55196a705f
Add GtkScrollable interface
...
The GtkScrollable interface provides "hadjustment" and "vadjustment"
properties that are used by GtkScrolledWindow. It replaces
the ::set_scroll_adjustment signal. The scrollable interface
also has ::min-display-width/height properties that can be
used to control the minimally visible part inside a scrolled window.
2010-10-22 11:03:45 +02:00
Ryan Lortie
ab5fb5dee5
GtkApplication rewrite
2010-10-19 01:31:09 +02:00