1996 Commits

Author SHA1 Message Date
Murray Cumming
38220cd31d GDBusServer: Documentation: Improvements.
Provide a fuller description and lead people away if they arrived
here just looking for a way to provide a regular D-Bus service.
2011-06-15 09:35:53 +02:00
Javier Jardón
a635e3be65 gconverter: Improve cross-references 2011-06-08 16:30:06 +01:00
Chun-wei Fan
34f35595c8 Update the year in the *.rc.in files
Sorry this change came a bit late...
2011-06-07 08:53:11 +08:00
Matthias Clasen
4bafdccc63 Expand content type docs slighly 2011-06-05 13:20:51 -04:00
muralis
16d5f448d8 gthreadedresolver: fix hang on g_thread_pool_push() failure
In resolve_sync function in gthreadedresolver.c, if g_thread_pool_push
fails due to thread creation failure, we are just simply appending the
data to the queue of work to do. After the failure, we might wait
indefinitely in g_cond_wait. In case of g_thread_pool_push failure,
propagate the error so that this function does not blocks forever in
case of failure.

https://bugzilla.gnome.org/show_bug.cgi?id=651034
2011-06-05 13:19:44 -04:00
Neil Roberts
a94f498e27 gsocket: Fix some cases of returning error without setting *error
g_socket_shutdown and g_socket_close were calling check_socket with a
NULL error parameter so any errors wouldn't get propagated up.

https://bugzilla.gnome.org/show_bug.cgi?id=651327
2011-06-05 13:18:33 -04:00
Neil Roberts
26bf8c67ba gsocket: Fix the error message for a failed g_socket_shutdown
The GError message for g_socket_shutdown was reporting that it was
"Unable to create socket" which is presumably a cut-and-paste bug.

https://bugzilla.gnome.org/show_bug.cgi?id=651327
2011-06-05 13:18:24 -04:00
Matthias Clasen
a83581a4f0 glib-compile-schemas: write informational messages to stdout
The fact that we return 0 here makes it clear that this
is not considered an error, so it makes sense to not
write these messages to stderr.
Proposed by Antoine Jacoutot,
https://bugzilla.gnome.org/show_bug.cgi?id=650882
2011-06-05 13:13:46 -04:00
Richard Hughes
b8d26cc4cb Correct the annotation for g_file_enumerator_get_container()
We don't ref the returned object, and alex has verified the gvfs implementation.
2011-06-05 13:11:27 -04:00
Chun-wei Fan
be4f4563c7 Fix unconditional unistd.h inclusion
Cherry-pick from commit 3c94299b0ff1c8e1b0b06bedd73b1b725e631d8a
in master.

This will close Bug 644905.
2011-06-01 08:12:45 +08:00
Ryan Lortie
89908908d5 GApplication: fix remote action states
Fix up remote_action_info_new_from_iter() to do its job better and use
it from all places that it's appropriate.

Closes #650236.
2011-05-20 23:50:55 -04:00
Ryan Lortie
2ab5d96fa6 Fix gsettings tool string handling
There are some bugs caused by the way that gsettings-tool currently
attempts to help the user when they leave the quotes off of a string
value that they are setting.

Simplify the code to make it more robust and add some comments about why
it should be done this way.

https://bugzilla.gnome.org/show_bug.cgi?id=649915
2011-05-20 23:42:22 -04:00
Alexander Larsson
c7271d2184 GFilterInputStream: close-base-stream should not be construct-only
This is a runtime changable property (by the methods for it), must
be a cut and paste error.
2011-05-20 23:34:13 -04:00
Matthias Clasen
486e6d3eb4 Fix up some harmless FALSE <> NULL confusions
Reported in bug 643134.
2011-05-20 23:31:12 -04:00
Michael Terry
859c8f7ed7 Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos
https://bugzilla.gnome.org/show_bug.cgi?id=648416
2011-05-20 23:30:15 -04:00
Martin Pitt
5deeb94970 [gi] Add missing allow-none annotations to GDBusConnection
Cherrypicked from master commit 21c2291.
2011-05-08 23:10:37 +02:00
Chun-wei Fan
2a1514a29f Bug 643161: VS 2010 Project files (autotools)
Added rules in GLib, GIO and GObject to
expand the respective project files and templates
during "make dist" so that the source file listing
is up-to-date in releases, so to simplify their maintenance.
2011-04-22 19:09:38 +08:00
Ryan Lortie
8c24ea5f49 builder: do not include <unistd.h> on win32
Spotted by Kean Johnston <kean.johnston@gmail.com>.

https://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00010.html
2011-04-15 09:33:12 -04:00
Michael Kuhn
c06be20515 Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
https://bugzilla.gnome.org/show_bug.cgi?id=637561

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 06:26:55 -04:00
Simon McVittie
eb70e54370 /gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8
Older versions of libdbus would let you construct an invalid
DBusMessage, but that's a bug, which will be fixed in 1.4.8/1.5.0.
Instead, construct a valid message of the same length, then replace
substrings in the serialized blob with their invalid counterparts.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=646326

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 06:26:36 -04:00
David Zeuthen
fc80ec9d0c GDBus: If an authentication method fail, don't give up, just try the next one
This problem was reported in bug 647602.

https://bugzilla.gnome.org/show_bug.cgi?id=647602

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-14 10:14:02 -04:00
David Zeuthen
69c4e81d0a GDBus: Nuke debug spew from the ANONYMOUS authentication method
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-14 10:13:43 -04:00
Colin Walters
3ea204ccf7 gdbusconnection: Avoid tripping assertion if we fail to authenticate twice
If g_bus_get_sync() fails in authentication (because e.g. the process
uid, doesn't match the expected in EXTERNAL), a secondary call to
g_bus_get_sync() would notice we aren't initialized, and try
to initialize.

The assertion here is just wrong; we now explicitly and clearly handle
both cases where we already have an error, or we already succeeded.

https://bugzilla.gnome.org/show_bug.cgi?id=635694
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-14 10:13:18 -04:00
Matthias Clasen
43882037fd Fix another faulty GApplicationCommandline example
Several flaws were pointed out by Shaun McCance. We were
leaking handled arguments, and we were mishandling the last
argument, and we were actually skipping arguments too.

https://bugzilla.gnome.org/show_bug.cgi?id=647031
2011-04-08 17:03:20 -04:00
Ryan Lortie
ddfddbcb40 Don't assert on backend == settings->priv->backend
They could be different if a notification is queued for delivery and
someone calls g_settings_delay().

Bug #646843.
2011-04-08 13:16:33 -04:00
Matthias Clasen
2aad89ab9b Avoid an interaction between GApplication and GOption
When using GOption to handle commandlines, we need to disable
the builtin help handling, since it calls exit(). Also mention
this particular pitfall in the docs.
2011-04-08 07:17:55 -04:00
Matthias Clasen
faa896642d Add a warning to the g_dbus_connection_set_exit_on_close docs
Tell people to not leak their apps out of the session.
2011-04-07 17:16:44 -04:00
Murray Cumming
092a3c2419 Docs: Change DBus to D-Bus 2011-04-04 09:23:17 +02:00
Murray Cumming
cdeb2dbd47 GDBusMethodInvocation: Improve get_parameters() documentation.
Note that the returned GVariant is always a tuple.
See bug #646420.
2011-04-03 09:11:59 +02:00
Matthias Clasen
471498c621 Docs: explain what a NULL vtable might be good for
https://bugzilla.gnome.org/show_bug.cgi?id=646419
2011-04-01 13:44:23 -04:00
Matthias Clasen
770442f2de Remove a reference to a nonexisting function from the docs
There is sadly no async g_dbus_server_new() function.
https://bugzilla.gnome.org/show_bug.cgi?id=646422
2011-04-01 11:50:38 -04:00
Martin Pitt
2d3b3f8954 [gi] Add missing allow-none annotations to Gio 2011-03-30 19:58:16 +02:00
Jonathan Matthew
3ce857f9a4 introspection: add annotations for g_file_load_contents and friends
https://bugzilla.gnome.org/show_bug.cgi?id=645789
2011-03-29 12:03:03 -04:00
Matthias Clasen
a710e3132d Document which files glib-compile-schemas looks at
Otherwise, your vendor override files are silently ignored...
2011-03-15 11:31:31 -04:00
Matthias Clasen
471a029fa6 Improve preconditions in action-related GApplication api
https://bugzilla.gnome.org/show_bug.cgi?id=643780
2011-03-06 23:09:56 -05:00
Matthias Clasen
c16a12c7a9 Some more details about GApplicationFlags 2011-03-04 12:52:43 -05:00
Matthias Clasen
5fe6f2beb4 Add more GApplication docs
Add more details about ::command-line to the g_application_run docs.
2011-03-04 12:52:39 -05:00
Murray Cumming
a01af94c35 GApplication: Check more before warning about a missing signal handler.
* gio/application.c (g_application_real_command_line): Check that the
default signal handler is not the current one before complaining, because
it is not unusual for overloads to call the base class implementation as
a matter of habit.
g_application_real_open() and g_application_real_activate() already do this
extra check.
2011-03-04 12:52:33 -05:00
Matthias Clasen
841d2a3fff GApplication: More documentation tweaks 2011-03-04 12:52:26 -05:00
Matthias Clasen
fe4d9ab763 Fix a typo 2011-03-04 12:52:18 -05:00
Matthias Clasen
bd0e8775b6 Small doc correction
We don't actually pass @argc to local_command_line().
2011-03-04 12:51:48 -05:00
Matthias Clasen
f21b28c3f1 GApplication: Clarify docs for @argv
Clearly state that @argv may be NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=643649
2011-03-04 12:51:39 -05:00
Matthias Clasen
15236daefd GApplication: Beef up the local_command_line() docs
This adds some details, such as the meaning of @argc, @argv and @status,
even though gtk-doc does not make it easy to document vfunc arguments.
Requested in
https://bugzilla.gnome.org/show_bug.cgi?id=643478
2011-03-04 12:51:29 -05:00
Matthias Clasen
4efbf92b7f GApplication: Improve documentation
This commit adds some details regarding platform data.
2011-03-04 12:51:24 -05:00
Matthias Clasen
93918189ef Try harder to explain GApplicationCommandline
Trying to answer some of the questions in
https://bugzilla.gnome.org/show_bug.cgi?id=643468
2011-03-04 12:51:18 -05:00
Matthias Clasen
3b373b7541 GApplications: Tighten up application-id validity checks
Also add tests for these conditions.
https://bugzilla.gnome.org/show_bug.cgi?id=643197
2011-03-04 12:50:57 -05:00
Vincent Untz
ffbd230d6d appinfo: Do not override system default handler with less specific one
We were considering explicitly configured defaults for parent types
after we already got results for the specific type we're interested in.

This resulted in the explicit default for text/plain to override all
system defaults for subtypes of text/plain, for example. The explicit
default should not apply to subtypes that have a system default.

https://bugzilla.gnome.org/show_bug.cgi?id=642797
2011-03-04 12:49:45 -05:00
Matthias Clasen
24e6a27d23 Be more forgiving when parsing introspection xml
Accept (and silently ignore) version attributes on <interface>
and <method> elements - these occur in the wild, and ignoring
them does not cost us anything.
2011-03-04 12:47:27 -05:00
Cosimo Cecchi
e3516c7f89 application: fix a typo in the docs annotation 2011-02-22 22:08:50 -05:00
Lin Ma
712fbdd9cc Fixed bugster 7007407. Do not clear stat info until a node is really
deleted.
2011-02-17 23:34:41 -05:00