Fix compilation warning: set a default case in switchs

This commit is contained in:
Javier Jardón 2010-04-15 21:10:32 +02:00
parent 8cde95bc5f
commit 06f66c185a

View File

@ -4303,6 +4303,10 @@ toolbar_content_get_goal_allocation (ToolbarContent *content,
*/
g_assert_not_reached ();
break;
default:
g_assert_not_reached ();
break;
}
}
@ -4311,7 +4315,7 @@ toolbar_content_get_allocation (ToolbarContent *content,
GtkAllocation *allocation)
{
GtkToolbarChild *child;
switch (content->type)
{
case TOOL_ITEM:
@ -4326,6 +4330,10 @@ toolbar_content_get_allocation (ToolbarContent *content,
else
*allocation = child->widget->allocation;
break;
default:
g_assert_not_reached ();
break;
}
}