Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_borders.c 


Log Message:
Allow multiple border dialogs to be open, but only allow one per-app.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_borders.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_int_config_borders.c      29 Nov 2006 20:40:27 -0000      1.7
+++ e_int_config_borders.c      30 Nov 2006 10:34:59 -0000      1.8
@@ -38,7 +38,16 @@
    E_Config_Dialog *cfd;
    E_Config_Dialog_View *v;
 
-   if (e_config_dialog_find("E", "_config_border_border_style_dialog")) return 
NULL;
+   cfd = e_config_dialog_get("E", "_config_border_border_style_dialog");
+   if (cfd) 
+     {
+       E_Border *bd2;
+       
+       bd2 = cfd->data;
+       if (!e_util_strcmp(e_border_name_get(bd2), e_border_name_get(bd)))
+         return NULL;
+     }
+   
    v = _config_view_new();
    if (!v) return NULL;
    cfd = e_config_dialog_new(bd->zone->container, 
@@ -171,12 +180,13 @@
    Evas_List *borders, *l;
    int n, sel = 0;
    char *tmp;
+   char buf[4096];
    
    if (cfdata->border)
      tmp = strdup(cfdata->border->client.border.name);
    else
      tmp = strdup(e_config->theme_default_border_style);
-   
+
    o = e_widget_list_add(evas, 0, 0);
    of = e_widget_framelist_add(evas, _("Default Border Style"), 0);
    ol = e_widget_ilist_add(evas, 80, 48, &(cfdata->bordername));



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to