gadman - fix possible segv with conf being null
This commit is contained in:
parent
8c9404a414
commit
a96f443c10
|
@ -271,7 +271,11 @@ _e_wid_fprev_preview_video_change(void *data, Evas_Object *obj)
|
|||
pos = (pos * tot) / 100.0;
|
||||
t = pos - t;
|
||||
if (t < 0.0) t = -t;
|
||||
if (t > 0.25) emotion_object_position_set(data, pos);
|
||||
if (t > 0.25)
|
||||
{
|
||||
fprintf(stderr, "SET %3.3f\n", pos);
|
||||
emotion_object_position_set(data, pos);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -611,13 +611,14 @@ gadman_update_bg(void)
|
|||
const char *ext;
|
||||
|
||||
if (!Man->gadcons[GADMAN_LAYER_TOP]) return;
|
||||
if (!Man->conf) return;
|
||||
obj = edje_object_part_swallow_get(Man->full_bg, "e.swallow.bg");
|
||||
if (obj)
|
||||
{
|
||||
edje_object_part_unswallow(Man->full_bg, obj);
|
||||
evas_object_del(obj);
|
||||
}
|
||||
|
||||
|
||||
switch (Man->conf->bg_type)
|
||||
{
|
||||
case BG_STD:
|
||||
|
|
Loading…
Reference in New Issue