summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2010-01-19 09:04:15 +0100
committerMurray Cumming <murrayc@murrayc.com>2010-01-19 09:04:15 +0100
commitcf8b941807ba5d8158b5c99c747425e835cc314c (patch)
tree882fd37c5726f0808033b77c1fc806d2b22cb22a /gtk
parent6b808a7389689b3e6b89475c5a30cced2885bb1d (diff)
downloadgtk+-cf8b941807ba5d8158b5c99c747425e835cc314c.tar.gz
GtkToolPalette: Fix a compiler warning introduced in my last commit.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktoolpalette.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index 9bb93d9020..94ea45247b 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -1549,12 +1549,13 @@ gtk_tool_palette_get_drop_item (GtkToolPalette *palette,
gint x,
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)
- return gtk_tool_item_group_get_drop_item (GTK_TOOL_ITEM_GROUP (group),
- x - group->allocation.x,
- y - group->allocation.y);
+ return gtk_tool_item_group_get_drop_item (group,
+ x - widget->allocation.x,
+ y - widget->allocation.y);
return NULL;
}