Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_int_border_menu.c 


Log Message:


always write icon file with edje_cc first.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -3 -r1.135 -r1.136
--- e_apps.c    14 May 2006 01:13:42 -0000      1.135
+++ e_apps.c    14 May 2006 03:49:46 -0000      1.136
@@ -1210,13 +1210,13 @@
    unsigned char tmp[1];
    int img;
 
-   if ((!a->path) || (!ecore_file_exists(a->path)))
-     {
+//   if ((!a->path) || (!ecore_file_exists(a->path)))
+//     {
        _e_app_new_save(a);
-       img = 0;
-     }
-   else
-     img = 1;
+//     img = 0;
+//     }
+//   else
+//     img = 1;
 
    /* get our current language */
    lang = e_intl_language_alias_get();
@@ -1276,6 +1276,7 @@
      tmp[0] = 0;   
    eet_write(ef, "app/info/wait_exit", tmp, 1, 0);
 
+   /*
    if ((a->image) && (img))
      {
        int alpha;
@@ -1298,7 +1299,6 @@
          a->height = EAP_MIN_HEIGHT;   
        if ((iw > 0) && (ih > 0))
          {
-            /* we need to change the sizes */
             ecore_evas_resize(buf, a->width, a->height);
             evas_object_image_fill_set(im, 0, 0, a->width, a->height);
             evas_object_resize(im, a->height, a->width);
@@ -1308,6 +1308,7 @@
             eet_data_image_write(ef, "images/0", (void *)data, a->width, 
a->height, alpha, 1, 0, 0);
          }
      }
+    */
    eet_close(ef);
    if (a->parent)
      {
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_border_menu.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_int_border_menu.c 14 May 2006 02:08:36 -0000      1.17
+++ e_int_border_menu.c 14 May 2006 03:49:46 -0000      1.18
@@ -526,6 +526,8 @@
 {
    E_App *a;
    E_Border *bd;
+   char *bname = NULL, *bclass = NULL;
+   
    
    bd = data;
    a = bd->app;
@@ -534,13 +536,18 @@
        a = e_app_empty_new(NULL);
        if (a)
          {
-            if (bd->client.icccm.name) a->win_name = 
evas_stringshare_add(bd->client.icccm.name);
-            if (bd->client.icccm.class) a->win_class = 
evas_stringshare_add(bd->client.icccm.class);
+            bname = bd->client.icccm.name;
+            if ((bname) && (strlen(bname) < 1)) bname = NULL;
+            bclass = bd->client.icccm.class;
+            if ((bclass) && (strlen(bclass) < 1)) bclass = NULL;
+            
+            if (bname) a->win_name = evas_stringshare_add(bname);
+            if (bclass) a->win_class = evas_stringshare_add(bclass);
             if (bd->client.icccm.window_role)
               a->win_role = evas_stringshare_add(bd->client.icccm.window_role);
-            if (bd->client.icccm.class) a->icon_class = 
evas_stringshare_add(bd->client.icccm.class);
-            if (bd->client.icccm.class) a->name = 
evas_stringshare_add(bd->client.icccm.class);
-            if (bd->client.icccm.name) a->exe = 
evas_stringshare_add(bd->client.icccm.name);
+            if (bclass) a->icon_class = evas_stringshare_add(bclass);
+            if (bclass) a->name = evas_stringshare_add(bclass);
+            if (bname) a->exe = evas_stringshare_add(bname);
             if (bd->client.netwm.startup_id > 0)
               a->startup_notify = 1;
             bd->app = a;
@@ -552,6 +559,19 @@
      e_eap_edit_show(m->zone->container, a->orig);
    else
      e_eap_edit_show(m->zone->container, a);
+   if ((!bname) && (!bclass))
+     {
+       e_util_dialog_show(_("Incomplete Window Properties"),
+                          _("The window you are creating an icon for<br>"
+                            "does not contain window name and class<br>"
+                            "properties, so the needed properties for<br>"
+                            "the icon so that it will be used for this<br>"
+                            "window cannot be guessed. You will need to<br>"
+                            "use the window title instead. This will only<br>"
+                            "work if the window title is the same at<br>"
+                            "the time the window starts up, and does not<br>"
+                            "change."));
+     }
 }
 
 static void




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to