From: Lionel Landwerlin <[email protected]>

Signed-off-by: Lionel Landwerlin <[email protected]>
---
 mx/mx-texture-cache.c |    2 +-
 mx/mx-tooltip.c       |    2 ++
 mx/mx-widget.c        |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/mx/mx-texture-cache.c b/mx/mx-texture-cache.c
index dc80291..3bce258 100644
--- a/mx/mx-texture-cache.c
+++ b/mx/mx-texture-cache.c
@@ -316,7 +316,7 @@ mx_texture_cache_get_item (MxTextureCache *self,
   MxTextureCachePrivate *priv;
   MxTextureCacheItem *item;
   gchar *new_file, *new_uri;
-  const gchar *file;
+  const gchar *file = NULL;
 
   priv = TEXTURE_CACHE_PRIVATE (self);
 
diff --git a/mx/mx-tooltip.c b/mx/mx-tooltip.c
index f469642..3ab5eaf 100644
--- a/mx/mx-tooltip.c
+++ b/mx/mx-tooltip.c
@@ -617,6 +617,7 @@ mx_tooltip_update_position (MxTooltip *tooltip)
   priv->actor_below = FALSE;
   switch (rotation)
     {
+    default:
     case MX_WINDOW_ROTATION_0:
       tooltip_x = (int)(tip_area->x + (tip_area->width / 2) -
                         (tooltip_w / 2));
@@ -679,6 +680,7 @@ mx_tooltip_update_position (MxTooltip *tooltip)
   /* Keep on the screen horizontally */
   switch (rotation)
     {
+    default:
     case MX_WINDOW_ROTATION_0:
     case MX_WINDOW_ROTATION_180:
       if (tooltip_w > stage_w)
diff --git a/mx/mx-widget.c b/mx/mx-widget.c
index a35366a..31cd959 100644
--- a/mx/mx-widget.c
+++ b/mx/mx-widget.c
@@ -1770,7 +1770,7 @@ mx_widget_set_tooltip_delay (MxWidget *widget,
 guint
 mx_widget_get_tooltip_delay (MxWidget *widget)
 {
-  g_return_if_fail (MX_IS_WIDGET (widget));
+  g_return_val_if_fail (MX_IS_WIDGET (widget), 0);
 
   return widget->priv->tooltip_delay;
 }
-- 
1.7.5.3

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to