Beispiel #1
0
    "%prog [options] [url]",
    "0.0.1",
    "(C)2012 Samsung Electronics\n",
    "",
    "Test Web Browser using the Enlightenment Foundation Libraries of WebKit2",
    EINA_TRUE, {
        ECORE_GETOPT_STORE_STR
            ('e', "engine", "ecore-evas engine to use."),
        ECORE_GETOPT_CALLBACK_NOARGS
            ('E', "list-engines", "list ecore-evas engines.",
             ecore_getopt_callback_ecore_evas_list_engines, NULL),
        ECORE_GETOPT_VERSION
            ('V', "version"),
        ECORE_GETOPT_COPYRIGHT
            ('R', "copyright"),
        ECORE_GETOPT_HELP
            ('h', "help"),
        ECORE_GETOPT_SENTINEL
    }
};

static Eina_Bool main_signal_exit(void *data, int ev_type, void *ev)
{
    ecore_main_loop_quit();
    return EINA_TRUE;
}

static void closeWindow(Ecore_Evas *ee)
{
    ecore_main_loop_quit();
}
Beispiel #2
0
#include "slideshow.h"

static int APP_LOG_DOMAIN;
static Enlil_Library *library;
const char *Theme = PACKAGE_DATA_DIR "/themes/default.edj";

static const Ecore_Getopt options =
   { "Enki-Slideshow", NULL, VERSION, "(C) 2010 Enki slideshow, see AUTHORS.",
     "LGPL with advertisement, see COPYING",
     "Display a slideshow in full screen !\n\n", 1,
        { ECORE_GETOPT_VERSION('V', "version"),
          ECORE_GETOPT_COPYRIGHT('R', "copyright"),
          ECORE_GETOPT_LICENSE('L', "license"),
          ECORE_GETOPT_STORE_STR('l', "library",
                                 "Specify the location of a library"),
          ECORE_GETOPT_HELP('h', "help"), ECORE_GETOPT_SENTINEL } };

static void
_load_done_cb(void *data, Enlil_Load *load, int nb_albums, int nb_photos);
static void
_load_error_cb(void *data, Enlil_Load *load, Load_Error error, const char *msg);
static void
_load_album_done_cb(void *data, Enlil_Load *load, Enlil_Library *library,
                    Enlil_Album *album);

static void
close_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
   elm_exit();
}