Enlightenment CVS committal

Author  : titan
Project : e17
Module  : apps/ephoto

Dir     : e17/apps/ephoto/src/bin


Modified Files:
        ephoto_exif.c ephoto_main.c 


Log Message:
Fix some of the dialogs.

===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_exif.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ephoto_exif.c       28 Apr 2007 04:12:24 -0000      1.15
+++ ephoto_exif.c       28 Apr 2007 18:24:45 -0000      1.16
@@ -124,7 +124,7 @@
 void display_exif_dialog(Ewl_Widget *w, void *event, void *data)
 {
        const char *img;
-       Ewl_Widget *win = NULL, *vbox, *image, *sp, *list, *text;
+       Ewl_Widget *win, *vbox, *image, *sp, *list, *text;
        Ewl_Model *model;
        Ewl_View *view;
        
@@ -134,7 +134,8 @@
                return;
        }
 
-       win = add_window("Ephoto Exif Info", 310, 460, close_dialog, win);
+       win = add_window("Ephoto Exif Info", 310, 460, NULL, NULL);
+       ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, close_dialog, win);
        ewl_window_dialog_set(EWL_WINDOW(win), 1);
 
        vbox = add_box(win, EWL_ORIENTATION_VERTICAL, 5);
===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ephoto_main.c       28 Apr 2007 04:12:24 -0000      1.29
+++ ephoto_main.c       28 Apr 2007 18:24:45 -0000      1.30
@@ -124,8 +124,8 @@
 {
        Ewl_Widget *window, *label, *button, *vbox, *hbox;
        
-       window = NULL;
-       window = add_window("Add Album", 200, 100, cancel, window);
+       window = add_window("Add Album", 200, 100, NULL, NULL);
+       ewl_callback_append(window, EWL_CALLBACK_DELETE_WINDOW, cancel, window);
 
        vbox = add_box(window, EWL_ORIENTATION_VERTICAL, 3);
        ewl_object_fill_policy_set(EWL_OBJECT(vbox), EWL_FLAG_FILL_ALL);
@@ -140,7 +140,9 @@
        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);
+       ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
        button = add_button(hbox, "Cancel", PACKAGE_DATA_DIR 
"/images/dialog-close.png", cancel, window);
+       ewl_button_image_size_set(EWL_BUTTON(button), 25, 25);
 }
 
 /*Create the Main Ephoto Window*/



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