summaryrefslogtreecommitdiff
path: root/gtk/gtklockbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-05-21 09:12:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-05-21 09:12:40 -0400
commite578489579e0512d50a81389e065bfd7bd95595e (patch)
tree132a17f19857b9c8a96a02d52c3e186e6e010ba8 /gtk/gtklockbutton.c
parentd333911d3022b3736428dc797c66dae774a885dd (diff)
downloadgtk+-e578489579e0512d50a81389e065bfd7bd95595e.tar.gz
Allow NULL permissions
This is useful in some scenarios.
Diffstat (limited to 'gtk/gtklockbutton.c')
-rw-r--r--gtk/gtklockbutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklockbutton.c b/gtk/gtklockbutton.c
index 913cfc2aa9..713c2ff05f 100644
--- a/gtk/gtklockbutton.c
+++ b/gtk/gtklockbutton.c
@@ -660,7 +660,7 @@ gtk_lock_button_get_permission (GtkLockButton *button)
/**
* gtk_lock_button_set_permission:
* @button: a #GtkLockButton
- * @permission: a #GPermission object
+ * @permission: (allow-none): a #GPermission object, or %NULL
*
* Sets the #GPermission object that controls @button.
*
@@ -673,7 +673,7 @@ gtk_lock_button_set_permission (GtkLockButton *button,
GtkLockButtonPrivate *priv;
g_return_if_fail (GTK_IS_LOCK_BUTTON (button));
- g_return_if_fail (G_IS_PERMISSION (permission));
+ g_return_if_fail (permission == NULL || G_IS_PERMISSION (permission));
priv = button->priv;