char *title;
};
+static Ecore_Evas *win;
+
+static void
+_win_title_set(const char *group, const char *file)
+{
+ char buf[1024];
+ snprintf(buf, sizeof(buf), "Edje_Player - %s of %s", group, file);
+ ecore_evas_title_set(win, buf);
+}
+
static char *
_slave_mode_tok(char **p_arg)
{
evas_object_del(edje);
return NULL;
}
+ if (!opts->title) _win_title_set(opts->group, opts->file);
}
else
{
evas_object_del(edje);
return NULL;
}
+ if (!opts->title) _win_title_set("main", opts->file);
}
else
{
evas_object_del(edje);
return NULL;
}
+ if (!opts->title) _win_title_set(group, opts->file);
edje_file_collection_list_free(groups);
}
}
int main(int argc, char **argv)
{
- Ecore_Evas *win;
Evas *evas;
Evas_Object *stack, *edje;
struct opts opts;
ecore_evas_sticky_set(win, opts.sticky);
if (opts.title)
ecore_evas_title_set(win, opts.title);
- else
- {
- char buf[1024];
- snprintf(buf, sizeof(buf), "Edje_Player - %s of %s",
- opts.group, opts.file);
- ecore_evas_title_set(win, buf);
- }
if (opts.size.w <= 0) opts.size.w = 320;
if (opts.size.h <= 0) opts.size.h = 240;