]> Pileus Git - ~andy/gtk/commitdiff
GtkToolPalette: Change gtk_tool_palette_get_drop_group() return.
authorMurray Cumming <murrayc@murrayc.com>
Mon, 18 Jan 2010 08:37:14 +0000 (09:37 +0100)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:55:20 +0000 (20:55 -0400)
* 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
gtk/gtktoolpalette.h

index ad90adbd0dbcea0b95c41b73af02ff2795c44399..9bb93d9020109f1fe95d3da42204e190412c2d5a 100644 (file)
@@ -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;
index 39005e57fdfdd01e7f5238537ab0dab5f4867351..c98dbef685244b036b983ee3737836a094c3464a 100644 (file)
@@ -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,