Enlightenment CVS committal

Author  : titan
Project : e17
Module  : proto

Dir     : e17/proto/ephoto/src/bin


Modified Files:
        ephoto_gui.c 


Log Message:
Make the window borderless

===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/bin/ephoto_gui.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ephoto_gui.c        10 Dec 2006 22:05:37 -0000      1.8
+++ ephoto_gui.c        11 Dec 2006 06:15:54 -0000      1.9
@@ -30,11 +30,6 @@
        }
 }
 
-static void center_splash(Ewl_Widget *w, void *event, void *data)
-{
-       ewl_window_move(EWL_WINDOW(w), 50, 50);
-}
-
 void init_gui(void)
 {
        Ewl_Widget *win, *vbox, *image, *text;
@@ -42,12 +37,11 @@
        win = ewl_window_new();
         ewl_window_title_set(EWL_WINDOW(win), "Ephoto!");
         ewl_window_name_set(EWL_WINDOW(win), "Ephoto!");
-        ewl_window_borderless_set(EWL_WINDOW(win));
-       ewl_widget_state_set(win, "splash", EWL_STATE_PERSISTENT);
+        ewl_window_override_set(EWL_WINDOW(win), 1);
        ewl_object_size_request(EWL_OBJECT(win), 325, 240);
-       ewl_callback_append(win, EWL_CALLBACK_SHOW, center_splash, NULL);
        ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy, NULL);
-        ewl_widget_show(win);
+        ewl_widget_state_set(win, "splash", EWL_STATE_PERSISTENT);
+       ewl_widget_show(win);
 
         vbox = ewl_vbox_new();
         ewl_object_fill_policy_set(EWL_OBJECT(vbox), EWL_FLAG_FILL_ALL);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to