add extra safety checks.
authorCarsten Haitzler <raster@rasterman.com>
Thu, 22 Oct 2009 12:08:20 +0000 (12:08 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 22 Oct 2009 12:08:20 +0000 (12:08 +0000)
SVN revision: 43199

src/lib/elm_main.c

index a67f66db9c98ff267ebfb05750692437582aee4c..e75c0c85fa2d16e2352d339b8635678c7daa9036 100644 (file)
@@ -1262,6 +1262,7 @@ elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coor
 EAPI void
 elm_object_focus(Evas_Object *obj)
 {
+   if (!elm_widget_can_focus_get(obj)) return;
    elm_widget_focus_set(obj, 1);
 }