summaryrefslogtreecommitdiff
path: root/gtk/gtktoolpalette.c
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2010-01-18 09:37:14 +0100
committerMurray Cumming <murrayc@murrayc.com>2010-01-18 09:37:14 +0100
commita491091e292cad33c7c040b6deb05acb43aaec5f (patch)
tree833528331e46eeda4663b1f22c676716b89bfab4 /gtk/gtktoolpalette.c
parentd253fb51403eb6afa6b5b6f4c261184bdc53d7ae (diff)
downloadgtk+-a491091e292cad33c7c040b6deb05acb43aaec5f.tar.gz
GtkToolPalette: Change gtk_tool_palette_get_drop_group() return.
* gtk/gtktoolpalette.[h|cc]: gtk_tool_palette_get_drop_group(): Change the return type from GtkWidget* to GtkToolItemGroup*, for consistency with other parts of GTK+, such as GtkToolbar.
Diffstat (limited to 'gtk/gtktoolpalette.c')
-rw-r--r--gtk/gtktoolpalette.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index ad90adbd0d..9bb93d9020 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -1572,7 +1572,7 @@ gtk_tool_palette_get_drop_item (GtkToolPalette *palette,
*
* Since: 2.20
*/
-GtkWidget*
+GtkToolItemGroup*
gtk_tool_palette_get_drop_group (GtkToolPalette *palette,
gint x,
gint y)
@@ -1603,7 +1603,7 @@ gtk_tool_palette_get_drop_group (GtkToolPalette *palette,
if (x0 >= 0 && x0 < widget->allocation.width &&
y0 >= 0 && y0 < widget->allocation.height)
- return widget;
+ return GTK_TOOL_ITEM_GROUP (widget);
}
return NULL;