Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/dialogs


Modified Files:
        etk_properties_dialog.c 


Log Message:
* A bit more properties dialog work

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/dialogs/etk_properties_dialog.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- etk_properties_dialog.c     4 Apr 2006 00:09:27 -0000       1.1
+++ etk_properties_dialog.c     4 Apr 2006 03:48:35 -0000       1.2
@@ -4,13 +4,32 @@
 typedef struct _Entropy_Etk_Properties_Dialog Entropy_Etk_Properties_Dialog;
 struct _Entropy_Etk_Properties_Dialog {
        Etk_Widget* window;
+       Entropy_Generic_File* file;
 };
 
+Etk_Bool _etk_window_deleted_cb (Etk_Object * object, void *data) 
+{
+       Entropy_Etk_Properties_Dialog* dialog= data;
+
+       /*Remove the file reference*/
+       entropy_core_file_cache_remove_reference(dialog->file);
+
+       etk_object_destroy(ETK_OBJECT(dialog->window));
+       entropy_free(dialog);
+
+       return ETK_TRUE;
+}
+
 void etk_properties_dialog_new(Entropy_Generic_File* file) 
 {
        Entropy_Etk_Properties_Dialog* dialog;
 
+       /*First up, add a reference to this file*/
+       printf("Adding reference to '%s/%s'- > %s\n", file->path, 
file->filename, file->md5);
+       entropy_core_file_cache_add_reference(file->md5);
+
        dialog = entropy_malloc(sizeof(Entropy_Etk_Properties_Dialog));
+       dialog->file = file;
 
        dialog->window = etk_window_new();
        etk_window_title_set(ETK_WINDOW(dialog->window), file->filename);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to