summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-12-13 20:32:46 -0500
committerMatthias Clasen <mclasen@redhat.com>2009-12-13 20:32:46 -0500
commita9cd99c15f81d6fbb34e84432fc879b21bf86bc6 (patch)
tree9ffcdb1f78339519f6b2b8a5617af236376898d2 /gtk/gtktoolitem.c
parent3d74197f8c428fcb6cef3373a5cc8bb9fd704f34 (diff)
downloadgtk+-a9cd99c15f81d6fbb34e84432fc879b21bf86bc6.tar.gz
Fix gtk_tool_item_get_text_size_group return value
Reported by Kazuki Iwamoto in bug 604462.
Diffstat (limited to 'gtk/gtktoolitem.c')
-rw-r--r--gtk/gtktoolitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index 73b930ff8c..5ad31cce4b 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -924,7 +924,7 @@ gtk_tool_item_get_text_size_group (GtkToolItem *tool_item)
{
GtkWidget *parent;
- g_return_val_if_fail (GTK_IS_TOOL_ITEM (tool_item), GTK_ORIENTATION_HORIZONTAL);
+ g_return_val_if_fail (GTK_IS_TOOL_ITEM (tool_item), NULL);
parent = GTK_WIDGET (tool_item)->parent;
if (!parent || !GTK_IS_TOOL_SHELL (parent))