Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/estickies
Dir : e17/apps/estickies/src/bin
Modified Files:
plugin.c stickies.c stickies.h theme_chooser.c
Log Message:
Lots of cleanup for estickies. Remove unused variables, fix some compiler
warnings.
===================================================================
RCS file: /cvs/e/e17/apps/estickies/src/bin/plugin.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- plugin.c 5 Sep 2007 17:17:02 -0000 1.2
+++ plugin.c 7 Sep 2007 18:00:57 -0000 1.3
@@ -4,6 +4,7 @@
static Ecore_Hash *_e_plugin_loaded;
static int _e_plugin_unload_from_ptr(Ecore_Plugin *plugin);
+int _e_plugin_unload(const char *plugin_name);
/* initialize the plugin subsystem */
int _e_plugin_init()
@@ -40,8 +41,6 @@
key = ecore_list_current(keys);
while (key)
{
- Ecore_Plugin *plugin = NULL;
-
key = ecore_list_next(keys);
_e_plugin_unload(key);
}
===================================================================
RCS file: /cvs/e/e17/apps/estickies/src/bin/stickies.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- stickies.c 7 Sep 2007 17:48:57 -0000 1.18
+++ stickies.c 7 Sep 2007 18:00:57 -0000 1.19
@@ -14,8 +14,10 @@
static void _e_sticky_move_cb(Etk_Object *object, void *data);
static void _e_sticky_resize_cb(Etk_Object *object, void *data);
static int _e_sticky_delete_event_cb(Etk_Object *object, void *data);
+/*
static void _e_sticky_focus_in_cb(Etk_Object *object, void *data);
static void _e_sticky_focus_out_cb(Etk_Object *object, void *data);
+*/
static void _e_sticky_sticky_cb(Etk_Object *object, const char *property_name,
void *data);
static void _e_sticky_delete_confirm_cb(Etk_Object *obj, int response_id, void
*data);
static void _e_sticky_selection_text_request_cb(Etk_Object *object, void
*event, void *data);
@@ -640,7 +642,7 @@
}
void
-_e_sticky_theme_apply(E_Sticky *s, char *theme)
+_e_sticky_theme_apply(E_Sticky *s, const char *theme)
{
char theme_file[PATH_MAX];
@@ -674,7 +676,7 @@
}
void
-_e_sticky_theme_apply_all(char *theme)
+_e_sticky_theme_apply_all(const char *theme)
{
Evas_List *l;
@@ -704,7 +706,7 @@
Etk_Selection_Event *ev = event;
Etk_Textblock_Iter *cursor;
Etk_Textblock_Iter *selection;
- E_Sticky *s;
+ E_Sticky *s = data;
if(!(ev = event) || (ev->type != ETK_SELECTION_TEXT))
return;
===================================================================
RCS file: /cvs/e/e17/apps/estickies/src/bin/stickies.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- stickies.h 26 Mar 2007 23:18:54 -0000 1.6
+++ stickies.h 7 Sep 2007 18:00:57 -0000 1.7
@@ -116,8 +116,8 @@
void _e_sticky_load_from(E_Sticky *s);
void _e_sticky_lock_set(E_Sticky *s, Etk_Bool on);
void _e_sticky_properties_set(E_Sticky *s);
-void _e_sticky_theme_apply(E_Sticky *s, char *theme);
-void _e_sticky_theme_apply_all(char *theme);
+void _e_sticky_theme_apply(E_Sticky *s, const char *theme);
+void _e_sticky_theme_apply_all(const char *theme);
void _e_sticky_export_to(E_Sticky *s);
void _e_sticky_delete_confirm(E_Sticky *s);
===================================================================
RCS file: /cvs/e/e17/apps/estickies/src/bin/theme_chooser.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- theme_chooser.c 25 Jul 2007 17:00:53 -0000 1.5
+++ theme_chooser.c 7 Sep 2007 18:00:57 -0000 1.6
@@ -207,7 +207,7 @@
{
Etk_Tree_Row *row;
char *icol_string;
-
+
if(!_e_sticky_exists(s))
return;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs