[gtk+/wip/action-helper] GtkWidget: add checks to _get_action_group_by_name
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/action-helper] GtkWidget: add checks to _get_action_group_by_name
- Date: Thu, 21 Jun 2012 14:27:24 +0000 (UTC)
commit e3127d8b3857bc62eeca24dee651bae8e47fa422
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jun 21 10:26:31 2012 -0400
GtkWidget: add checks to _get_action_group_by_name
Add some appropriate g_return_val_if_fail().
gtk/gtkwidget.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 669d2b4..71e6c63 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -14182,6 +14182,9 @@ GActionGroup *
gtk_widget_get_action_group_by_name (GtkWidget *widget,
const gchar *name)
{
+ g_return_if_fail (GTK_IS_WIDGET (widget), NULL);
+ g_return_val_if_fail (name != NULL, NULL);
+
widget->priv->action_requested = TRUE;
return GTK_WIDGET_GET_CLASS (widget)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]