Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        event.c misc.c misc.h 


Log Message:


"e" resized entice window to fit image
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/event.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- event.c     16 Mar 2003 07:57:27 -0000      1.10
+++ event.c     28 May 2003 06:55:34 -0000      1.11
@@ -256,6 +256,10 @@
      {
         e_turntable_l_current_image();
      }
+   else if (!strcmp(e->key, "e"))
+     {
+        e_size_match();
+     }
    else if (!strcmp(e->key, "Escape"))
      {
        exit(0);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/misc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- misc.c      16 Mar 2003 07:57:27 -0000      1.8
+++ misc.c      28 May 2003 06:55:35 -0000      1.9
@@ -327,10 +327,11 @@
      }
 }
 
+static int          full = 0;
+
 void
 e_toggle_fullscreen(void)
 {
-   static int          full = 0;
    static Window       win = 0;
    static int          pw = W, ph = H;
 
@@ -507,4 +508,16 @@
    dnd_files = NULL;
    dnd_num_files = 0;
    return;
+}
+
+void
+e_size_match(void)
+{
+   if (!full)
+     {
+       double w, h;
+       
+       evas_object_geometry_get(o_image, NULL, NULL, &w, &h);
+       ecore_window_resize(main_win, w, h);
+     }
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/misc.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- misc.h      5 Feb 2003 05:45:45 -0000       1.3
+++ misc.h      28 May 2003 06:55:35 -0000      1.4
@@ -15,4 +15,6 @@
 void                e_dnd_drop(Ecore_Event * ev);
 void                e_dnd_drop_request_free(void);
 
+void                e_size_match(void);
+    
 #endif /* __MISC_H__ */




-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to