I am very new to all of this, so help me if I am misunderstanding here.  I was 
working on an example out of the efl cookbook, and it seems to me that the ewl 
filedialog is broken.

In the code, I register the following callback:
  fd = ewl_filedialog_new(EWL_FILEDIALOG_TYPE_OPEN);
  ewl_callback_append(fd, EWL_CALLBACK_VALUE_CHANGED, open_file_cb, data);

open_file_cb looks like so:
static void open_file_cb(Ewl_Widget *win, void *ev, void *data)
{
  char *text = NULL;
  char *filename = (char *)ev;
  printf("DEBUG: Filename: %s\n", filename);

  text = read_file((char *)ev);

  if (text)
    {
      ewl_text_text_set(EWL_TEXT(data), text);
      free(text);
    }
  text = NULL;

  ewl_widget_hide(fd_win);
}

>From what I have read (char *)ev is supposed to give the filename that was 
>selected in the filedialog.  When I print it out, this is what I always get:
DEBUG: Filename: ûÿÿÿ

Is this broken, or am I just missing something?

Thanks,
Jason


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to