Enlightenment CVS committal
Author : morlenxus
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/conf_shelves
Modified Files:
e_int_config_shelf.c
Log Message:
Shelf delete without confirmation dialog when disabled in the dialog settings.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/conf_shelves/e_int_config_shelf.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_int_config_shelf.c 18 Dec 2007 01:49:45 -0000 1.3
+++ e_int_config_shelf.c 24 Jan 2008 00:55:16 -0000 1.4
@@ -261,6 +261,19 @@
if (!d->es) return;
e_object_ref(E_OBJECT(d->es));
+ if (e_config->cnfmdlg_disabled)
+ {
+ if (e_object_is_del(E_OBJECT(d->es))) return;
+ e_shelf_unsave(d->es);
+ e_object_del(E_OBJECT(d->es));
+ e_config_save_queue();
+
+ e_object_unref(E_OBJECT(d->es));
+ _ilist_fill(d->cfdata);
+ E_FREE(d);
+ return;
+ }
+
snprintf(buf, sizeof(buf), _("You requested to delete \"%s\".<br><br>"
"Are you sure you want to delete this shelf?"),
d->cfdata->cur_shelf);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs