[gdl] bgo #722024 - gdl/gdl-dock-bar.c: non-void function should return a value



commit a3799afc8980a30f3cc7247b59d0e252f9048f5d
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Mon Jan 13 21:50:53 2014 +0100

    bgo #722024 - gdl/gdl-dock-bar.c: non-void function should return a value

 gdl/gdl-dock-bar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdl/gdl-dock-bar.c b/gdl/gdl-dock-bar.c
index d0a1425..f99ba2f 100644
--- a/gdl/gdl-dock-bar.c
+++ b/gdl/gdl-dock-bar.c
@@ -484,7 +484,7 @@ GdlDockBarStyle gdl_dock_bar_get_style(GdlDockBar* dockbar)
 {
     GdlDockBarStyle style;
 
-    g_return_if_fail (GDL_IS_DOCK_BAR (dockbar));
+    g_return_val_if_fail (GDL_IS_DOCK_BAR (dockbar), 0);
 
     g_object_get(G_OBJECT(dockbar), "dockbar-style", &style, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]