[gtk+] overlay: Silence gcc warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] overlay: Silence gcc warnings
- Date: Tue, 23 Apr 2013 18:14:00 +0000 (UTC)
commit 174664b2355bd8712ab2282ec1ca8883f65a6f3c
Author: Benjamin Otte <otte redhat com>
Date: Tue Apr 23 14:13:33 2013 -0400
overlay: Silence gcc warnings
gtk/gtkoverlay.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index c69e104..75ca60d 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]