mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +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:
|
||||
alloc->x += main_alloc.width - req.width;
|
||||
break;
|
||||
case GTK_ALIGN_BASELINE:
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
|
||||
alloc->y = main_alloc.y;
|
||||
@ -418,6 +422,10 @@ gtk_overlay_get_child_position (GtkOverlay *overlay,
|
||||
case GTK_ALIGN_END:
|
||||
alloc->y += main_alloc.height - req.height;
|
||||
break;
|
||||
case GTK_ALIGN_BASELINE:
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user