mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
icon view: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
This commit is contained in:
parent
85b4eef004
commit
138e958614
@ -1903,7 +1903,7 @@ gtk_icon_view_draw (GtkWidget *widget,
|
||||
paint_area.y = item->cell_area.y - icon_view->priv->item_padding;
|
||||
paint_area.width = item->cell_area.width + icon_view->priv->item_padding * 2;
|
||||
paint_area.height = item->cell_area.height + icon_view->priv->item_padding * 2;
|
||||
|
||||
|
||||
cairo_save (cr);
|
||||
|
||||
cairo_rectangle (cr, paint_area.x, paint_area.y, paint_area.width, paint_area.height);
|
||||
@ -1925,11 +1925,8 @@ gtk_icon_view_draw (GtkWidget *widget,
|
||||
if (dest_item &&
|
||||
dest_pos != GTK_ICON_VIEW_NO_DROP)
|
||||
{
|
||||
GtkStyleContext *context;
|
||||
GdkRectangle rect = { 0 };
|
||||
|
||||
context = gtk_widget_get_style_context (widget);
|
||||
|
||||
switch (dest_pos)
|
||||
{
|
||||
case GTK_ICON_VIEW_DROP_INTO:
|
||||
|
Loading…
Reference in New Issue
Block a user