This breaks the 'Open' function. E will always asks which program to use
to open a certain file now.

On Fri, 2009-04-03 at 15:41 -0700, Enlightenment SVN wrote:
> Log:
>   
>   Patch by Sergey to apply efm window geometry if found in the custom file.
>   Thanks :)
> Author:       davemds
> Date:         2009-04-03 15:41:31 -0700 (Fri, 03 Apr 2009)
> New Revision: 39847
> 
> Modified:
>   trunk/e/src/modules/fileman/e_fwin.c 
> 
> Modified: trunk/e/src/modules/fileman/e_fwin.c
> ===================================================================
> --- trunk/e/src/modules/fileman/e_fwin.c      2009-04-03 22:05:18 UTC (rev 
> 39846)
> +++ trunk/e/src/modules/fileman/e_fwin.c      2009-04-03 22:41:31 UTC (rev 
> 39847)
> @@ -149,8 +149,52 @@
>  e_fwin_new(E_Container *con, const char *dev, const char *path)
>  {
>     E_Fwin *fwin;
> +   E_Fm2_Custom_File *cf;
> +   char buf[PATH_MAX];
> +   int x, y, w, h;
>  
>     fwin = _e_fwin_new(con, dev, path);
> +
> +   if (!fwin) return;
> +
> +   snprintf(buf, sizeof(buf), "dir::%s", e_fm2_real_path_get(fwin->fm_obj));
> +   cf = e_fm2_custom_file_get(buf);
> +   if ((cf) && (cf->geom.valid))
> +     {
> +     x = cf->geom.x;
> +     y = cf->geom.y;
> +     w = cf->geom.w;
> +     h = cf->geom.h;
> +
> +     /* checking width and height */
> +     if (w < 24)
> +       w = 280 * e_scale;
> +     else if (w > fwin->win->border->zone->w)
> +       w = fwin->win->border->zone->w;
> +     if (h < 24)
> +       h = 200 * e_scale;
> +     else if (h > fwin->win->border->zone->h)
> +       h = fwin->win->border->zone->h;
> +
> +     /* checking left-top corner */
> +     if (x < fwin->win->border->zone->x)
> +       x = fwin->win->border->zone->x + fwin->win->border->client_inset.l;
> +     if (y < fwin->win->border->zone->y)
> +       y = fwin->win->border->zone->y + fwin->win->border->client_inset.t;
> +
> +     /* checking right-bottom corner */
> +     if ((fwin->win->border->zone->x + fwin->win->border->zone->w) < (x + w))
> +       x = fwin->win->border->zone->x + fwin->win->border->zone->w - w - 
> fwin->win->border->client_inset.l;
> +     if ((fwin->win->border->zone->y + fwin->win->border->zone->h) < (y + h))
> +       y = fwin->win->border->zone->y + fwin->win->border->zone->h - h - 
> fwin->win->border->client_inset.t;
> +
> +     e_win_move_resize(fwin->win,
> +                       x - fwin->win->border->client_inset.l,
> +                       y - fwin->win->border->client_inset.t,
> +                       w, h);
> +     }
> +
> +   fwin->geom_save_ready = 1;
>  }
>  
>  EAPI void
> @@ -352,14 +396,13 @@
>           if (ere->finished)
>              snprintf(buf, sizeof(buf), "Delete done");
>           else
> -            snprintf(buf, sizeof(buf), "Deleting %s (eta: %d sec", total, 
> ere->eta);
> +            snprintf(buf, sizeof(buf), "Deleting files...");
>           break;
>        default:
>           edje_object_signal_emit(o, "e,action,icon,unknow", "e");
> -         snprintf(buf, sizeof(buf), "Unknow operation from slave %d)", 
> ere->id);
> +         snprintf(buf, sizeof(buf), "Unknow operation from slave %d", 
> ere->id);
>           break;
>     }
> -
>     edje_object_part_text_set(o, "e.text.label1", buf);
>  
>     if (ere->needs_attention)
> @@ -394,7 +437,7 @@
>     if (!(ere->op == E_FM_OP_COPY || ere->op == E_FM_OP_MOVE ||
>           ere->op == E_FM_OP_REMOVE))
>        return ECORE_CALLBACK_RENEW;
> -   
> +
>     o = edje_object_add(e_win_evas_get(fwin->win));
>     e_theme_edje_object_set(o, "base/theme/fileman",
>                             "e/fileman/default/progress");
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn


------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to