[elm] Here, better.
authorGustavo Lima Chaves <glima@profusion.mobi>
Tue, 31 Jul 2012 22:05:50 +0000 (22:05 +0000)
committerGustavo Lima Chaves <glima@profusion.mobi>
Tue, 31 Jul 2012 22:05:50 +0000 (22:05 +0000)
SVN revision: 74679

src/lib/elm_interface_scrollable.h
src/lib/elm_scroller.c

index 2c9541c..c5369fd 100644 (file)
@@ -483,6 +483,19 @@ EAPI const Elm_Pan_Smart_Class *elm_pan_smart_class_get(void);
   const Elm_Scrollable_Smart_Interface * iface; \
   iface = evas_object_smart_interface_get(obj, ELM_SCROLLABLE_IFACE_NAME);
 
+#define ELM_SCROLLABLE_CHECK(obj, ...)                                       \
+  const Elm_Scrollable_Smart_Interface * s_iface =                           \
+    evas_object_smart_interface_get(obj, ELM_SCROLLABLE_IFACE_NAME);         \
+                                                                             \
+  if (!s_iface)                                                              \
+    {                                                                        \
+       ERR("Passing object (%p) of type '%s' in function %s, but it doesn't" \
+           " implement the Elementary scrollable interface.", obj,           \
+           elm_widget_type_get(obj), __func__);                              \
+       if (getenv("ELM_ERROR_ABORT")) abort();                               \
+       return __VA_ARGS__;                                                   \
+    }
+
 /**
  * @}
  */
index 52d63ec..07ac148 100644 (file)
@@ -32,18 +32,6 @@ static const char SCROLLER_SMART_NAME[] = "elm_scroller";
   if (!obj || !elm_widget_type_check((obj), SCROLLER_SMART_NAME, __func__)) \
     return
 
-#define ELM_SCROLLABLE_CHECK(obj, ...)                                       \
-  const Elm_Scrollable_Smart_Interface * s_iface =                           \
-    evas_object_smart_interface_get(obj, ELM_SCROLLABLE_IFACE_NAME);         \
-                                                                             \
-  if (!s_iface)                                                              \
-    {                                                                        \
-       ERR("Passing object (%p) of type '%s' in function %s, but it doesn't" \
-           " implement the Elementary scrollable interface.", obj,           \
-           elm_widget_type_get(obj), __func__);                              \
-       if (getenv("ELM_ERROR_ABORT")) abort();                               \
-       return __VA_ARGS__;                                                   \
-    }
 
 struct _Elm_Scroller_Smart_Data
 {