Enlightenment CVS committal

Author  : titan
Project : e17
Module  : apps/ephoto

Dir     : e17/apps/ephoto/src/bin


Modified Files:
        ephoto_database.c ephoto_exif.c ephoto_gui.c ephoto_imaging.c 
        ephoto_main.c ephoto_single_view.c ephoto_utils.c 


Log Message:
Formatting++

===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_database.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ephoto_database.c   11 Mar 2007 09:19:53 -0000      1.7
+++ ephoto_database.c   15 May 2007 17:09:26 -0000      1.8
@@ -45,7 +45,8 @@
                sqlite3_exec(db, "CREATE TABLE album_images( "
                                 "image_id INTEGER NOT NULL, "
                                 "album_id INTEGER NOT NULL);", 0, 0, 0);
-               ephoto_db_add_album(db, "Complete Library", "Contains every 
tagged image!");
+               ephoto_db_add_album(db, "Complete Library", 
+                                       "Contains every tagged image!");
        }
        else 
        {
@@ -85,8 +86,9 @@
 {
        char command[PATH_MAX];
 
-       snprintf(command, PATH_MAX, "INSERT or IGNORE INTO albums(name, 
description) "
-                                    "VALUES('%s', '%s');", name, description);
+       snprintf(command, PATH_MAX, 
+                         "INSERT or IGNORE INTO albums(name, description) "
+                          "VALUES('%s', '%s');", name, description);
        sqlite3_exec(db, command, 0, 0, 0);
 
        return;
@@ -97,11 +99,15 @@
 {
        char command[PATH_MAX];
 
-       snprintf(command, PATH_MAX, "DELETE FROM albums WHERE name = '%s';", 
name);
+       snprintf(command, PATH_MAX, "DELETE FROM albums WHERE name = '%s';", 
+                                                                       name);
        sqlite3_exec(db, command, 0, 0, 0);
-       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
name);
+       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';",
+                                                                       name);
        sqlite3_exec(db, command, get_album_id, 0, 0);
-       snprintf(command, PATH_MAX, "DELETE FROM album_images WHERE album_id = 
'%d';", album_id);
+       snprintf(command, PATH_MAX, 
+                       "DELETE FROM album_images WHERE album_id = '%d';", 
+                                                               album_id);
        sqlite3_exec(db, command, 0, 0, 0);
 
        return;
@@ -115,19 +121,24 @@
        snprintf(command, PATH_MAX, "INSERT or IGNORE INTO images(name, path) "
                                    "VALUES('%s', '%s');", name, path);
        sqlite3_exec(db, command, 0, 0, 0);
-       snprintf(command, PATH_MAX, "SELECT id FROM images WHERE path = '%s';", 
path);
+       snprintf(command, PATH_MAX, "SELECT id FROM images WHERE path = '%s';",
+                                                                        path);
        sqlite3_exec(db, command, get_image_id, 0, 0);
-       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
album);
+       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
+                                                                       album);
        sqlite3_exec(db, command, get_album_id, 0, 0);
-       snprintf(command, PATH_MAX, "INSERT or IGNORE into 
album_images(image_id, album_id) "
-                                   "VALUES('%d', '%d');", image_id, album_id);
+       snprintf(command, PATH_MAX, 
+               "INSERT or IGNORE into album_images(image_id, album_id) "
+               "VALUES('%d', '%d');", image_id, album_id);
        sqlite3_exec(db, command, 0, 0, 0);
 
        /*This is to make sure the complete library has all images*/
-       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = 
'Complete Library';");
+       snprintf(command, PATH_MAX, 
+               "SELECT id FROM albums WHERE name = 'Complete Library';");
        sqlite3_exec(db, command, get_album_id, 0, 0);
-       snprintf(command, PATH_MAX, "INSERT into album_images(image_id, 
album_id) "
-                                   "VALUES('%d', '%d');", image_id, album_id);
+       snprintf(command, PATH_MAX, 
+                         "INSERT into album_images(image_id, album_id) "
+                         "VALUES('%d', '%d');", image_id, album_id);
        sqlite3_exec(db, command, 0, 0, 0);
 
        return;
@@ -138,12 +149,15 @@
 {
        char command[PATH_MAX];
 
-       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
album);
+       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
+                                                                       album);
        sqlite3_exec(db, command, get_album_id, 0, 0);
-       snprintf(command, PATH_MAX, "SELECT id FROM images WHERE path = '%s';", 
path);
+       snprintf(command, PATH_MAX, "SELECT id FROM images WHERE path = '%s';", 
+                                                                       path);
        sqlite3_exec(db, command, get_image_id, 0, 0);
        snprintf(command, PATH_MAX, "DELETE FROM album_images WHERE "
-                                   "image_id = '%d' AND album_id = '%d';", 
image_id, album_id);
+                                   "image_id = '%d' AND album_id = '%d';", 
+                                   image_id, album_id);
        sqlite3_exec(db, command, 0, 0, 0);
        return;
 }      
@@ -223,9 +237,12 @@
        images_list = ecore_dlist_new();
        image_ids = ecore_list_new();
 
-       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
album);
+       snprintf(command, PATH_MAX, "SELECT id FROM albums WHERE name = '%s';", 
+                                                                       album);
         sqlite3_exec(db, command, get_album_id, 0, 0);
-       snprintf(command, PATH_MAX, "SELECT image_id FROM album_images WHERE 
album_id = '%d';", album_id);
+       snprintf(command, PATH_MAX, 
+               "SELECT image_id FROM album_images WHERE album_id = '%d';", 
+                                                               album_id);
        sqlite3_exec(db, command, list_image_ids, 0, 0);
 
        while(!ecore_list_is_empty(image_ids))
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_exif.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ephoto_exif.c       14 May 2007 17:05:29 -0000      1.17
+++ ephoto_exif.c       15 May 2007 17:09:26 -0000      1.18
@@ -44,7 +44,8 @@
                        {
                                exif_entry_ref(entry);
                                exif_entry_get_value(entry, value, 
sizeof(value));
-                               ecore_hash_set(exif_info, strdup(title), 
strdup(value));
+                               ecore_hash_set(exif_info, strdup(title), 
+                                                         strdup(value));
                                exif_entry_unref(entry);
                        }
                }
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_gui.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ephoto_gui.c        14 May 2007 17:05:29 -0000      1.9
+++ ephoto_gui.c        15 May 2007 17:09:26 -0000      1.10
@@ -78,7 +78,8 @@
                if(w > 75 || h > 75)
                {
                        image = ewl_image_thumbnail_new();
-                       ewl_image_file_path_set(EWL_IMAGE(image), 
PACKAGE_DATA_DIR "/images/image.png");
+                       ewl_image_file_path_set(EWL_IMAGE(image), 
+                                       PACKAGE_DATA_DIR "/images/image.png");
                        if(img) 
ewl_image_thumbnail_request(EWL_IMAGE_THUMBNAIL(image), img);
                }
                else
@@ -194,7 +195,8 @@
                ewl_window_title_set(EWL_WINDOW(win), _(name));
                ewl_window_name_set(EWL_WINDOW(win), _(name));
         }
-       if(width && height) ewl_object_size_request(EWL_OBJECT(win), width, 
height);
+       if(width && height) ewl_object_size_request(EWL_OBJECT(win), width, 
+                                                                    height);
         if(cb) ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, cb, data);
         ewl_widget_show(win);
 
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_imaging.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ephoto_imaging.c    15 May 2007 16:44:07 -0000      1.7
+++ ephoto_imaging.c    15 May 2007 17:09:26 -0000      1.8
@@ -289,7 +289,8 @@
        {
                evas_object_image_size_set(EWL_IMAGE(image)->image, w, h);
                evas_object_image_data_set(EWL_IMAGE(image)->image, data);
-               evas_object_image_data_update_add(EWL_IMAGE(image)->image, 0, 
0, w, h);
+               evas_object_image_data_update_add(EWL_IMAGE(image)->image, 0, 0,
+                                                                        w, h);
        }
 }
 
@@ -301,11 +302,16 @@
 static void save_image(Ewl_Widget *w, void *event, void *data)
 {
        const char *file;
+       char *ext;
        char flags[PATH_MAX];
        pid_t pid;
 
        file = ewl_text_text_get(EWL_TEXT(data)); 
-       snprintf(flags, PATH_MAX, "quality=%i", 
(int)ewl_range_value_get(EWL_RANGE(qseek)));
+       
+       ext = strrchr(file, '.')+1;
+       printf("%s\n", ext);
+       snprintf(flags, PATH_MAX, "quality=%i", 
+                       (int)ewl_range_value_get(EWL_RANGE(qseek))*10);
 
        if(!file) return;
 
@@ -314,7 +320,8 @@
                pid = fork();
                if(pid == 0)
                {
-                       evas_object_image_save(EWL_IMAGE(em->eimage)->image, 
file, NULL, flags);
+                       evas_object_image_save(EWL_IMAGE(em->eimage)->image, 
+                                                       file, NULL, flags);
                        exit(0);
                }
        }
@@ -351,10 +358,14 @@
        ewl_object_alignment_set(EWL_OBJECT(hbox), EWL_FLAG_ALIGN_CENTER);
        ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_SHRINK);
 
-       button = add_button(hbox, "Save", PACKAGE_DATA_DIR 
"/images/stock_save.png", save_image, entry);
+       button = add_button(hbox, "Save", 
+                               PACKAGE_DATA_DIR "/images/stock_save.png", 
+                                                       save_image, entry);
        ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);  
 
-       button = add_button(hbox, "Close", PACKAGE_DATA_DIR 
"/images/dialog-close.png", close_dialog, NULL);
+       button = add_button(hbox, "Close", 
+                               PACKAGE_DATA_DIR "/images/dialog-close.png", 
+                                                       close_dialog, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
 
        return;
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_main.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- ephoto_main.c       15 May 2007 16:44:07 -0000      1.33
+++ ephoto_main.c       15 May 2007 17:09:26 -0000      1.34
@@ -115,7 +115,8 @@
                ephoto_db_add_album(db, album, description);
                ephoto_db_close(db);
                ewl_widget_destroy(win);
-               ewl_notebook_visible_page_set(EWL_NOTEBOOK(em->browser), 
em->atree);
+               ewl_notebook_visible_page_set(EWL_NOTEBOOK(em->browser), 
+                                                               em->atree);
                populate_albums(NULL, NULL, NULL);
        }
 }
@@ -140,10 +141,14 @@
        hbox = add_box(vbox, EWL_ORIENTATION_HORIZONTAL, 2);
        ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_SHRINK);
 
-       button = add_button(hbox, "Save", PACKAGE_DATA_DIR 
"/images/stock_save.png", save, window);
+       button = add_button(hbox, "Save", 
+                               PACKAGE_DATA_DIR "/images/stock_save.png", 
+                                                               save, window);
        ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
        
-       button = add_button(hbox, "Cancel", PACKAGE_DATA_DIR 
"/images/dialog-close.png", cancel, window);
+       button = add_button(hbox, "Cancel", 
+                               PACKAGE_DATA_DIR "/images/dialog-close.png", 
+                                                               cancel, window);
        ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
 }
 
@@ -166,11 +171,17 @@
 
        mb = add_menubar(vbox);
        menu = add_menu(mb, "File");
-       em->smi = add_menu_item(menu, "Save Image", PACKAGE_DATA_DIR 
"/images/stock_save.png", save_dialog, NULL);
+       em->smi = add_menu_item(menu, "Save Image", 
+                               PACKAGE_DATA_DIR "/images/stock_save.png", 
+                                                       save_dialog, NULL);
        ewl_widget_disable(em->smi);
-       mi = add_menu_item(menu, "Exit", PACKAGE_DATA_DIR "/images/exit.png", 
destroy, NULL);
+       mi = add_menu_item(menu, "Exit", 
+                               PACKAGE_DATA_DIR "/images/exit.png", 
+                                                       destroy, NULL);
        menu = add_menu(mb, "Albums");
-       mi = add_menu_item(menu, "Add Album", PACKAGE_DATA_DIR 
"/images/add.png", add_album, NULL);
+       mi = add_menu_item(menu, "Add Album", 
+                               PACKAGE_DATA_DIR "/images/add.png", 
+                                                       add_album, NULL);
 
        hbox = add_box(vbox, EWL_ORIENTATION_HORIZONTAL, 2);
        ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_ALL);
@@ -201,12 +212,14 @@
         em->atree = add_atree(em->browser);
        ewl_object_maximum_w_set(EWL_OBJECT(em->atree), 200);
        ewl_widget_name_set(em->atree, "Albums");
-       ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(em->browser), em->atree, 
_("Albums"));
+       ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(em->browser), em->atree, 
+                                                               _("Albums"));
 
        em->dtree = add_dtree(em->browser);
        ewl_object_maximum_w_set(EWL_OBJECT(em->dtree), 200);
        ewl_widget_name_set(em->dtree, "File System");
-       ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(em->browser), em->dtree, 
_("File System"));
+       ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(em->browser), em->dtree, 
+                                                       _("File System"));
 
        em->view_box = ewl_notebook_new();
        ewl_notebook_tabbar_visible_set(EWL_NOTEBOOK(em->view_box), 0);
@@ -227,19 +240,25 @@
        ewl_container_child_append(EWL_CONTAINER(vbox), em->toolbar);
        ewl_widget_show(em->toolbar);
 
-        button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/normal_view.png", show_normal_view, NULL);
+        button = add_button(em->toolbar, NULL, 
+                               PACKAGE_DATA_DIR "/images/normal_view.png", 
+                                                       show_normal_view, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
        ewl_attach_tooltip_text_set(button, _("Normal View"));
        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
        ewl_object_alignment_set(EWL_OBJECT(button), EWL_FLAG_ALIGN_CENTER);
 
-        button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/list_view.png", show_list_view, NULL);
+        button = add_button(em->toolbar, NULL, 
+                               PACKAGE_DATA_DIR "/images/list_view.png", 
+                                                       show_list_view, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
        ewl_attach_tooltip_text_set(button, _("List View"));      
        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
         ewl_object_alignment_set(EWL_OBJECT(button), EWL_FLAG_ALIGN_CENTER);
 
-       button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/image.png", show_single_view, NULL);
+       button = add_button(em->toolbar, NULL, 
+                               PACKAGE_DATA_DIR "/images/image.png", 
+                                                       show_single_view, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
        ewl_attach_tooltip_text_set(button, _("Single View"));
        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
@@ -249,23 +268,30 @@
        ewl_container_child_append(EWL_CONTAINER(em->toolbar), vsep);
        ewl_widget_show(vsep);
 
-        button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/get_exif.png", NULL, NULL);
+        button = add_button(em->toolbar, NULL, 
+                               PACKAGE_DATA_DIR "/images/get_exif.png", 
+                                                               NULL, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
         ewl_attach_tooltip_text_set(button, _("You do not have libexif 
0.6.13"));
         ewl_object_alignment_set(EWL_OBJECT(button), EWL_FLAG_ALIGN_LEFT);
         ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_HFILL);
 #ifdef BUILD_EXIF_SUPPORT
-        ewl_callback_append(button, EWL_CALLBACK_CLICKED, display_exif_dialog, 
NULL);
+        ewl_callback_append(button, EWL_CALLBACK_CLICKED, display_exif_dialog, 
+                                                                       NULL);
         ewl_attach_tooltip_text_set(button, _("View Exif Data"));
 #endif
 
-       button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/stock_fullscreen.png", window_fullscreen, NULL);
+       button = add_button(em->toolbar, NULL, 
+                       PACKAGE_DATA_DIR "/images/stock_fullscreen.png",
+                                                window_fullscreen, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
        ewl_attach_tooltip_text_set(button, _("Toggle Fullscreen"));
        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
         ewl_object_alignment_set(EWL_OBJECT(button), EWL_FLAG_ALIGN_CENTER);
 
-        button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/x-office-presentation.png", start_slideshow, NULL);
+        button = add_button(em->toolbar, NULL, 
+                       PACKAGE_DATA_DIR "/images/x-office-presentation.png", 
+                                                       start_slideshow, NULL);
        ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
        ewl_attach_tooltip_text_set(button, _("Start a Slideshow"));
        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
@@ -275,7 +301,9 @@
         ewl_container_child_append(EWL_CONTAINER(em->toolbar), vsep);
         ewl_widget_show(vsep);
 
-        button = add_button(em->toolbar, NULL, PACKAGE_DATA_DIR 
"/images/edit_view.png", show_edit_view, NULL);
+        button = add_button(em->toolbar, NULL, 
+                               PACKAGE_DATA_DIR "/images/edit_view.png", 
+                                                       show_edit_view, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 30, 30);
         ewl_attach_tooltip_text_set(button, _("Move to edit view"));
         ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
@@ -287,7 +315,8 @@
        em->current_directory = strdup(getenv("HOME"));
 
        populate_albums(NULL, NULL, NULL);
-       ewl_callback_append(em->browser, EWL_CALLBACK_VALUE_CHANGED, 
update_view, NULL);
+       ewl_callback_append(em->browser, EWL_CALLBACK_VALUE_CHANGED, 
+                                                       update_view, NULL);
 
        return;
 }
@@ -331,9 +360,11 @@
                 imagef = ecore_dlist_current(em->images);
                if(imagef)
                {
-                       thumb = add_image(em->fbox, imagef, 1, 
freebox_image_clicked, NULL);
+                       thumb = add_image(em->fbox, imagef, 1, 
+                                               freebox_image_clicked, NULL);
                        ewl_image_constrain_set(EWL_IMAGE(thumb), 81);
-                       ewl_object_alignment_set(EWL_OBJECT(thumb), 
EWL_FLAG_ALIGN_CENTER);
+                       ewl_object_alignment_set(EWL_OBJECT(thumb), 
+                                                       EWL_FLAG_ALIGN_CENTER);
                        ewl_widget_name_set(thumb, imagef);
                }
                ecore_dlist_next(em->images);
@@ -342,7 +373,8 @@
        ecore_dlist_goto_first(em->images);
        if(ecore_dlist_current(em->images)) 
        {
-               ewl_image_file_path_set(EWL_IMAGE(em->simage), 
ecore_dlist_current(em->images));
+               ewl_image_file_path_set(EWL_IMAGE(em->simage), 
+                                       ecore_dlist_current(em->images));
        }
         ewl_mvc_data_set(EWL_MVC(em->ltree), em->images);
        ewl_mvc_dirty_set(EWL_MVC(em->ltree), 1);
@@ -392,9 +424,11 @@
                imagef = ecore_dlist_current(em->images);
                if(imagef)
                {
-                       thumb = add_image(em->fbox, imagef, 1, 
freebox_image_clicked, NULL);
+                       thumb = add_image(em->fbox, imagef, 1, 
+                                               freebox_image_clicked, NULL);
                        ewl_image_constrain_set(EWL_IMAGE(thumb), 81);
-                               ewl_object_alignment_set(EWL_OBJECT(thumb), 
EWL_FLAG_ALIGN_CENTER);
+                               ewl_object_alignment_set(EWL_OBJECT(thumb), 
+                                                       EWL_FLAG_ALIGN_CENTER);
                        ewl_widget_name_set(thumb, imagef);
                }
                ecore_dlist_next(em->images);
@@ -403,7 +437,8 @@
        ecore_dlist_goto_first(em->images);
        if(ecore_dlist_current(em->images))
        { 
-               ewl_image_file_path_set(EWL_IMAGE(em->simage), 
ecore_dlist_current(em->images));
+               ewl_image_file_path_set(EWL_IMAGE(em->simage), 
+                                       ecore_dlist_current(em->images));
        }
        ewl_mvc_data_set(EWL_MVC(em->ltree), em->images);
        ewl_mvc_dirty_set(EWL_MVC(em->ltree), 1);
@@ -477,7 +512,8 @@
 
        album = data;
 
-       icon = add_icon(NULL, album, PACKAGE_DATA_DIR "/images/image.png", 0, 
populate_albums, NULL);
+       icon = add_icon(NULL, album, PACKAGE_DATA_DIR "/images/image.png", 0, 
+                                                       populate_albums, NULL);
 
         ewl_icon_constrain_set(EWL_ICON(icon), 25);
        ewl_box_orientation_set(EWL_BOX(icon), EWL_ORIENTATION_HORIZONTAL);
@@ -501,7 +537,9 @@
        strcpy(current_directory, em->current_directory);
         directory = data;
 
-       icon = add_icon(NULL, basename((char *)directory), PACKAGE_DATA_DIR 
"/images/folder.png", 0, populate_directories, NULL);
+       icon = add_icon(NULL, basename((char *)directory), 
+                               PACKAGE_DATA_DIR "/images/folder.png", 0, 
+                                               populate_directories, NULL);
 
         ewl_icon_constrain_set(EWL_ICON(icon), 25);
         ewl_box_orientation_set(EWL_BOX(icon), EWL_ORIENTATION_HORIZONTAL);
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_single_view.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ephoto_single_view.c        14 May 2007 17:05:29 -0000      1.7
+++ ephoto_single_view.c        15 May 2007 17:09:26 -0000      1.8
@@ -26,11 +26,15 @@
        ewl_object_alignment_set(EWL_OBJECT(hbox), EWL_FLAG_ALIGN_CENTER);
        ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_SHRINK);
 
-       button = add_button(hbox, NULL, PACKAGE_DATA_DIR 
"/images/media-seek-backward.png", previous_image, NULL);
+       button = add_button(hbox, NULL, 
+                       PACKAGE_DATA_DIR "/images/media-seek-backward.png", 
+                                                       previous_image, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
         ewl_attach_tooltip_text_set(button, _("Previous Image"));
 
-        button = add_button(hbox, NULL, PACKAGE_DATA_DIR 
"/images/media-seek-forward.png", next_image, NULL);
+        button = add_button(hbox, NULL, 
+                       PACKAGE_DATA_DIR "/images/media-seek-forward.png", 
+                                                       next_image, NULL);
         ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
         ewl_attach_tooltip_text_set(button, _("Next Image"));
 
@@ -42,7 +46,8 @@
 {
        ewl_notebook_visible_page_set(EWL_NOTEBOOK(em->main_nb), em->main_vbox);
         ewl_notebook_visible_page_set(EWL_NOTEBOOK(em->view_box), 
em->single_vbox);
-       ewl_image_file_path_set(EWL_IMAGE(em->simage), 
ecore_dlist_current(em->images));
+       ewl_image_file_path_set(EWL_IMAGE(em->simage), 
+                                       ecore_dlist_current(em->images));
 
        return;
 }
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_utils.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ephoto_utils.c      24 Feb 2007 23:30:49 -0000      1.3
+++ ephoto_utils.c      15 May 2007 17:09:26 -0000      1.4
@@ -6,19 +6,23 @@
         char fsize[256];
 
         dsize = (double)size;
-        if (dsize < 1024.0) snprintf(fsize, sizeof(fsize), _("%'.0f Bytes"), 
dsize);
+        if (dsize < 1024.0) snprintf(fsize, sizeof(fsize), _("%'.0f Bytes"), 
+                                                                       dsize);
         else
         {
                 dsize /= 1024.0;
-                if (dsize < 1024) snprintf(fsize, sizeof(fsize), _("%'.0f 
KB"), dsize);
+                if (dsize < 1024) snprintf(fsize, sizeof(fsize), _("%'.0f 
KB"), 
+                                                                       dsize);
                 else
                 {
                         dsize /= 1024.0;
-                        if (dsize < 1024) snprintf(fsize, sizeof(fsize), 
_("%'.0f MB"), dsize);
+                        if (dsize < 1024) snprintf(fsize, sizeof(fsize), 
+                                                       _("%'.0f MB"), dsize);
                         else
                         {
                                 dsize /= 1024.0;
-                                snprintf(fsize, sizeof(fsize), _("%'.1f GB"), 
dsize);
+                                snprintf(fsize, sizeof(fsize), 
+                                                       _("%'.1f GB"), dsize);
                         }
                 }
         }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to