Enlightenment CVS committal
Author : englebass
Project : e_modules
Module : news
Dir : e_modules/news/src/module
Modified Files:
e_mod_main.c e_mod_main.h news_config.c
Log Message:
Implement id_new()
===================================================================
RCS file: /cvs/e/e_modules/news/src/module/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c 16 Sep 2007 01:46:50 -0000 1.5
+++ e_mod_main.c 16 Sep 2007 03:31:41 -0000 1.6
@@ -20,12 +20,13 @@
static void _gc_orient(E_Gadcon_Client *gcc);
static char *_gc_label(void);
static Evas_Object *_gc_icon(Evas *evas);
+static const char *_gc_id_new(void);
static const E_Gadcon_Client_Class _gadcon_class =
{
GADCON_CLIENT_CLASS_VERSION,
"news",
{
- _gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon
+ _gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon, _gc_id_new,
NULL
},
E_GADCON_CLIENT_STYLE_INSET
};
@@ -242,4 +243,19 @@
o = edje_object_add(evas);
edje_object_file_set(o, news_theme_file_get(NULL), "icon");
return o;
+}
+
+static const char *
+_gc_id_new(void)
+{
+ News_Config_Item *nic;
+
+ nic = news_config_item_add(NULL);
+ return nic->id;
+}
+
+const char *
+_gc_name(void)
+{
+ return _gadcon_class.name;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs