glib/gio/tests
Ryan Lortie 5ff65d8695 Make 4 incompatible changes to the GAction API
This commit represents an API break to GAction in the following ways:

  - the 'set_state' entry in the GActionInterface vtable has been
    renamed to 'change_state'.  The number and order of vtable items has
    not otherwise changed.

  - g_action_set_state() has been renamed to g_action_change_state() to
    match the updated vtable entry.

  - the "state" property of the GAction interface has been changed to
    read-only to reflect the fact that g_action_set_state() no longer
    exists.

  - GSimpleActionClass has been hidden.  GSimpleAction can no longer be
    subclassed.

>> Rationale

g_action_set_state() has never been a true setter in the sense that
calling it will update the value of the "state" property.  It has always
been closer to "request 'state' to be changed to this value" with
semantics defined by the implementor of the interface.  This is why the
equivalent method in GActionGroup had its name changed from 'set' to
'change'.  This change makes the two interfaces more consistent and
removes any implication about the effect that calling set_state() should
have on the 'state' property.

>> Impact

This incompatible API break was undertaken only because I strongly
suspect that it will go entirely unnoticed.  If the break actually
affects anybody, then we will accommodate them (possibly going as far as
to revert this commit entirely).

The virtual table change only impacts implementors of GAction.  I
strongly suspect that this is nobody (except for GSimpleAction).

The hiding of GSimpleActionClass only impacts impacts subclasses of
GSimpleAction.  I strongly suspect that none of these exist.

The changing of the property to be read-only only affects people who
were trying to change the state by using GObject properties.  I strongly
suspect that this is nobody at all.

The removal of the g_action_set_state() call is the most dangerous, but
I still suspect that it will impact nobody outside of GLib.  If anybody
is impacted by this change then, at their request, I will reintroduce
the API as a deprecated alias for g_action_change_state().
2011-06-29 11:38:21 +01:00
..
gdbus-object-manager-example gdbus-codegen tests: Fix usage of top_srcddir 2011-06-13 14:17:44 -04:00
schema-tests compile schemas test: open ranges for all types 2011-03-31 15:15:09 +05:30
.gitignore Update .gitignores 2011-05-02 09:54:15 -04:00
actions.c Make 4 incompatible changes to the GAction API 2011-06-29 11:38:21 +01:00
appinfo-test2.desktop Cleanups 2010-07-05 00:56:12 -04:00
appinfo-test-gnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test-notgnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test.c Merge the wip/gapplication branch 2010-06-07 13:48:42 -04:00
appinfo-test.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo.c Add tests about file associations 2010-07-30 19:51:20 -04:00
async-close-output-stream.c Add bug references to some tests 2010-08-13 21:23:23 -04:00
buffered-input-stream.c Plug a mem leak in buffered-input-stream test 2010-09-03 15:57:26 -04:00
buffered-output-stream.c Improve coverage of buffered output stream tests 2010-07-30 19:51:21 -04:00
contenttype.c Misc test additions 2010-07-05 03:09:36 -04:00
contexts.c Plug a mem leak in contexts test 2010-09-03 16:00:15 -04:00
converter-stream.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
data-input-stream.c GDataInputStream: Add _utf8() variants of _read_line 2011-06-16 20:03:02 -04:00
data-output-stream.c Plug a huge mem leak in data-output-stream test 2010-09-03 15:55:10 -04:00
de.po Merge GSettings tests 2010-04-17 01:48:05 -04:00
desktop-app-info.c tests: unbreak desktop-app-info test for jhbuild 2010-12-28 12:18:51 +01:00
echo-server.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
enums.xml.template GSettings: major refactor. Add enums, range. 2010-06-16 18:17:53 -04:00
file.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
filter-cat.c Add GZIP header processing to GZlibCompressor/GZlibDecompressor 2010-08-17 17:37:32 +02:00
filter-streams.c Fix warning 2010-06-09 10:32:36 +02:00
g-file-info.c Plug a mem leak in g-file-info test 2010-09-03 15:37:08 -04:00
g-file.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
g-icon.c Make gio/tests/g-icon pass again 2010-11-27 16:56:44 -05:00
gapplication-example-actions.c Make 4 incompatible changes to the GAction API 2011-06-29 11:38:21 +01:00
gapplication-example-cmdline2.c Fix another faulty GApplicationCommandline example 2011-04-08 17:02:01 -04:00
gapplication-example-cmdline3.c Avoid an interaction between GApplication and GOption 2011-04-08 07:19:38 -04:00
gapplication-example-cmdline.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication-example-open.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication.c Test the previous fix 2011-06-08 22:38:11 -04:00
gdbus-addresses.c Improve dbus address test coverage 2010-08-08 21:32:03 -04:00
gdbus-bz627724.c Add work-around for Bug 627724 2010-09-10 16:23:14 -04:00
gdbus-connection-flush-helper.c Bug 618882 – No way to ensure that a message is sent 2010-07-07 15:03:03 -04:00
gdbus-connection-slow.c GDBus: Move "slow" connection test cases into separate test program 2010-09-23 15:49:04 -04:00
gdbus-connection.c Fix build with gcc-2.*. 2011-05-23 13:05:49 -04:00
gdbus-error.c Add some more test about gdbus_error apis 2010-08-07 18:55:21 -04:00
gdbus-example-export.c remove the redundant interface_name parameter 2010-05-13 13:09:58 -04:00
gdbus-example-objectmanager-client.c gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes 2011-04-25 09:29:18 -04:00
gdbus-example-objectmanager-server.c GDBusObjectManagerServer: Allow setting :connection property 2011-05-04 03:43:52 -04:00
gdbus-example-own-name.c Strip copyright headers from examples 2010-05-11 15:50:19 -04:00
gdbus-example-peer.c GDBusServer: Make ::new-connection return whether the connection was claimed 2010-09-09 14:02:31 -04:00
gdbus-example-proxy-subclass.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-example-server.c GDBus: Add GDBusSendMessageFlags 2010-07-19 16:07:57 -04:00
gdbus-example-subtree.c Update the GDBus subtree example for the new API 2010-07-19 15:03:54 -04:00
gdbus-example-unix-fd-client.c GDBus: Add GDBusSendMessageFlags 2010-07-19 16:07:57 -04:00
gdbus-example-watch-name.c Strip copyright headers from examples 2010-05-11 15:50:19 -04:00
gdbus-example-watch-proxy.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-exit-on-close.c Fix gdbus-exit-on-close test case 2010-08-03 12:47:07 -04:00
gdbus-export.c Add a (currently failing) testcase 2011-02-15 19:49:24 -05:00
gdbus-introspection.c Fix memory leaks in the gdbus introspection parser 2011-02-15 02:29:15 -05:00
gdbus-message.c GDBusMessage: Don't reset serial number when copying 2010-09-09 15:15:13 -04:00
gdbus-names.c GDBus: fix name test cases 2010-09-23 16:28:59 -04:00
gdbus-non-socket.c Bug 627188 – gdbus-non-socket test occasionally fails 2010-08-18 13:09:04 -04:00
gdbus-peer.c GDBus: Unref worker from worker-thread to avoid race 2011-06-20 16:32:03 -04:00
gdbus-proxy-well-known-name.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-proxy.c Plug a mem leak in the gdbus-proxy test 2010-09-03 16:05:28 -04:00
gdbus-serialization.c Fix some compiler warnings from gcc 4.6 2011-04-15 15:51:25 -04:00
gdbus-sessionbus.c Don't do < 0 on an unsigned value 2011-06-14 11:40:32 -04:00
gdbus-sessionbus.h Initial GDBus code-drop from GDBus-standalone repo 2010-05-06 14:21:32 -04:00
gdbus-test-codegen.c gdbus-test-codegen: Allocate full integer space for uint16 properties 2011-06-20 14:03:05 -04:00
gdbus-tests.c GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends 2011-04-11 10:51:37 -04:00
gdbus-tests.h Initial GDBus code-drop from GDBus-standalone repo 2010-05-06 14:21:32 -04:00
gdbus-testserver.py GDBus: Remove cached value if a property is invalidated 2010-05-14 12:56:09 -04:00
gdbus-threading.c GDBus: Add GDBusSignalFlags and use it in g_dbus_connection_signal_subscribe() 2010-07-19 15:05:10 -04:00
gschema-compile.c compile schemas test: open ranges for all types 2011-03-31 15:15:09 +05:30
gsettings.c Improve test coverage 2011-02-13 23:49:19 -05:00
httpd.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
io-stream.c Add g_io_stream_splice_async/finish() 2010-12-13 17:36:12 +01:00
live-g-file.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
live-g-file.txt Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
Makefile.am Fix a srcdir!=builddir issue, and export that we support it 2011-06-21 10:30:07 -04:00
memory-input-stream.c Plug a mem leak in the memory-input-stream test 2010-09-03 15:31:37 -04:00
memory-output-stream.c Fix build with gcc-2.*. 2011-05-23 13:05:49 -04:00
network-address.c Plug a mem leak in network-address test 2010-09-03 16:01:10 -04:00
org.gtk.test.gschema Merge GSettings tests 2010-04-17 01:48:05 -04:00
org.gtk.test.gschema.xml GSettings: add G_SETTINGS_BIND_INVERT_BOOLEAN flag 2010-08-03 02:09:10 -04:00
pollable.c Add pollable input/output streams 2010-11-26 15:08:08 -05:00
proxy.c Fix some compiler warnings from gcc 4.6 2011-04-15 15:51:25 -04:00
readwrite.c Plug a mem leak in readwrite test 2010-09-03 15:44:28 -04:00
resolver.c gio: Add a count to the resolver test for number of enumerators 2010-12-07 19:39:24 +01:00
send-data.c GSocketClient: add a timeout property 2010-08-14 15:26:16 -04:00
simple-async-result.c Improve the async result test coverage 2010-08-08 21:32:03 -04:00
sleepy-stream.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
socket-client.c tls: Make g_tls_{client|server}_connection_new() return a GIOStream 2010-12-07 19:39:24 +01:00
socket-common.c Add initial TLS (SSL) support to gio 2010-11-26 15:57:11 -05:00
socket-server.c tls: Make g_tls_{client|server}_connection_new() return a GIOStream 2010-12-07 19:39:24 +01:00
socket.c Make g_unix_connection_send_fd() work as expected. 2011-01-12 16:01:32 -05:00
srvtarget.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
test-codegen.xml gdbus-codegen: Handle unexpected XML tags 2011-05-23 23:23:10 -04:00
testenum.h Bug 622124 - implement flags for GSettings 2010-07-01 19:06:02 -04:00
unix-fd.c GUnixSocketAddress: handle abstract sockets with non-0-padded names 2010-04-22 11:54:41 -04:00
unix-streams.c Fix a possible deadlock 2010-08-03 10:41:21 -04:00
volumemonitor.c volume monitor: don't unref NULL 2010-10-05 02:29:47 -04:00
win32-streams.c Add GWin32InputStream and GWin32OutputStream classes 2010-04-19 11:54:56 +03:00