_elm_panes_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next)
{
Widget_Data *wd = elm_widget_data_get(obj);
-
- if (!wd)
- return EINA_FALSE;
+ if (!wd) return EINA_FALSE;
double w, h;
edje_object_part_drag_value_get(wd->panes, "elm.bar", &w, &h);
ELM_SET_WIDTYPE(widtype, "panes");
elm_widget_type_set(obj, "panes");
- elm_widget_can_focus_set(obj, EINA_FALSE);
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
elm_widget_del_hook_set(obj, _del_hook);
Widget_Data *wd = elm_widget_data_get(obj);
double w, h;
+ if (!wd) return 0;
edje_object_part_drag_value_get(wd->panes, "elm.bar", &w, &h);
if (wd->horizontal) return h;
else return w;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
if (size < 0.0) size = 0.0;
else if (size > 1.0) size = 1.0;
if (wd->horizontal)
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
wd->horizontal = horizontal;
_theme_hook(obj);
elm_panes_content_left_size_set(obj, 0.5);
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return EINA_FALSE;
return wd->horizontal;
}
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- wd->fixed = fixed;
+ if (!wd) return;
+ wd->fixed = !!fixed;
if (wd->fixed == EINA_TRUE)
edje_object_signal_emit(wd->panes, "elm.panes.fixed", "elm");
else
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return EINA_FALSE;
return wd->fixed;
}