raster pushed a commit to branch master.

commit a85c87956ed9005dafb29e1838b2df68a43f4d73
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Aug 5 18:45:27 2013 +0900

    fix up elm thumb docs/examples.
---
 src/examples/thumb_example_01.c | 13 -------------
 src/lib/elm_thumb_common.h      | 43 +++--------------------------------------
 2 files changed, 3 insertions(+), 53 deletions(-)

diff --git a/src/examples/thumb_example_01.c b/src/examples/thumb_example_01.c
index f8d3b23..c1d1374 100644
--- a/src/examples/thumb_example_01.c
+++ b/src/examples/thumb_example_01.c
@@ -27,9 +27,6 @@ elm_main(int argc, char **argv)
    Evas_Object *win;
    Evas_Object *thumb;
    char buf[PATH_MAX];
-#ifdef ELM_ETHUMB   
-   Ethumb_Client *client;
-#endif
 
    elm_need_ethumb();
 
@@ -39,16 +36,6 @@ elm_main(int argc, char **argv)
    win = elm_win_util_standard_add("thumb", "Thumbnailer");
    elm_win_autodel_set(win, EINA_TRUE);
 
-#ifdef ELM_ETHUMB
-   client = elm_thumb_ethumb_client_get();
-   if (!client)
-     {
-        printf("error: could not get Ethumb client.\n");
-        return 1;
-     }
-   ethumb_client_size_set(client, 160, 160);
-#endif
-
    thumb = elm_thumb_add(win);
 
    evas_object_smart_callback_add(thumb, "generate,start", 
_generation_started_cb, NULL);
diff --git a/src/lib/elm_thumb_common.h b/src/lib/elm_thumb_common.h
index 4718da7..484f1a1 100644
--- a/src/lib/elm_thumb_common.h
+++ b/src/lib/elm_thumb_common.h
@@ -19,46 +19,9 @@ typedef enum
  *
  * @return Ethumb_Client instance or NULL.
  *
- * This must be called before the objects are created to be sure no object is
- * visible and no generation started.
- *
- * Example of usage:
- *
- * @code
- * #include <Elementary.h>
- * #ifndef ELM_LIB_QUICKLAUNCH
- * EAPI_MAIN int
- * elm_main(int argc, char **argv)
- * {
- *    Ethumb_Client *client;
- *
- *    elm_need_ethumb();
- *
- *    // ... your code
- *
- *    client = elm_thumb_ethumb_client_get();
- *    if (!client)
- *      {
- *         ERR("could not get ethumb_client");
- *         return 1;
- *      }
- *    ethumb_client_size_set(client, 100, 100);
- *    ethumb_client_crop_align_set(client, 0.5, 0.5);
- *    // ... your code
- *
- *    // Create elm_thumb objects here
- *
- *    elm_run();
- *    elm_shutdown();
- *    return 0;
- * }
- * #endif
- * ELM_MAIN()
- * @endcode
- *
- * @note There's only one client handle for Ethumb, so once a configuration
- * change is done to it, any other request for thumbnails (for any thumbnail
- * object) will use that configuration. Thus, this configuration is global.
+ * The ethumb client handle returned may or may not be NULL. It may or may
+ * not survive into the future (ethumbd may become disconnected). Do not use
+ * this unless you know what you are doing.
  *
  * @ingroup Thumb
  */

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

Reply via email to