mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
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.
This commit is contained in:
parent
2091807b24
commit
eed0dd0944
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user