[gtk+] doc: Replace uses of #NULL with %NULL



commit 98c1f16002f4979f681150896a39c07edf105024
Author: Daniel Boles <dboles src gnome org>
Date:   Wed Nov 22 19:19:27 2017 +0000

    doc: Replace uses of #NULL with %NULL

 gdk/gdkdevicemanager.c     |    2 +-
 gdk/gdkglcontext.c         |    2 +-
 gtk/gtkclipboard.c         |    2 +-
 gtk/gtkdnd.c               |    2 +-
 gtk/gtkgesturemultipress.c |    2 +-
 gtk/gtkplacessidebar.c     |   12 +++++++-----
 gtk/gtkwidget.c            |    2 +-
 7 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/gdk/gdkdevicemanager.c b/gdk/gdkdevicemanager.c
index 91b353d..cd133b4 100644
--- a/gdk/gdkdevicemanager.c
+++ b/gdk/gdkdevicemanager.c
@@ -300,7 +300,7 @@ gdk_device_manager_get_property (GObject      *object,
  * Gets the #GdkDisplay associated to @device_manager.
  *
  * Returns: (nullable) (transfer none): the #GdkDisplay to which
- *          @device_manager is associated to, or #NULL. This memory is
+ *          @device_manager is associated to, or %NULL. This memory is
  *          owned by GDK and must not be freed or unreferenced.
  *
  * Since: 3.0
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 2555423..84bdd40 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -334,7 +334,7 @@ gdk_gl_context_class_init (GdkGLContextClass *klass)
   /**
    * GdkGLContext:shared-context:
    *
-   * The #GdkGLContext that this context is sharing data with, or #NULL
+   * The #GdkGLContext that this context is sharing data with, or %NULL
    *
    * Since: 3.16
    */
diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c
index 65b770d..c328bad 100644
--- a/gtk/gtkclipboard.c
+++ b/gtk/gtkclipboard.c
@@ -305,7 +305,7 @@ clipboard_display_closed (GdkDisplay   *display,
  * to the default clipboard, i.e. they copy the selection to what the
  * user sees as the clipboard.
  *
- * (Passing #NULL is the same as using `gdk_atom_intern
+ * (Passing %NULL is the same as using `gdk_atom_intern
  * ("CLIPBOARD", FALSE)`.
  *
  * See the
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 4015e22..f452f40 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1423,7 +1423,7 @@ gtk_drag_begin_internal (GtkWidget          *widget,
  * button is held down for some time.  Try to save the last event that you got
  * from the mouse, using gdk_event_copy(), and pass it to this function
  * (remember to free the event with gdk_event_free() when you are done).
- * If you can really not pass a real event, pass #NULL instead.
+ * If you can really not pass a real event, pass %NULL instead.
  *
  * Returns: (transfer none): the context for this drag
  *
diff --git a/gtk/gtkgesturemultipress.c b/gtk/gtkgesturemultipress.c
index 5b96ebe..daaecdb 100644
--- a/gtk/gtkgesturemultipress.c
+++ b/gtk/gtkgesturemultipress.c
@@ -411,7 +411,7 @@ gtk_gesture_multi_press_new (GtkWidget *widget)
  * If @rect is non-%NULL, the press area will be checked to be
  * confined within the rectangle, otherwise the button count
  * will be reset so the press is seen as being the first one.
- * If @rect is #NULL, the area will be reset to an unrestricted
+ * If @rect is %NULL, the area will be reset to an unrestricted
  * state.
  *
  * Note: The rectangle is only used to determine whether any
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 2d818e9..180b18e 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -4416,8 +4416,10 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
    * GtkPlacesSidebar::populate-popup:
    * @sidebar: the object which received the signal.
    * @container: (type Gtk.Widget): a #GtkMenu or another #GtkContainer
-   * @selected_item: (type Gio.File) (nullable): #GFile with the item to which the popup should refer, or 
#NULL in the case of a @selected_volume.
-   * @selected_volume: (type Gio.Volume) (nullable): #GVolume if the selected item is a volume, or #NULL if 
it is a file.
+   * @selected_item: (type Gio.File) (nullable): #GFile with the item to which
+   *     the popup should refer, or %NULL in the case of a @selected_volume.
+   * @selected_volume: (type Gio.Volume) (nullable): #GVolume if the selected
+   *     item is a volume, or %NULL if it is a file.
    *
    * The places sidebar emits this signal when the user invokes a contextual
    * popup on one of its items. In the signal handler, the application may
@@ -4834,7 +4836,7 @@ gtk_places_sidebar_get_open_flags (GtkPlacesSidebar *sidebar)
 /**
  * gtk_places_sidebar_set_location:
  * @sidebar: a places sidebar
- * @location: (allow-none): location to select, or #NULL for no current path
+ * @location: (nullable): location to select, or %NULL for no current path
  *
  * Sets the location that is being shown in the widgets surrounding the
  * @sidebar, for example, in a folder view in a file manager.  In turn, the
@@ -4894,7 +4896,7 @@ gtk_places_sidebar_set_location (GtkPlacesSidebar *sidebar,
  * gtk_places_sidebar_get_location:
  * @sidebar: a places sidebar
  *
- * Gets the currently-selected location in the @sidebar.  This can be #NULL when
+ * Gets the currently selected location in the @sidebar. This can be %NULL when
  * nothing is selected, for example, when gtk_places_sidebar_set_location() has
  * been called with a location that is not among the sidebar’s list of places to
  * show.
@@ -4904,7 +4906,7 @@ gtk_places_sidebar_set_location (GtkPlacesSidebar *sidebar,
  * function to get the location that is being referred to during the callbacks
  * for your menu items.
  *
- * Returns: (nullable) (transfer full): a GFile with the selected location, or
+ * Returns: (nullable) (transfer full): a #GFile with the selected location, or
  * %NULL if nothing is visually selected.
  *
  * Since: 3.10
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 8d1d917..a4739a9 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5049,7 +5049,7 @@ gtk_widget_queue_resize_no_redraw (GtkWidget *widget)
  * Unrealized widgets do not have a frame clock.
  *
  * Returns: (nullable) (transfer none): a #GdkFrameClock,
- * or #NULL if widget is unrealized
+ * or %NULL if widget is unrealized
  *
  * Since: 3.8
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]