Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : screenshot
Dir : e_modules/screenshot
Modified Files:
e_mod_config.c
Log Message:
Some fixes for screenshot config dialog.
Trap for an existing config dialog and return, so we don't get 2 config
dialogs for the same instance.
===================================================================
RCS file: /cvs/e/e_modules/screenshot/e_mod_config.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- e_mod_config.c 11 Jan 2007 10:07:11 -0000 1.35
+++ e_mod_config.c 13 Jan 2007 00:18:51 -0000 1.36
@@ -54,6 +54,8 @@
E_Container *con;
char buf[4096];
+ if (e_config_dialog_find("Screenshot", "_screenshot_config_dialog")) return;
+
v = E_NEW (E_Config_Dialog_View, 1);
/* methods */
@@ -66,12 +68,12 @@
snprintf (buf, sizeof (buf), "%s/module.edj",
e_module_dir_get (ss_config->module));
- /* create config diaolg */
- con = e_container_current_get (e_manager_current_get ());
- cfd =
- e_config_dialog_new (con, D_ ("Screenshot Configuration"), "ScreenShot",
"_e_modules_screenshot_config_dialog", buf, 0, v, ci);
- ss_config->config_dialog = cfd;
+ con = e_container_current_get (e_manager_current_get ());
+ cfd =
+ e_config_dialog_new (con, D_ ("Screenshot Configuration"), "Screenshot",
+ "_screenshot_config_dialog", buf, 0, v, ci);
+ ss_config->config_dialog = cfd;
}
static void
@@ -373,8 +375,7 @@
E_Config_Dialog_Data *cfdata;
cfdata = data;
- if (!cfdata)
- return;
+ if (!cfdata) return;
if (!cfdata->prompt)
{
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs