[gtk+] GtkToolPalette: Change gtk_tool_palette_get_drop_group() return.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] GtkToolPalette: Change gtk_tool_palette_get_drop_group() return.
- Date: Mon, 18 Jan 2010 17:12:34 +0000 (UTC)
commit a491091e292cad33c7c040b6deb05acb43aaec5f
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Jan 18 09:37:14 2010 +0100
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.
gtk/gtktoolpalette.c | 4 ++--
gtk/gtktoolpalette.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index ad90adb..9bb93d9 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;
diff --git a/gtk/gtktoolpalette.h b/gtk/gtktoolpalette.h
index 39005e5..c98dbef 100644
--- a/gtk/gtktoolpalette.h
+++ b/gtk/gtktoolpalette.h
@@ -118,7 +118,7 @@ GtkToolbarStyle gtk_tool_palette_get_style (GtkToolPa
GtkToolItem* gtk_tool_palette_get_drop_item (GtkToolPalette *palette,
gint x,
gint y);
-GtkWidget* gtk_tool_palette_get_drop_group (GtkToolPalette *palette,
+GtkToolItemGroup* gtk_tool_palette_get_drop_group (GtkToolPalette *palette,
gint x,
gint y);
GtkWidget* gtk_tool_palette_get_drag_item (GtkToolPalette *palette,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]