Enlightenment CVS committal

Author  : titan
Project : e17
Module  : proto

Dir     : e17/proto/ephoto/src


Modified Files:
        ephoto.c 


Log Message:
More work.

===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -3 -r1.71 -r1.72
--- ephoto.c    6 Sep 2006 03:02:02 -0000       1.71
+++ ephoto.c    6 Sep 2006 20:02:05 -0000       1.72
@@ -5,41 +5,22 @@
 int
 main(int argc, char **argv)
 {
- FILE *file;
- char *home;
  const char *icon_theme_path;
- char ephoto_path[PATH_MAX];
- char ephoto_complete[PATH_MAX];
- m = NULL;
  
+ m = NULL;
  if (!ewl_init(&argc, argv))
  {
   printf("Unable to init ewl\n");
   return 1;
  }
 
- home = getenv("HOME");
- current_directory = strdup(home);
- snprintf(ephoto_path, PATH_MAX, "%s/.ephoto", home);
- snprintf(ephoto_complete, PATH_MAX, "%s/Complete Library", ephoto_path);
+ current_directory = strdup(getenv("HOME"));
  m = calloc(1, sizeof(Main));
- 
- if (!ecore_file_exists(ephoto_path)) ecore_file_mkdir(ephoto_path);
- 
- if (!ecore_file_exists(ephoto_complete))
- {
-  file = fopen(ephoto_complete, "w");
-  if (file != NULL)
-  {
-   fputs("#Ephoto Complete Library", file);
-   fclose(file);
-  }
- }
-        
+
  m->win = ewl_window_new();
  ewl_window_title_set(EWL_WINDOW(m->win), "Ephoto");
  ewl_window_name_set(EWL_WINDOW(m->win), "Ephoto");
- ewl_object_size_request(EWL_OBJECT(m->win), 615, 470);
+ ewl_object_size_request(EWL_OBJECT(m->win), 640, 480);
  ewl_callback_append(m->win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
  ewl_widget_show(m->win);
 
@@ -97,8 +78,9 @@
  ewl_widget_show(m->image);
 
  m->text = ewl_text_new();
- ewl_text_text_set(EWL_TEXT(m->text), "Location:");
+ ewl_text_text_set(EWL_TEXT(m->text), "  Location:");
  ewl_object_alignment_set(EWL_OBJECT(m->text), EWL_FLAG_ALIGN_CENTER);
+ ewl_object_maximum_size_set(EWL_OBJECT(m->text), 55, 15);
  ewl_container_child_append(EWL_CONTAINER(m->hbox), m->text);
  ewl_widget_show(m->text);
 
@@ -168,15 +150,18 @@
  ewl_widget_show(m->viewer);
 
  m->viewer_freebox = ewl_hfreebox_new();
- ewl_freebox_layout_type_set(EWL_FREEBOX(m->viewer_freebox), 
EWL_FREEBOX_LAYOUT_AUTO);
+ ewl_freebox_layout_type_set(EWL_FREEBOX(m->viewer_freebox), 
+                       EWL_FREEBOX_LAYOUT_AUTO);
  ewl_container_child_append(EWL_CONTAINER(m->viewer), m->viewer_freebox);
  ewl_object_fill_policy_set(EWL_OBJECT(m->viewer_freebox), EWL_FLAG_FILL_ALL);
  ewl_widget_show(m->viewer_freebox);
 
  ewl_callback_append(m->albums, EWL_CALLBACK_SHOW, populate_albums, NULL);
- ewl_callback_append(m->browser, EWL_CALLBACK_SHOW, populate_browser, home);
- ewl_widget_name_set(m->browser, current_directory);
- populate_images(m->browser, NULL, NULL);
+ ewl_callback_append(m->browser, EWL_CALLBACK_SHOW, populate_browser, 
+                       current_directory);
+ ewl_widget_name_set(m->viewer_freebox, current_directory);
+ ewl_callback_append(m->viewer_freebox, EWL_CALLBACK_SHOW, 
+                       populate_images, NULL);
  
  ewl_main();
  return 0;



-------------------------------------------------------------------------
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