-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 15 Dec 2008 17:38:15 +0100
"Massimiliano Calamelli" <mcalame...@gmail.com> wrote:

> Uhm, bad programmer, something is wrong in the patch :(
> I'll try to send a better patch, anyway now the problem is known.
> 
> Massimiliano

Ok, the attached looks better.

Ciao

Massimiliano
- -- 
Massimiliano Calamelli
http://mcalamelli.netsons.org
mcalame...@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFJRo5fleGEL56NNP4RAnJOAJ471En5Om8cyafnX4/eL4I0JuV5TACgxSmA
h3pVCqmVpvs/L7FRoRw/dbs=
=7x8H
-----END PGP SIGNATURE-----
Index: src/lib/efreet_menu.c
===================================================================
--- src/lib/efreet_menu.c       (revisione 38149)
+++ src/lib/efreet_menu.c       (copia locale)
@@ -557,12 +557,25 @@
     eina_stringshare_shutdown();
 }
 
+/**
+ * @param name The internal name of the menu
+ * @return Returns the Efreet_Menu on success or
+ * NULL on failure
+ * @brief Creates a new menu
+ */
 EAPI Efreet_Menu *
-efreet_menu_new(void)
+efreet_menu_new(const char *name)
 {
     Efreet_Menu *menu;
+
+    if (!name)
+    {
+        printf("Error creating a new menu, name is missing\n");
+        return 0;
+    }
     menu = efreet_menu_entry_new();
     menu->type = EFREET_MENU_ENTRY_MENU;
+    menu->name = eina_stringshare_add(name);
     return menu;
 }
 
Index: src/lib/efreet_menu.h
===================================================================
--- src/lib/efreet_menu.h       (revisione 38149)
+++ src/lib/efreet_menu.h       (copia locale)
@@ -51,7 +51,7 @@
 
 EAPI int              efreet_menu_kde_legacy_init(void);
 
-EAPI Efreet_Menu     *efreet_menu_new(void);
+EAPI Efreet_Menu     *efreet_menu_new(const char *name);
 EAPI void             efreet_menu_file_set(const char *file);
 EAPI Efreet_Menu     *efreet_menu_get(void);
 EAPI Efreet_Menu     *efreet_menu_parse(const char *path);
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to