overlay: Silence gcc warnings

This commit is contained in:
Benjamin Otte 2013-04-23 14:13:33 -04:00
parent 8c68050af8
commit 174664b235

View File

@ -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;