Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        ewl_icon_local_viewer.c 


Log Message:
Background setting /removing functioning

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_icon_local_viewer.c     21 Oct 2005 11:24:45 -0000      1.2
+++ ewl_icon_local_viewer.c     21 Oct 2005 12:39:15 -0000      1.3
@@ -215,6 +215,14 @@
 
 /*---------------------------*/
 /*Functions to handle custom background setting*/
+void ewl_iconbox_background_remove_cb(Ewl_Widget *w , void *ev, void 
*user_data ) {
+       entropy_gui_component_instance* instance = user_data;
+       entropy_icon_viewer* viewer = instance->data;
+
+       entropy_config_str_set("iconbox_viewer", viewer->current_dir,NULL);
+}
+
+
 void ewl_iconbox_background_set_file_cb(Ewl_Widget *w , void *ev, void 
*user_data ) {
         Ewl_Filedialog_Event *e;
        entropy_gui_component_instance* instance = user_data;
@@ -449,6 +457,13 @@
        ewl_callback_append(context, EWL_CALLBACK_MOUSE_DOWN, 
ewl_iconbox_background_set_cb, instance);
        ewl_widget_show(context);
 
+       /*Add some context menu items*/
+       context = ewl_menu_item_new();
+       ewl_menu_item_text_set(EWL_MENU_ITEM(context), "Remove current custom 
background");
+       ewl_iconbox_context_menu_item_add(EWL_ICONBOX(viewer->iconbox), 
context);
+       ewl_callback_append(context, EWL_CALLBACK_MOUSE_DOWN, 
ewl_iconbox_background_remove_cb, instance);
+       ewl_widget_show(context);
+
        
 
        /*Init the hash*/




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to