Fix gtk_tool_item_get_text_size_group return value
Reported by Kazuki Iwamoto in bug 604462.
This commit is contained in:
@ -924,7 +924,7 @@ gtk_tool_item_get_text_size_group (GtkToolItem *tool_item)
|
|||||||
{
|
{
|
||||||
GtkWidget *parent;
|
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;
|
parent = GTK_WIDGET (tool_item)->parent;
|
||||||
if (!parent || !GTK_IS_TOOL_SHELL (parent))
|
if (!parent || !GTK_IS_TOOL_SHELL (parent))
|
||||||
|
|||||||
Reference in New Issue
Block a user