Fix some compilation warning

Added some default cases and assert if reached
This commit is contained in:
Javier Jardón 2009-10-21 02:07:26 +02:00
parent 8e70bc988b
commit 670e141b3a
3 changed files with 13 additions and 0 deletions

View File

@ -569,6 +569,11 @@ gtk_info_bar_update_colors (GtkInfoBar *info_bar)
fg = &other_default_border_color;
bg = &other_default_fill_color;
break;
default:
g_assert_not_reached();
fg = NULL;
bg = NULL;
}
}

View File

@ -2730,6 +2730,10 @@ get_arrows_visible_area (GtkMenu *menu,
lower->width = (border->width - 2 * border->x) / 2;
lower->height = scroll_arrow_height;
break;
default:
g_assert_not_reached();
upper->x = upper->y = upper->width = upper->height = 0;
}
*arrow_space = scroll_arrow_height - 2 * widget->style->ythickness;

View File

@ -2496,6 +2496,10 @@ common_render_page (GtkPrintOperation *op,
x = columns - 1 - (priv->page_position / rows) % columns;
y = rows - 1 - priv->page_position % rows;
break;
default:
g_assert_not_reached();
x = 0;
y = 0;
}
if (priv->manual_number_up == 4 || priv->manual_number_up == 9 || priv->manual_number_up == 16)