mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
overlay: Silence gcc warnings
This commit is contained in:
parent
8c68050af8
commit
174664b235
@ -399,6 +399,10 @@ gtk_overlay_get_child_position (GtkOverlay *overlay,
|
|||||||
case GTK_ALIGN_END:
|
case GTK_ALIGN_END:
|
||||||
alloc->x += main_alloc.width - req.width;
|
alloc->x += main_alloc.width - req.width;
|
||||||
break;
|
break;
|
||||||
|
case GTK_ALIGN_BASELINE:
|
||||||
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
alloc->y = main_alloc.y;
|
alloc->y = main_alloc.y;
|
||||||
@ -418,6 +422,10 @@ gtk_overlay_get_child_position (GtkOverlay *overlay,
|
|||||||
case GTK_ALIGN_END:
|
case GTK_ALIGN_END:
|
||||||
alloc->y += main_alloc.height - req.height;
|
alloc->y += main_alloc.height - req.height;
|
||||||
break;
|
break;
|
||||||
|
case GTK_ALIGN_BASELINE:
|
||||||
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user