From 30fdc1a79938540af7bad0af68d0a3b8af14f117 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Thu, 24 Mar 2011 09:33:55 +0100 Subject: [PATCH] Docs: Changed can not to cannot. --- gio/gapplication.c | 4 ++-- gio/gsettings.h | 2 +- gio/gvdb/gvdb-reader.c | 2 +- gio/tests/gschema-compile.c | 2 +- glib/gconvert.c | 4 ++-- glib/giochannel.c | 6 +++--- glib/gmessages.c | 2 +- glib/gthread.c | 4 ++-- glib/gthreadpool.c | 2 +- glib/gvariant.c | 4 ++-- glib/gvarianttype.c | 2 +- gobject/gtype.h | 2 +- gobject/gtypemodule.c | 2 +- gobject/gvalue.h | 2 +- 14 files changed, 20 insertions(+), 20 deletions(-) diff --git a/gio/gapplication.c b/gio/gapplication.c index 600036f..7a97fef 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -77,7 +77,7 @@ * object paths that you wish to register are registered before * #GApplication attempts to acquire the bus name of your application * (which happens in g_application_register()). Unfortunately, this - * means that you can not use g_application_get_is_remote() to decide if + * means that you cannot use g_application_get_is_remote() to decide if * you want to register object paths. * * GApplication provides convenient life cycle management by maintaining @@ -945,7 +945,7 @@ g_application_get_is_registered (GApplication *application) * perform actions on @application will result in the actions being * performed by the primary instance. * - * The value of this property can not be accessed before + * The value of this property cannot be accessed before * g_application_register() has been called. See * g_application_get_is_registered(). * diff --git a/gio/gsettings.h b/gio/gsettings.h index 324ad36..a58756d 100644 --- a/gio/gsettings.h +++ b/gio/gsettings.h @@ -217,7 +217,7 @@ typedef gboolean (*GSettingsGetMapping) (GVarian * value initially from the setting, but do not listen for changes of the setting * @G_SETTINGS_BIND_INVERT_BOOLEAN: When passed to g_settings_bind(), uses a pair of mapping functions that invert * the boolean value when mapping between the setting and the property. The setting and property must both - * be booleans. You can not pass this flag to g_settings_bind_with_mapping(). + * be booleans. You cannot pass this flag to g_settings_bind_with_mapping(). * * Flags used when creating a binding. These flags determine in which * direction the binding works. The default is to synchronize in both diff --git a/gio/gvdb/gvdb-reader.c b/gio/gvdb/gvdb-reader.c index b95b900..f132df7 100644 --- a/gio/gvdb/gvdb-reader.c +++ b/gio/gvdb/gvdb-reader.c @@ -135,7 +135,7 @@ gvdb_table_setup_root (GvdbTable *file, * Creates a new #GvdbTable from the contents of the file found at * @filename. * - * The only time this function fails is if the file can not be opened. + * The only time this function fails is if the file cannot be opened. * In that case, the #GError that is returned will be an error from * g_mapped_file_new(). * diff --git a/gio/tests/gschema-compile.c b/gio/tests/gschema-compile.c index 2ffa85b..de3604d 100644 --- a/gio/tests/gschema-compile.c +++ b/gio/tests/gschema-compile.c @@ -76,7 +76,7 @@ static const SchemaTest tests[] = { { "enum-with-repeated-value", NULL, "*value='1' already specified*" }, { "enum-with-chained-alias", NULL, "*'sausages' is not in enumerated type*" }, { "enum-with-shadow-alias", NULL, "*'mash' is already a member of the enum*" }, - { "enum-with-choice", NULL, "* can not be specified*" }, + { "enum-with-choice", NULL, "* cannot be specified*" }, { "enum-with-bad-default", NULL, "* is not a valid member*" }, { "choice", NULL, NULL }, { "choice-upside-down", NULL, NULL }, diff --git a/glib/gconvert.c b/glib/gconvert.c index b363bca..e68a7f7 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -2161,7 +2161,7 @@ g_uri_list_extract_uris (const gchar *uri_list) * for instance there might be problems converting it to UTF-8, and some files * can be translated in the display. * - * If GLib can not make sense of the encoding of @filename, as a last resort it + * If GLib cannot make sense of the encoding of @filename, as a last resort it * replaces unknown characters with U+FFFD, the Unicode replacement character. * You can search the result for the UTF-8 encoding of this character (which is * "\357\277\275" in octal notation) to find out if @filename was in an invalid @@ -2202,7 +2202,7 @@ g_filename_display_basename (const gchar *filename) * Unlike g_filename_to_utf8(), the result is guaranteed to be non-%NULL * even if the filename actually isn't in the GLib file name encoding. * - * If GLib can not make sense of the encoding of @filename, as a last resort it + * If GLib cannot make sense of the encoding of @filename, as a last resort it * replaces unknown characters with U+FFFD, the Unicode replacement character. * You can search the result for the UTF-8 encoding of this character (which is * "\357\277\275" in octal notation) to find out if @filename was in an invalid diff --git a/glib/giochannel.c b/glib/giochannel.c index 75808eb..8fba7e0 100644 --- a/glib/giochannel.c +++ b/glib/giochannel.c @@ -951,12 +951,12 @@ g_io_channel_get_line_term (GIOChannel *channel, * %O_NONBLOCK/%O_NDELAY (see the documentation of * the UNIX open() syscall). * @G_IO_FLAG_IS_READABLE: indicates that the io channel is readable. - * This flag can not be changed. + * This flag cannot be changed. * @G_IO_FLAG_IS_WRITEABLE: indicates that the io channel is writable. - * This flag can not be changed. + * This flag cannot be changed. * @G_IO_FLAG_IS_SEEKABLE: indicates that the io channel is seekable, * i.e. that g_io_channel_seek_position() can - * be used on it. This flag can not be changed. + * be used on it. This flag cannot be changed. * @G_IO_FLAG_MASK: the mask that specifies all the valid flags. * @G_IO_FLAG_GET_MASK: the mask of the flags that are returned from * g_io_channel_get_flags(). diff --git a/glib/gmessages.c b/glib/gmessages.c index 5129c42..60330d4 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -821,7 +821,7 @@ _g_log_fallback_handler (const gchar *log_domain, gboolean is_fatal = (log_level & G_LOG_FLAG_FATAL) != 0; int fd; - /* we can not call _any_ GLib functions in this fallback handler, + /* we cannot call _any_ GLib functions in this fallback handler, * which is why we skip UTF-8 conversion, etc. * since we either recursed or ran out of memory, we're in a pretty * pathologic situation anyways, what we can do is giving the diff --git a/glib/gthread.c b/glib/gthread.c index 971aedb..ab146d5 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -443,7 +443,7 @@ GThreadFunctions g_thread_functions_for_glib_use = { * #GStaticMutex provides a simpler and safer way of doing this. * * If you want to use a mutex, and your code should also work without - * calling g_thread_init() first, then you can not use a #GMutex, as + * calling g_thread_init() first, then you cannot use a #GMutex, as * g_mutex_new() requires that the thread system be initialized. Use a * #GStaticMutex instead. * @@ -736,7 +736,7 @@ GThreadFunctions g_thread_functions_for_glib_use = { * @destructor is used quite differently from @notify in * g_static_private_set(). * - * A #GPrivate can not be freed. Reuse it instead, if you + * A #GPrivate cannot be freed. Reuse it instead, if you * can, to avoid shortage, or use #GStaticPrivate. * * This function will abort if g_thread_init() has not been diff --git a/glib/gthreadpool.c b/glib/gthreadpool.c index 01b719e..d6fac92 100644 --- a/glib/gthreadpool.c +++ b/glib/gthreadpool.c @@ -901,7 +901,7 @@ g_thread_pool_stop_unused_threads (void) * just in the order in which they were added to the pool. * * Note, if the maximum number of threads is more than 1, the order - * that threads are executed can not be guranteed 100%. Threads are + * that threads are executed cannot be guranteed 100%. Threads are * scheduled by the operating system and are executed at random. It * cannot be assumed that threads are executed in the order they are * created. diff --git a/glib/gvariant.c b/glib/gvariant.c index caf6bd0..e6375e0 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -49,7 +49,7 @@ * #GVariant instances always have a type and a value (which are given * at construction time). The type and value of a #GVariant instance * can never change other than by the #GVariant itself being - * destroyed. A #GVariant can not contain a pointer. + * destroyed. A #GVariant cannot contain a pointer. * * #GVariant is reference counted using g_variant_ref() and * g_variant_unref(). #GVariant also has floating reference counts -- @@ -2419,7 +2419,7 @@ g_variant_equal (gconstpointer one, * * It is a programmer error to attempt to compare container values or * two values that have types that are not exactly equal. For example, - * you can not compare a 32-bit signed integer with a 32-bit unsigned + * you cannot compare a 32-bit signed integer with a 32-bit unsigned * integer. Also note that this function is not particularly * well-behaved when it comes to comparison of doubles; in particular, * the handling of incomparable values (ie: NaN) is undefined. diff --git a/glib/gvarianttype.c b/glib/gvarianttype.c index e8a976a..9fa9ca2 100644 --- a/glib/gvarianttype.c +++ b/glib/gvarianttype.c @@ -80,7 +80,7 @@ * that are subtypes of indefinite types. That is to say, * g_variant_get_type() will never return an indefinite type, but * calling g_variant_is_of_type() with an indefinite type may return - * %TRUE. For example, you can not have a value that represents "an + * %TRUE. For example, you cannot have a value that represents "an * array of no particular type", but you can have an "array of integers" * which certainly matches the type of "an array of no particular type", * since "array of integers" is a subtype of "array of no particular diff --git a/gobject/gtype.h b/gobject/gtype.h index 549ba03..54befc8 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -335,7 +335,7 @@ G_BEGIN_DECLS * G_TYPE_IS_ABSTRACT: * @type: A #GType value. * - * Checks if @type is an abstract type. An abstract type can not be + * Checks if @type is an abstract type. An abstract type cannot be * instantiated and is normally used as an abstract base class for * derived classes. * diff --git a/gobject/gtypemodule.c b/gobject/gtypemodule.c index 76d675a..d7f6bc4 100644 --- a/gobject/gtypemodule.c +++ b/gobject/gtypemodule.c @@ -49,7 +49,7 @@ * types and interface implementations are in use, the module is kept * loaded. When the types and interfaces are gone, the module may be * unloaded. If the types and interfaces become used again, the module - * will be reloaded. Note that the last unref can not happen in module + * will be reloaded. Note that the last unref cannot happen in module * code, since that would lead to the caller's code being unloaded before * g_object_unref() returns to it. * diff --git a/gobject/gvalue.h b/gobject/gvalue.h index 89f2ee0..60c1919 100644 --- a/gobject/gvalue.h +++ b/gobject/gvalue.h @@ -101,7 +101,7 @@ typedef void (*GValueTransform) (const GValue *src_value, * to functions within a #GTypeValueTable structure, or implementations of * the g_value_*() API. That is, code portions which implement new fundamental * types. - * #GValue users can not make any assumptions about how data is stored + * #GValue users cannot make any assumptions about how data is stored * within the 2 element @data union, and the @g_type member should * only be accessed through the G_VALUE_TYPE() macro. */ -- 2.7.4