summaryrefslogtreecommitdiff
path: root/src/st/st-scroll-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/st/st-scroll-view.c')
-rw-r--r--src/st/st-scroll-view.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index cab16c280..302f6a756 100644
--- a/src/st/st-scroll-view.c
+++ b/src/st/st-scroll-view.c
@@ -378,6 +378,9 @@ st_scroll_view_get_preferred_width (ClutterActor *actor,
* but that's not cleanly defined at the moment */
min_width = 0;
break;
+ default:
+ g_warn_if_reached();
+ break;
}
switch (priv->vscrollbar_policy)
@@ -396,6 +399,9 @@ st_scroll_view_get_preferred_width (ClutterActor *actor,
*/
account_for_vscrollbar = !priv->overlay_scrollbars;
break;
+ default:
+ g_warn_if_reached();
+ break;
}
if (account_for_vscrollbar)
@@ -452,6 +458,9 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
/* We've requested space for the scrollbar, subtract it back out */
for_width -= sb_width;
break;
+ default:
+ g_warn_if_reached();
+ break;
}
switch (priv->hscrollbar_policy)
@@ -470,6 +479,9 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
*/
account_for_hscrollbar = !priv->overlay_scrollbars;
break;
+ default:
+ g_warn_if_reached();
+ break;
}
clutter_actor_get_preferred_height (priv->child, for_width,
@@ -489,6 +501,9 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
* but that's not cleanly defined at the moment */
min_height = 0;
break;
+ default:
+ g_warn_if_reached();
+ break;
}
if (account_for_hscrollbar)
@@ -759,6 +774,9 @@ st_scroll_view_scroll_event (ClutterActor *self,
case CLUTTER_SCROLL_RIGHT:
adjust_with_direction (priv->hadjustment, event->direction);
break;
+ default:
+ g_warn_if_reached();
+ break;
}
return TRUE;