GtkToolPalette: Fix a compiler warning introduced in my last commit.
This commit is contained in:
@ -1549,12 +1549,13 @@ gtk_tool_palette_get_drop_item (GtkToolPalette *palette,
|
|||||||
gint x,
|
gint x,
|
||||||
gint y)
|
gint y)
|
||||||
{
|
{
|
||||||
GtkWidget *group = gtk_tool_palette_get_drop_group (palette, x, y);
|
GtkToolItemGroup *group = gtk_tool_palette_get_drop_group (palette, x, y);
|
||||||
|
GtkWidget *widget = GTK_WIDGET (group);
|
||||||
|
|
||||||
if (group)
|
if (group)
|
||||||
return gtk_tool_item_group_get_drop_item (GTK_TOOL_ITEM_GROUP (group),
|
return gtk_tool_item_group_get_drop_item (group,
|
||||||
x - group->allocation.x,
|
x - widget->allocation.x,
|
||||||
y - group->allocation.y);
|
y - widget->allocation.y);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user