E CVS: proto mekius

2007-06-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Empower.h empower.c 


Log Message:
Do a regexp check for empower-askpass instead of just checking for it.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Empower.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- Empower.h   1 Jun 2007 04:20:09 -   1.10
+++ Empower.h   2 Jun 2007 17:16:28 -   1.11
@@ -7,6 +7,7 @@
 #include stdlib.h
 #include sys/types.h
 #include sys/wait.h
+#include regex.h
 #include pwd.h
 #include Ecore_X.h
 #include Ewl.h
===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- empower.c   1 Jun 2007 04:20:09 -   1.6
+++ empower.c   2 Jun 2007 17:16:28 -   1.7
@@ -2,10 +2,16 @@
 
 void parse_options(int argc, char** argv)
 {
-   /*FIXME: Parse options here so we can properly handle everything*/
+   regex_t regexp;
+   
+   if(regcomp(regexp, empower-askpass, 0))
+   {
+   printf(Failed to create regular expression\n);
+   return;
+   }

/*Do initial mode guessing based on executable name and number of args*/
-   if(!strcmp(*argv,empower-askpass) || 
!strcmp(*argv,./empower-askpass))
+   if(!regexec (regexp, *argv, 0, NULL, 0))
mode = PASS;
else if(argc  1)
mode = SUDO;



-
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


E CVS: proto mekius

2007-06-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
Makefile.am 


Log Message:
Do a regexp check for empower-askpass instead of just checking for it.

===
RCS file: /cvs/e/e17/proto/empower/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 1 Jun 2007 07:21:09 -   1.3
+++ Makefile.am 2 Jun 2007 17:16:28 -   1.4
@@ -14,4 +14,4 @@
config.h.in config.sub configure install-sh \
   ltconfig ltmain.sh missing mkinstalldirs \
   stamp-h.in  empower.spec compile depcomp \
-  debian/changelog empower-*.tar.gz
+  debian/changelog empower-*.tar.gz empower-*/



-
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


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
README configure.in 


Log Message:
Update versions

===
RCS file: /cvs/e/e17/proto/empower/README,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- README  1 Jun 2007 04:20:09 -   1.5
+++ README  1 Jun 2007 06:52:43 -   1.6
@@ -1,5 +1,5 @@
 Empower - A graphical sudo tool based on the Enlightenment Foundation Libraries
-Version 1.0
+Version 1.5
 
 Usage: 
 Sudo: empower [SUDO OPTIONS] [program] [PROGRAM OPTIONS] [EWL OPTIONS]
===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- configure.in1 Jun 2007 04:39:51 -   1.10
+++ configure.in1 Jun 2007 06:52:43 -   1.11
@@ -4,7 +4,7 @@
 rm -f config.cache
 
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(empower, 0.2.0)
+AM_INIT_AUTOMAKE(empower, 1.5.0)
 AM_CONFIG_HEADER(src/bin/config.h)
 
 AC_ISC_POSIX



-
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


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_cb_ewl.c 


Log Message:
Exit with code 0 when exiting through normal means instead of -1

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_cb_ewl.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- empower_cb_ewl.c1 Jun 2007 04:20:09 -   1.8
+++ empower_cb_ewl.c1 Jun 2007 06:22:58 -   1.9
@@ -10,7 +10,7 @@
{
ewl_widget_destroy(EWL_WIDGET(win));
ewl_main_quit();
-   exit(-1);
+   exit(0);
}
else
{
@@ -73,7 +73,7 @@
ewl_widget_destroy(EWL_WIDGET(win));
ewl_main_quit();

-   exit(-1);
+   exit(0);
 }
 
 void reveal_cb(Ewl_Widget *w, void *event, void *data)
@@ -111,7 +111,7 @@
if((ev-exit_code))
{
ewl_main_quit();
-   exit(-1);
+   exit(0);
}
else if(mode == SUDOPROG)
{
@@ -148,5 +148,5 @@
 {  
ewl_main_quit();

-   exit(-1);
+   exit(0);
 }



-
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


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Makefile.am 


Log Message:
Missed uninstall hook to remove symlink.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Makefile.am 1 Jun 2007 04:39:51 -   1.6
+++ Makefile.am 1 Jun 2007 07:21:09 -   1.7
@@ -37,6 +37,9 @@
 $(LN_S) empower empower-askpass
 endif 
 
+uninstall-hook:
+   rm -f $(DESTDIR)$(bindir)/empower-askpass
+
 EXTRA_DIST = 
 
 MAINTAINERCLEANFILES = Makefile.in config.h.in



-
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


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
Makefile.am 


Log Message:
Missed uninstall hook to remove symlink.

===
RCS file: /cvs/e/e17/proto/empower/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 8 Jun 2006 05:02:06 -   1.2
+++ Makefile.am 1 Jun 2007 07:21:09 -   1.3
@@ -14,4 +14,4 @@
config.h.in config.sub configure install-sh \
   ltconfig ltmain.sh missing mkinstalldirs \
   stamp-h.in  empower.spec compile depcomp \
-  debian/changelog
+  debian/changelog empower-*.tar.gz



-
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


E CVS: proto mekius

2007-05-31 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Empower.h Makefile.am empower.c empower_cb_ewl.c 
empower_gui_ewl.c empower_helper_ewl.c 


Log Message:
Alot of changes, see changelog and news.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Empower.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Empower.h   30 May 2007 17:51:36 -  1.9
+++ Empower.h   1 Jun 2007 04:20:09 -   1.10
@@ -14,14 +14,21 @@
 #define WIDTH 0
 #define HEIGHT 85
 Ewl_Widget *win;
+Ewl_Widget *exec;
 Ewl_Widget *entry;
 char cmd[1024];
 Ecore_Exe *sudo;
+int auth_passed;
+int exec_empty;
+int startup;
+int failure;
 
-enum{SUDO,PASS} mode;
+enum{SUDO,PASS,SUDOPROG,HELP} mode;
 
 /* empower_cb prototypes */
 void key_down_cb(Ewl_Widget *w, void *event, void *data);
+void focus_cb(Ewl_Widget *w, void *event, void *data);
+void unfocus_cb(Ewl_Widget *w, void *event, void *data);
 void destroy_cb(Ewl_Widget *w, void *event, void *data);
 void reveal_cb(Ewl_Widget *w, void *event, void *data);
 void check_pass_cb(Ewl_Widget *w, void *event, void *data);
===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- Makefile.am 30 May 2007 03:30:31 -  1.4
+++ Makefile.am 1 Jun 2007 04:20:09 -   1.5
@@ -14,6 +14,12 @@
 
 empower_ewl_LDADD =  $(INTLLIBS) \
@EWL_LIBS@
+   
+install-exec-hook:
+   rm -f $(DESTDIR)$(bindir)/empower-askpass  \
+   cd $(DESTDIR)$(bindir)  \
+$(LN_S) empower_ewl empower-askpass
+
 else
 bin_PROGRAMS = empower
 
@@ -24,6 +30,11 @@
 
 empower_LDADD =  $(INTLLIBS) \
@EWL_LIBS@
+   
+install-exec-hook:
+   rm -f $(DESTDIR)$(bindir)/empower-askpass  \
+   cd $(DESTDIR)$(bindir)  \
+$(LN_S) empower empower-askpass
 endif 
 
 EXTRA_DIST = 
===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- empower.c   30 May 2007 17:51:36 -  1.5
+++ empower.c   1 Jun 2007 04:20:09 -   1.6
@@ -1,74 +1,86 @@
 #include Empower.h
 
-int main(int argc, char** argv)
+void parse_options(int argc, char** argv)
 {
-   sudo = NULL;
+   /*FIXME: Parse options here so we can properly handle everything*/

-   if(!strcmp(*argv,empower-askpass))
-   mode = PASS;
-   else if(!strcmp(*argv, ./empower-askpass))
+   /*Do initial mode guessing based on executable name and number of args*/
+   if(!strcmp(*argv,empower-askpass) || 
!strcmp(*argv,./empower-askpass))
mode = PASS;
-   else
+   else if(argc  1)
mode = SUDO;
-
-   --argc; ++argv; //pop off program name
+   else
+   mode = SUDOPROG;

-   if(mode != PASS  !strcmp(*argv, -p))
-   mode = PASS;
+   --argc; ++argv; //move to the next argument

-   if(!ecore_init())
-   {
-   printf(Unable to init ecore\n);
-   return 1;
-   }
+   if(mode == SUDO || mode == SUDOPROG)
+   snprintf(cmd, 1024, sudo);

-   if(argc || mode == PASS)//commands
-   {   
-   int i;
-
-   ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT,exit_cb,NULL);
-   
-   if(mode == SUDO)
-   snprintf(cmd, 1024, sudo);
-   
-   while(argc)
+   while(argc--)
+   {
+   if(!strcmp(*argv,-h) || !strcmp(*argv, -help))  //help 
mode
+   {
+   mode = HELP;
+   break;
+   }
+   else if(!strcmp(*argv, -a) || !strcmp(*argv, -askpass)) 
//ssh-askpass mode
{
-   if(strcmp(*argv, --))
+   mode = PASS;
+   break;
+   }
+   else
+   {
+   if(mode == SUDO || mode == SUDOPROG)
{
-   if(mode == SUDO)
-   {
-   strncat(cmd,  , 1024);
-   strncat(cmd, *argv, 1024);
-   --argc; ++argv;
-   }
+   strncat(cmd,  , 1024);
+   strncat(cmd, *argv, 1024);
}
-   else
-   break;
- 

E CVS: proto mekius

2007-05-31 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
AUTHORS ChangeLog NEWS README configure.in 


Log Message:
Alot of changes, see changelog and news.

===
RCS file: /cvs/e/e17/proto/empower/AUTHORS,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- AUTHORS 2 Jan 2007 09:32:48 -   1.5
+++ AUTHORS 1 Jun 2007 04:20:09 -   1.6
@@ -1,3 +1,3 @@
-Mekius_ (Nick Hughart) [EMAIL PROTECTED]
-CodeWarrior (Hisham Mardam Bey) [EMAIL PROTECTED]
-UnixTitan (Stephen Houston) [EMAIL PROTECTED]
+Mekius_ (Nick Hughart) [EMAIL PROTECTED] (EWL version maintainer)
+CodeWarrior (Hisham Mardam Bey) [EMAIL PROTECTED] (ETK version maintainer)
+UnixTitan (Stephen Houston) [EMAIL PROTECTED] (EWL version contributor)
===
RCS file: /cvs/e/e17/proto/empower/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ChangeLog   30 May 2007 03:30:31 -  1.3
+++ ChangeLog   1 Jun 2007 04:20:09 -   1.4
@@ -1,3 +1,15 @@
+5-31-07 -- Version 1.5
+   - Starting empower with no options will allow you to specify a command 
in
+ the window.  If you need to authenticate, you will also type in your
+ password.
+   - There are labels on the entries now so you know what you need to type 
in.
+ They are dynamic and will disappear when you focus the entry, and 
reappear
+ if you have not typed anything on unfocus.  On startup all you need 
to do
+ is start typing and the proper entry will start accepting your key 
+ presses.
+   - Empower askpass support is final with the addition of the 
empower-askpass
+ symlink.  Using the symlink will start empower in askpass mode.
+   - Requires a version of EWL after 5-31-07
 5-29-07 -- Version 1.0
- Empower now behaves much more like sudo itself.  It respects the 
timeout
  and also will reask if you mistype your password.  The amount of 
retries
===
RCS file: /cvs/e/e17/proto/empower/NEWS,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- NEWS3 Apr 2006 00:06:53 -   1.1
+++ NEWS1 Jun 2007 04:20:09 -   1.2
@@ -1,2 +1,12 @@
+5-31-07:
+   Version 1.5 released
+   - This version should hopefully appease alot of the people who 
have
+ been asking for new features.  If anyone needs it, I might 
add some
+ support for opening things in a terminal.  It would probably 
be a 
+ command line option/symlink since having a check would ruin 
the nice
+ interface :)  For now though this could be a achieved by 
running your
+ term with the correct args to open a program.
+5-29-07:
+   Version 1.0 released
 3-31-06:
Initial release version 0.1
===
RCS file: /cvs/e/e17/proto/empower/README,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- README  30 May 2007 17:51:36 -  1.4
+++ README  1 Jun 2007 04:20:09 -   1.5
@@ -2,8 +2,17 @@
 Version 1.0
 
 Usage: 
-Sudo: empower [SUDO OPTIONS] program [PROGRAM OPTIONS] -- [EWL OPTIONS]
-AskPass: empower-askpass -- [EWL OPTIONS] or empower -p -- [EWL OPTIONS]
+Sudo: empower [SUDO OPTIONS] [program] [PROGRAM OPTIONS] [EWL OPTIONS]
+AskPass: empower-askpass [EWL OPTIONS] or empower -p [EWL OPTIONS]
+
+Usage Note:
+If no options are passed to empower, you will be prompted to provide an 
+executable and your password (if not authenticated already).  You can 
+specify sudo options as well as program args by following this format in
+the execute entry:
+
+[SUDO OPTIONS] program [PROGRAM OPTIONS]
+
 
 See INSTALL for installation instructions
 See COPYING and COPYING-PLAIN for license information
===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- configure.in23 Mar 2007 03:09:18 -  1.8
+++ configure.in1 Jun 2007 04:20:09 -   1.9
@@ -16,6 +16,7 @@
 AM_PROG_LIBTOOL
 
 AM_WITH_DMALLOC
+AC_PROG_LN_S
 
 AM_PROG_CC_C_O
 



-
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

E CVS: proto mekius

2007-05-30 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
README 


Log Message:
Fixed disabled window when an empty password was submitted.
Added ssh-askpass support.  For now the -p option can be passed to make empower 
act as ssh-askpass.  Soon a busybox style symlink will be created called 
empower-askpass which will also start empower in ssh-askpass mode.  This mode 
can also be useful for script writers who need to grab passwords.  The password 
is just written to stdout while in this mode.

===
RCS file: /cvs/e/e17/proto/empower/README,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- README  30 May 2007 03:30:31 -  1.3
+++ README  30 May 2007 17:51:36 -  1.4
@@ -1,9 +1,11 @@
 Empower - A graphical sudo tool based on the Enlightenment Foundation Libraries
 Version 1.0
 
-Usage: empower [SUDO OPTIONS] program [PROGRAM OPTIONS] -- [EWL OPTIONS]
+Usage: 
+Sudo: empower [SUDO OPTIONS] program [PROGRAM OPTIONS] -- [EWL OPTIONS]
+AskPass: empower-askpass -- [EWL OPTIONS] or empower -p -- [EWL OPTIONS]
 
 See INSTALL for installation instructions
 See COPYING and COPYING-PLAIN for license information
 
-Created by and Copyright 2005-2007 Nick Mekius_ Hughart
\ No newline at end of file
+Created by and Copyright 2005-2007 Nicholas Mekius_ Hughart
\ No newline at end of file



-
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


E CVS: proto mekius

2007-05-29 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
ChangeLog INSTALL README 


Log Message:
Version 1.0\n
- Empower now behaves much more like sudo itself.  It respects the timeout\n
  and also will reask if you mistype your password.  The amount of retries\n
  is all based on your settings in the sudoers file.\n
- Also, command line options can be passed to sudo as well as EWL on the\n
  empower command line.\n
- With the massive changes and cleanups, this release deserves a 1.0 :)\n\nI 
highly recommend all current empower users update to this version, it is much 
better ;)  Let me know of any errors you find, I tried to test it a lot, but I 
usually miss some minor detail.

===
RCS file: /cvs/e/e17/proto/empower/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ChangeLog   5 Apr 2006 17:36:15 -   1.2
+++ ChangeLog   30 May 2007 03:30:31 -  1.3
@@ -1,3 +1,10 @@
+5-29-07 -- Version 1.0
+   - Empower now behaves much more like sudo itself.  It respects the 
timeout
+ and also will reask if you mistype your password.  The amount of 
retries
+ is all based on your settings in the sudoers file.
+   - Also, command line options can be passed to sudo as well as EWL on the
+ empower command line.
+   - With the massive changes and cleanups, this release deserves a 1.0 :)
 4-5-06
- Added etk version coded mostly by CodeWarrior
- Added username into the gui and did some cleaning of the interface
===
RCS file: /cvs/e/e17/proto/empower/INSTALL,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- INSTALL 10 Mar 2007 10:06:16 -  1.3
+++ INSTALL 30 May 2007 03:30:31 -  1.4
@@ -12,4 +12,7 @@
 By default, this will be determined based on which toolkits are installed.
 To override pass one or more of the following to ./autogen.sh:
--enable-etk/--disable-etk Enable/Disable ETK
-   --enable-ewl/--disable-ewl Enable/Disable EWL
\ No newline at end of file
+   --enable-ewl/--disable-ewl Enable/Disable EWL
+   
+Note:
+Recently the etk version has been disabled by default due to compilation 
errors.
\ No newline at end of file
===
RCS file: /cvs/e/e17/proto/empower/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- README  10 Mar 2007 10:06:16 -  1.2
+++ README  30 May 2007 03:30:31 -  1.3
@@ -1,7 +1,7 @@
 Empower - A graphical sudo tool based on the Enlightenment Foundation Libraries
-Version 0.3
+Version 1.0
 
-Usage: empower program command
+Usage: empower [SUDO OPTIONS] program [PROGRAM OPTIONS] -- [EWL OPTIONS]
 
 See INSTALL for installation instructions
 See COPYING and COPYING-PLAIN for license information



-
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


E CVS: proto mekius

2007-05-29 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Empower.h Makefile.am empower.c empower_cb_ewl.c 
empower_gui_ewl.c 
Added Files:
empower_helper_ewl.c 
Removed Files:
.cvsignore 


Log Message:
Version 1.0\n
- Empower now behaves much more like sudo itself.  It respects the timeout\n
  and also will reask if you mistype your password.  The amount of retries\n
  is all based on your settings in the sudoers file.\n
- Also, command line options can be passed to sudo as well as EWL on the\n
  empower command line.\n
- With the massive changes and cleanups, this release deserves a 1.0 :)\n\nI 
highly recommend all current empower users update to this version, it is much 
better ;)  Let me know of any errors you find, I tried to test it a lot, but I 
usually miss some minor detail.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Empower.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- Empower.h   12 Feb 2007 22:13:08 -  1.7
+++ Empower.h   30 May 2007 03:30:31 -  1.8
@@ -4,7 +4,9 @@
 #include unistd.h
 #include string.h
 #include stdio.h
+#include stdlib.h
 #include sys/types.h
+#include sys/wait.h
 #include pwd.h
 #include Ecore_X.h
 #include Ewl.h
@@ -12,18 +14,32 @@
 #define WIDTH 0
 #define HEIGHT 85
 Ewl_Widget *win;
-char password[1024];
-char buf[1024];
+Ewl_Widget *entry;
+char cmd[1024];
+Ecore_Exe *sudo;
 
 /* empower_cb prototypes */
 void key_down_cb(Ewl_Widget *w, void *event, void *data);
 void destroy_cb(Ewl_Widget *w, void *event, void *data);
 void reveal_cb(Ewl_Widget *w, void *event, void *data);
-void pipe_to_sudo_cb(Ewl_Widget *w, void *event, void *data);
+void check_pass_cb(Ewl_Widget *w, void *event, void *data);
+int wait_for_sudo(void *data);
+int sudo_done_cb(void *data, int type, void *event);
+int sudo_data_cb(void *data, int type, void *event);
+int exit_cb(void *data, int type, void *event);
 /* empower_cb prototypes end */
 
 /* empower_gui prototypes */
+void setup_window();
 void display_window();
+void hide_window();
 /* empower_gui prototypes end */
+
+/* empower_helper prototypes */
+int authorize(char* password);
+int idle(void *data);
+int idle_exit(void *data);
+void check_sudo_timeout_job(void *data);
+/* empower_helper prototypes end */
 
 #endif
===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 23 Mar 2007 02:27:16 -  1.3
+++ Makefile.am 30 May 2007 03:30:31 -  1.4
@@ -7,7 +7,8 @@
 if BUILD_SEPARATE
 bin_PROGRAMS = empower_ewl
 
-empower_ewl_SOURCES = empower.c empower_cb_ewl.c empower_gui_ewl.c
+empower_ewl_SOURCES = empower.c empower_cb_ewl.c empower_gui_ewl.c \
+   empower_helper_ewl.c
 
 empower_ewl_CFLAGS = @EWL_CFLAGS@
 
@@ -16,7 +17,8 @@
 else
 bin_PROGRAMS = empower
 
-empower_SOURCES = empower.c empower_cb_ewl.c empower_gui_ewl.c
+empower_SOURCES = empower.c empower_cb_ewl.c empower_gui_ewl.c \
+   empower_helper_ewl.c
 
 empower_CFLAGS = @EWL_CFLAGS@
 
===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- empower.c   7 Sep 2006 17:22:49 -   1.3
+++ empower.c   30 May 2007 03:30:31 -  1.4
@@ -2,37 +2,52 @@
 
 int main(int argc, char** argv)
 {
-   --argc; ++argv;
+   --argc; ++argv; //pop off program name
+   sudo = NULL;

-   if(argc)//commands
+   if(!ecore_init())
{
-   pid_t id = fork();
+   printf(Unable to init ecore\n);
+   return 1;
+   }
+   
+   if(argc)//commands
+   {   
+   int i;
+
+   ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT,exit_cb,NULL);

-   if(id == 0)
-   {   
-   ecore_exe_run(sudo -k, NULL);
-   return 0;
-   }
-   else
+   snprintf(cmd, 1024, sudo);
+   
+   while(argc)
{
-   snprintf(buf, 1024, sudo -S %s , *argv);
-   
-   --argc; ++argv;
-   while(argc)
+   if(strcmp(*argv, --)) //-- is used to stop 
sudo options, lets use that
{
-   strncat(buf,  , 1024);
-   strncat(buf, *argv, 1024);
-   --argc; ++argv;
+   

E CVS: proto mekius

2007-03-22 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
configure.in 


Log Message:
Continued changes made by UnixTitan to support pkg-config.
Also was able to remove all the files in m4.  Bitchin!

===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- configure.in23 Mar 2007 02:27:15 -  1.7
+++ configure.in23 Mar 2007 03:09:18 -  1.8
@@ -63,40 +63,28 @@
 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, ${packagesrcdir}, [Source code 
directory])
 
 PKG_CHECK_MODULES([EVAS], evas,
+   [],
[
-   ],
-   [
-  echo Evas was not found by pkg-config!;
-  AC_MSG_ERROR([Empower needs evas to compile.])
+  echo Could not find Evas.  If it is installed, \nplease make sure its 
path is in PKG_CONFIG_PATH;
+  AC_MSG_ERROR([Empower needs Evas to compile.])
]
 )
 
 PKG_CHECK_MODULES([ECORE], ecore,
+   [],
[
-   ],
-   [
-  echo Ecore was not found by pkg-config!;
-  AC_MSG_ERROR([Empower needs ecore to compile.])
+  echo Could not find Ecore.  If it is installed, \nplease make sure its 
path is in PKG_CONFIG_PATH;
+  AC_MSG_ERROR([Empower needs Ecore to compile.])
]
 )
 
-#PROG=ewl-config;
-#AC_PATH_PROG(EWL_CONFIG, $PROG, , $PATH)
-#if test -z $EWL_CONFIG ; then.
-#echo $PROG  is not in your \$PATH. Please ensure it is.;
-#echo Read the manual page for your shell as to how to extend your path.;
-#AC_MSG_ERROR(Cannot find $PROG)
-#fi
-
-
-#PROG=etk-config;
-#AC_PATH_PROG(ETK_CONFIG, $PROG, , $PATH)
-#if test -z $ETK_CONFIG ; then
-#echo $PROG  is not in your \$PATH. Please ensure it is.;
-#echo Read the manual page for your shell as to how to extend your path.;
-#AC_MSG_ERROR(Cannot find $PROG)
-#fi
-
+PKG_CHECK_MODULES([EDJE], edje,
+   [],
+   [
+  echo Could not find Edje.  If it is installed, \nplease make sure its 
path is in PKG_CONFIG_PATH;
+  AC_MSG_ERROR([Empower needs Edje to compile.])
+   ]
+)
 
 AC_ARG_ENABLE(ewl,
 AC_HELP_STRING([--enable-ewl/--disable-ewl],
@@ -104,15 +92,13 @@
 [enable_ewl=$enableval ], [ enable_ewl=default])
 
 if test x$enable_ewl = xdefault || test x$enable_ewl = xyes; then
-PKG_CHECK_MODULES([EWL], ewl = 0.4.0,
-   [
-  enable_ewl=Yes
-   ],
-   [
-  enable_ewl=No
-  echo Ewl was not found by pkg-config!;
-  AC_MSG_ERROR([Empower needs ewl to compile.])
-   ]
+   PKG_CHECK_MODULES([EWL], ewl = 0.4.0,
+  [  enable_ewl=yes  ],
+  [
+ enable_ewl=no
+ echo Could not find Ewl.  If it is installed, \nplease make sure its 
path is in PKG_CONFIG_PATH;
+ AC_MSG_ERROR([Empower needs Ewl to compile the Ewl version.])
+  ]
 )
 fi
 
@@ -124,17 +110,14 @@
 [enable_etk=$enableval], [enable_etk=default])
 
 if test x$enable_etk = xdefault || test x$enable_etk = xyes; then
-PKG_CHECK_MODULES([ETK], etk = 0.1.0,
-   [
-  enable_etk=Yes
-   ],
-   [
-  enable_etk=No
-  echo Etk was not found by pkg-config!;
-  AC_MSG_ERROR([Empower needs etk to compile.])
-   ]
+   PKG_CHECK_MODULES([ETK], etk = 0.1.0,
+  [  enable_etk=yes  ],
+  [
+ enable_etk=no
+ echo Could not find Etk.  If it is installed, \nplease make sure its 
path is in PKG_CONFIG_PATH;
+ AC_MSG_ERROR([Empower needs Etk to compile the Etk version.])
+  ]
 )
-
 fi
 
 AM_CONDITIONAL(ENABLE_ETK, test x$enable_etk = xyes)
@@ -147,19 +130,6 @@
 
 AM_CONDITIONAL(BUILD_SEPARATE, test x$build_separate = xyes)
 
-#AC_DEFINE_UNQUOTED(HAVE_EWL, ${have_ewl}, [EWL])
-#AC_DEFINE_UNQUOTED(HAVE_ETK, ${have_etk}, [ETK])
-
-
-PKG_CHECK_MODULES([EDJE], edje,
-   [
-   ],
-   [
-  echo Edje was not found by pkg-config!;
-  AC_MSG_ERROR([Empower needs edje to compile.])
-   ]
-)
-
 AC_OUTPUT([
 Makefile 
 empower.spec
@@ -182,4 +152,3 @@
 echo
 echo   Building Seperate Binaries  $build_separate
 echo 
-  



-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-03-22 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/m4


Removed Files:
ac_expand_dir.m4 ac_path_generic.m4 empower.spec.in 


Log Message:
Properly remove files from m4 :)




-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-03-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
autogen.sh configure.in empower.spec.in 


Log Message:
Disabled ETK build by default.  I don't have the time nor motivation to fix it. 
 Also did a small update to the spec file.

===
RCS file: /cvs/e/e17/proto/empower/autogen.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- autogen.sh  3 Apr 2006 00:06:53 -   1.1
+++ autogen.sh  15 Mar 2007 03:35:51 -  1.2
@@ -12,5 +12,5 @@
 echo Running automake... ; automake --add-missing --copy --gnu || exit 1
 
 if [ -z $NOCONFIGURE ]; then
-   ./configure $@
+   ./configure --disable-etk $@
 fi
===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- configure.in10 Mar 2007 10:06:16 -  1.5
+++ configure.in15 Mar 2007 03:35:51 -  1.6
@@ -123,7 +123,7 @@
 
 AC_ARG_ENABLE(etk,
 AC_HELP_STRING([--enable-etk/--disable-etk],
-[enable/disable etk version (default=autodetect)]),
+[enable/disable etk version (default=disabled)]),
 [enable_etk=$enableval], [enable_etk=default])
 
 if test x$enable_etk = xdefault || test x$enable_etk = xyes; then
===
RCS file: /cvs/e/e17/proto/empower/empower.spec.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- empower.spec.in 3 Apr 2006 00:06:53 -   1.1
+++ empower.spec.in 15 Mar 2007 03:35:51 -  1.2
@@ -4,7 +4,7 @@
 Release: 0.%(date '+%Y%m%d')
 License: 3-clause BSD
 Group: Applications/Admin
-URL: http://www.enlightenment.org.au/
+URL: http://www.satus.net/empower
 Source: %{name}-%{version}.tar.gz
 Packager: %{?_packager:%{_packager}}%{!?_packager:Stephen Houston [EMAIL 
PROTECTED]}
 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment 
Project (http://www.enlightenment.org.au/)}



-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-03-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Makefile.am 


Log Message:
Add support for disabling/enabling each version of Empower.  This has been long 
requested, I've just been lazy :)

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 4 Apr 2006 04:26:22 -   1.1
+++ Makefile.am 10 Mar 2007 10:06:17 -  1.2
@@ -4,6 +4,7 @@
 #-I$(top_srcdir) -I$(top_srcdir)/src/include -I$(top_srcdir)/src/lib \
 #-I$(top_builddir)/src/lib
 
+if BUILD_SEPARATE
 bin_PROGRAMS = empower_ewl
 
 empower_ewl_SOURCES = empower.c empower_cb_ewl.c empower_gui_ewl.c
@@ -12,6 +13,16 @@
 
 empower_ewl_LDADD =  $(INTLLIBS) \
@ewl_libs@
+else
+bin_PROGRAMS = empower
+
+empower_SOURCES = empower.c empower_cb_ewl.c empower_gui_ewl.c
+
+empower_CFLAGS = @ewl_cflags@
+
+empower_LDADD =  $(INTLLIBS) \
+   @ewl_libs@
+endif 
 
 EXTRA_DIST = 




-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-03-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/etk


Modified Files:
Makefile.am 


Log Message:
Add support for disabling/enabling each version of Empower.  This has been long 
requested, I've just been lazy :)

===
RCS file: /cvs/e/e17/proto/empower/src/bin/etk/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 4 Apr 2006 04:34:46 -   1.2
+++ Makefile.am 10 Mar 2007 10:06:17 -  1.3
@@ -4,6 +4,7 @@
 #-I$(top_srcdir) -I$(top_srcdir)/src/include -I$(top_srcdir)/src/lib \
 #-I$(top_builddir)/src/lib
 
+if BUILD_SEPARATE
 bin_PROGRAMS = empower_etk
 
 empower_etk_SOURCES = empower.c \
@@ -13,6 +14,17 @@
 
 empower_etk_LDADD =  $(INTLLIBS) \
@etk_libs@
+else
+bin_PROGRAMS = empower
+
+empower_SOURCES = empower.c \
+   empower_cb_etk.c empower_gui_etk.c
+
+empower_CFLAGS = @etk_cflags@
+
+empower_LDADD =  $(INTLLIBS) \
+   @etk_libs@
+endif
 
 EXTRA_DIST = 




-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-03-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
INSTALL README configure.in 


Log Message:
Add support for disabling/enabling each version of Empower.  This has been long 
requested, I've just been lazy :)

===
RCS file: /cvs/e/e17/proto/empower/INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- INSTALL 5 Apr 2006 17:32:45 -   1.2
+++ INSTALL 10 Mar 2007 10:06:16 -  1.3
@@ -1,9 +1,15 @@
 There are two versions now.  The ewl version will install as 'empower_ewl'.
-The etk version will install as 'empower_etk'.  At this time it checks for each
-toolkit and only builds the binaries for the toolkits you have installed.  
There
-is no way to stop it building a binary if you have the library installed.
+The etk version will install as 'empower_etk'.  If you only build one version,
+it will be just called empower.  See below for how to control the building of
+each version.
 
-To install empower just do the following:
+To install empower:
./autogen.sh
make
-   make install
+   make install (as root)
+   
+To enable/disable ewl/etk:
+By default, this will be determined based on which toolkits are installed.
+To override pass one or more of the following to ./autogen.sh:
+   --enable-etk/--disable-etk Enable/Disable ETK
+   --enable-ewl/--disable-ewl Enable/Disable EWL
\ No newline at end of file
===
RCS file: /cvs/e/e17/proto/empower/README,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- README  3 Apr 2006 00:06:53 -   1.1
+++ README  10 Mar 2007 10:06:16 -  1.2
@@ -1,9 +1,9 @@
 Empower - A graphical sudo tool based on the Enlightenment Foundation Libraries
-Version 0.1 - an alpha release
+Version 0.3
 
 Usage: empower program command
 
 See INSTALL for installation instructions
 See COPYING and COPYING-PLAIN for license information
 
-Created by and Copyright 2005-2006 Nick Mekius_ Hughart
\ No newline at end of file
+Created by and Copyright 2005-2007 Nick Mekius_ Hughart
\ No newline at end of file
===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- configure.in11 Jun 2006 10:23:48 -  1.4
+++ configure.in10 Mar 2007 10:06:16 -  1.5
@@ -17,6 +17,8 @@
 
 AM_WITH_DMALLOC
 
+AM_PROG_CC_C_O
+
 dnl Add the languages which your application supports here.
 ALL_LINGUAS=
 
@@ -86,7 +88,7 @@
 
 #PROG=ewl-config;
 #AC_PATH_PROG(EWL_CONFIG, $PROG, , $PATH)
-#if test -z $EWL_CONFIG ; then
+#if test -z $EWL_CONFIG ; then.
 #echo $PROG  is not in your \$PATH. Please ensure it is.;
 #echo Read the manual page for your shell as to how to extend your path.;
 #AC_MSG_ERROR(Cannot find $PROG)
@@ -101,23 +103,48 @@
 #AC_MSG_ERROR(Cannot find $PROG)
 #fi
 
-AC_PATH_GENERIC(ewl, 0.0.4, [have_ewl=yes], [have_ewl=no])
-if test x$have_ewl ; then
-   ewl_cflags=`$EWL_CONFIG --cflags`
-   ewl_libs=`$EWL_CONFIG --libs`
-   AC_SUBST(ewl_cflags)
-   AC_SUBST(ewl_libs)
-fi
-AM_CONDITIONAL(HAVE_EWL, test x$have_ewl = xyes)
-
-AC_PATH_GENERIC(etk, 0.1.0, [have_etk=yes], [have_etk=no])
-if test x$have_etk ; then
-   etk_cflags=`$ETK_CONFIG --cflags`
-   etk_libs=`$ETK_CONFIG --libs`
-   AC_SUBST(etk_cflags)
-   AC_SUBST(etk_libs)
+
+AC_ARG_ENABLE(ewl,
+AC_HELP_STRING([--enable-ewl/--disable-ewl],
+[enable/disable ewl version (default=autodetect)]),
+[enable_ewl=$enableval ], [ enable_ewl=default])
+
+if test x$enable_ewl = xdefault || test x$enable_ewl = xyes; then
+  AC_PATH_GENERIC(ewl, 0.0.4, [enable_ewl=yes], [enable_ewl=no])
+  if test x$enable_ewl ; then
+  ewl_cflags=`$EWL_CONFIG --cflags`
+  ewl_libs=`$EWL_CONFIG --libs`
+  AC_SUBST(ewl_cflags)
+  AC_SUBST(ewl_libs)
+  fi
+fi
+
+AM_CONDITIONAL(ENABLE_EWL, test x$enable_ewl = xyes)
+
+AC_ARG_ENABLE(etk,
+AC_HELP_STRING([--enable-etk/--disable-etk],
+[enable/disable etk version (default=autodetect)]),
+[enable_etk=$enableval], [enable_etk=default])
+
+if test x$enable_etk = xdefault || test x$enable_etk = xyes; then
+  AC_PATH_GENERIC(etk, 0.1.0, [enable_etk=yes], [enable_etk=no])
+  if test x$enable_etk ; then
+  etk_cflags=`$ETK_CONFIG --cflags`
+  etk_libs=`$ETK_CONFIG --libs`
+  AC_SUBST(etk_cflags)
+  AC_SUBST(etk_libs)
+  fi
+fi
+
+AM_CONDITIONAL(ENABLE_ETK, test x$enable_etk = xyes)
+
+if test x$enable_etk = xyes  test x$enable_ewl = xyes; then
+  build_separate=yes
+else
+  build_separate=no
 fi
-AM_CONDITIONAL(HAVE_ETK, test x$have_etk = xyes)
+
+AM_CONDITIONAL(BUILD_SEPARATE, test x$build_separate = xyes)
 
 

E CVS: proto mekius

2007-03-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
Makefile.am 


Log Message:
Add support for disabling/enabling each version of Empower.  This has been long 
requested, I've just been lazy :)

===
RCS file: /cvs/e/e17/proto/empower/src/bin/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 5 Apr 2006 17:25:36 -   1.3
+++ Makefile.am 10 Mar 2007 10:06:16 -  1.4
@@ -1,13 +1,13 @@
-if HAVE_EWL
-EWL_DIR = ewl
+if ENABLE_EWL
+EWL_DIR = ewl
 else
-EWL_DIR = 
+EWL_DIR = 
 endif
 
-if HAVE_ETK
-ETK_DIR = etk
+if ENABLE_ETK
+ETK_DIR = etk
 else
-ETK_DIR =
+ETK_DIR =
 endif
 
 SUBDIRS = $(EWL_DIR) $(ETK_DIR)



-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-12-17 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
AUTHORS 


Log Message:
Change my email address, lame commit I know

===
RCS file: /cvs/e/e17/proto/empower/AUTHORS,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- AUTHORS 7 Sep 2006 13:43:15 -   1.3
+++ AUTHORS 18 Dec 2006 04:43:10 -  1.4
@@ -1,3 +1,3 @@
-Mekius_ (Nick Hughart) [EMAIL PROTECTED]
+Mekius_ (Nick Hughart) [EMAIL PROTECTED]
 CodeWarrior (Hisham Mardam Bey) [EMAIL PROTECTED]
 LinuxTitan (Stephen Houston) [EMAIL PROTECTED]



-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-12-06 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_gui_ewl.c 


Log Message:
EWL API breakage for stocks

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_gui_ewl.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- empower_gui_ewl.c   27 Oct 2006 07:01:35 -  1.11
+++ empower_gui_ewl.c   7 Dec 2006 03:42:09 -   1.12
@@ -107,7 +107,7 @@
ewl_widget_show(hbox);

ok_button = ewl_button_new();
-   ewl_button_stock_type_set(EWL_BUTTON(ok_button), EWL_STOCK_OK);
+   ewl_stock_type_set(EWL_BUTTON(ok_button), EWL_STOCK_OK);
ewl_object_minimum_size_set(EWL_OBJECT(ok_button), 60, 20);
//ewl_object_maximum_size_set(EWL_OBJECT(ok_button), 60, 20);
ewl_object_fill_policy_set(EWL_OBJECT(ok_button), EWL_FLAG_FILL_SHRINK);
@@ -117,7 +117,7 @@
ewl_widget_show(ok_button);

cancel_button = ewl_button_new();
-   ewl_button_stock_type_set(EWL_BUTTON(cancel_button), EWL_STOCK_CANCEL);
+   ewl_stock_type_set(EWL_BUTTON(cancel_button), EWL_STOCK_CANCEL);
ewl_object_minimum_size_set(EWL_OBJECT(cancel_button), 60, 20);
//ewl_object_maximum_size_set(EWL_OBJECT(cancel_button), 60, 20);
ewl_object_fill_policy_set(EWL_OBJECT(cancel_button), 



-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-11-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Empower.h 


Log Message:
Fixed the compile issues.  Need to watch dev list a bit closer for these API 
changes :)

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Empower.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Empower.h   27 Oct 2006 07:01:35 -  1.5
+++ Empower.h   8 Nov 2006 15:35:50 -   1.6
@@ -6,8 +6,8 @@
 #include stdio.h
 #include sys/types.h
 #include pwd.h
+#include Ecore_X.h
 #include Ewl.h
-//#include ../config.h
 
 #define WIDTH 0
 #define HEIGHT 85



-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-10-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Empower.h empower_gui_ewl.c 


Log Message:
Fixed up some sizing issues.  Dialog should now resize dynamically based on the 
username.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Empower.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- Empower.h   7 Sep 2006 17:22:48 -   1.4
+++ Empower.h   27 Oct 2006 07:01:35 -  1.5
@@ -9,7 +9,7 @@
 #include Ewl.h
 //#include ../config.h
 
-#define WIDTH 200
+#define WIDTH 0
 #define HEIGHT 85
 Ewl_Widget *win;
 char password[1024];
===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_gui_ewl.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- empower_gui_ewl.c   7 Sep 2006 20:29:10 -   1.10
+++ empower_gui_ewl.c   27 Oct 2006 07:01:35 -  1.11
@@ -23,6 +23,7 @@
uid_t user;
struct passwd *user_name;
char username[256];
+   int window_width;

user = getuid();
if ((user_name = getpwuid(user)) != NULL)
@@ -30,6 +31,8 @@
else
snprintf(username, 256, Your Password);

+   window_width = strlen(username)*10;
+   
int num_roots=0;
int root_w=0, root_h=0;
Ecore_X_Window *root_list = NULL;
@@ -40,14 +43,14 @@

free(root_list);

-   xpos = (root_w/2)-(WIDTH/2);
+   xpos = (root_w/2)-(window_width/2);
ypos = (root_h/2)-(HEIGHT/2);

win = ewl_window_new();
ewl_window_title_set(EWL_WINDOW(win), Empower!);
ewl_window_name_set(EWL_WINDOW(win), Empower!);
ewl_window_class_set(EWL_WINDOW(win), Empower!);
-   ewl_object_size_request(EWL_OBJECT(win), WIDTH, HEIGHT);
+   ewl_object_size_request(EWL_OBJECT(win), window_width, HEIGHT);
ewl_window_move(EWL_WINDOW(win), xpos, ypos);
ewl_window_dialog_set(EWL_WINDOW(win), 1);
ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
@@ -67,7 +70,7 @@
ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_SHRINK);
ewl_widget_show(hbox);
 
-image = ewl_image_new();
+   image = ewl_image_new();
ewl_image_file_set(EWL_IMAGE(image), 
ewl_icon_theme_icon_path_get(EWL_ICON_SYSTEM_LOCK_SCREEN, 
EWL_ICON_SIZE_LARGE), EWL_ICON_SYSTEM_LOCK_SCREEN);
@@ -76,18 +79,19 @@

progtext = ewl_text_new();
ewl_container_child_append(EWL_CONTAINER(hbox), progtext);
-   ewl_text_font_size_set(EWL_TEXT(progtext), 14);
-   ewl_object_alignment_set(EWL_OBJECT(progtext), EWL_FLAG_ALIGN_CENTER);
-   ewl_object_minimum_size_set(EWL_OBJECT(progtext), 75, 20);
-   ewl_object_maximum_size_set(EWL_OBJECT(progtext), 125, 20);
+   ewl_text_font_size_set(EWL_TEXT(progtext), 12);
+   ewl_object_alignment_set(EWL_OBJECT(progtext), EWL_FLAG_ALIGN_LEFT);
+   //ewl_object_minimum_size_set(EWL_OBJECT(progtext), 75, 15);
+   //ewl_object_maximum_size_set(EWL_OBJECT(progtext), 125, 20);
ewl_text_text_set(EWL_TEXT(progtext), username);
ewl_widget_show(progtext);

entry = ewl_password_new();
ewl_container_child_append(EWL_CONTAINER(vbox), entry);
ewl_object_padding_set(EWL_OBJECT(entry),8,8,0,0);
-   ewl_object_size_request(EWL_OBJECT(entry), 50, 20);
-   ewl_callback_append(entry, EWL_CALLBACK_VALUE_CHANGED, pipe_to_sudo_cb, 
entry);
+   //ewl_object_size_request(EWL_OBJECT(entry), 50, 20);
+   ewl_callback_append(entry, EWL_CALLBACK_VALUE_CHANGED, pipe_to_sudo_cb, 
+   entry);
ewl_widget_show(entry);

Ewl_Widget *separator = ewl_hseparator_new();
@@ -105,17 +109,19 @@
ok_button = ewl_button_new();
ewl_button_stock_type_set(EWL_BUTTON(ok_button), EWL_STOCK_OK);
ewl_object_minimum_size_set(EWL_OBJECT(ok_button), 60, 20);
-   ewl_object_maximum_size_set(EWL_OBJECT(ok_button), 60, 20);
+   //ewl_object_maximum_size_set(EWL_OBJECT(ok_button), 60, 20);
ewl_object_fill_policy_set(EWL_OBJECT(ok_button), EWL_FLAG_FILL_SHRINK);
ewl_container_child_append(EWL_CONTAINER(hbox), ok_button);
-   ewl_callback_append(ok_button, EWL_CALLBACK_CLICKED, pipe_to_sudo_cb, 
entry);
+   ewl_callback_append(ok_button, EWL_CALLBACK_CLICKED, pipe_to_sudo_cb, 
+   entry);
ewl_widget_show(ok_button);

cancel_button = ewl_button_new();
ewl_button_stock_type_set(EWL_BUTTON(cancel_button), EWL_STOCK_CANCEL);
ewl_object_minimum_size_set(EWL_OBJECT(cancel_button), 60, 20);
-   ewl_object_maximum_size_set(EWL_OBJECT(cancel_button), 60, 20);
-   

E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_gui_ewl.c 


Log Message:
Added username into program and cleaned up the interface some more

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_gui_ewl.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- empower_gui_ewl.c   4 Apr 2006 04:26:22 -   1.1
+++ empower_gui_ewl.c   5 Apr 2006 16:14:44 -   1.2
@@ -5,13 +5,13 @@
if(!ecore_x_init(NULL))
{
printf(Unable to init ecore\n);
-   return 1;
+   return;
}

if(!ewl_init(argc, argv))
{
printf(Unable to init ewl\n);
-   return 1;
+   return;
}

Ewl_Widget *entry = NULL;
@@ -53,21 +53,24 @@
ewl_object_fill_policy_set(EWL_OBJECT(vbox), EWL_FLAG_FILL_ALL);
ewl_widget_show(vbox);

-   hbox = ewl_hbox_new();
-   ewl_container_child_append(EWL_CONTAINER(vbox), hbox);
-   ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_ALL);
-   ewl_widget_show(hbox);
+   char user[256];
+   
+   snprintf(user, 256, %s's Password:, userinfo-pw_name);
+   //strcat(user, userinfo-pw_name);

-   progtext = ewl_label_new();
-   ewl_label_text_set(EWL_LABEL(progtext), Password: );
-   ewl_object_padding_set(EWL_OBJECT(progtext),5,0,24,0);
-   ewl_container_child_append(EWL_CONTAINER(hbox), progtext);
-   ewl_object_maximum_size_set(EWL_OBJECT(progtext), 75, 20);
+   progtext = ewl_text_new();
+   ewl_container_child_append(EWL_CONTAINER(vbox), progtext);
+   ewl_text_font_size_set(EWL_TEXT(progtext), 14);
+   ewl_text_styles_set(EWL_TEXT(progtext), EWL_TEXT_STYLE_SOFT_SHADOW);
+   ewl_text_shadow_color_set(EWL_TEXT(progtext), 30,30,30,50);
+   ewl_object_padding_set(EWL_OBJECT(progtext),10,0,3,3);
+   ewl_object_minimum_size_set(EWL_OBJECT(progtext), 75, 20);
+   ewl_text_text_set(EWL_TEXT(progtext), user);
ewl_widget_show(progtext);

entry = ewl_password_new();
-   ewl_container_child_append(EWL_CONTAINER(hbox), entry);
-   ewl_object_padding_set(EWL_OBJECT(entry),0,0,20,0);
+   ewl_container_child_append(EWL_CONTAINER(vbox), entry);
+   ewl_object_padding_set(EWL_OBJECT(entry),8,8,0,0);
ewl_object_size_request(EWL_OBJECT(entry), 50, 20);
ewl_callback_append(entry, EWL_CALLBACK_VALUE_CHANGED, pipe_to_sudo_cb, 
entry);
ewl_widget_show(entry);
@@ -79,13 +82,15 @@

hbox = ewl_hbox_new();
ewl_container_child_append(EWL_CONTAINER(vbox), hbox);
-   ewl_object_alignment_set(EWL_OBJECT(hbox), EWL_FLAG_ALIGN_RIGHT);
+   ewl_object_alignment_set(EWL_OBJECT(hbox), EWL_FLAG_ALIGN_CENTER);
ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_SHRINK);
+   ewl_object_padding_set(EWL_OBJECT(hbox),0,0,0,0);
ewl_widget_show(hbox);

ok_button = ewl_button_new();
ewl_button_stock_type_set(EWL_BUTTON(ok_button), EWL_STOCK_OK);
-   ewl_object_maximum_size_set(EWL_OBJECT(ok_button), 35, 15);
+   ewl_object_minimum_size_set(EWL_OBJECT(ok_button), 60, 15);
+   ewl_object_maximum_size_set(EWL_OBJECT(ok_button), 60, 15);
ewl_object_fill_policy_set(EWL_OBJECT(ok_button), EWL_FLAG_FILL_SHRINK);
ewl_container_child_append(EWL_CONTAINER(hbox), ok_button);
ewl_callback_append(ok_button, EWL_CALLBACK_CLICKED, pipe_to_sudo_cb, 
entry);
@@ -100,4 +105,4 @@
ewl_widget_show(cancel_button);

ewl_main(); 
-}
\ No newline at end of file
+}




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower.c 


Log Message:
Added username into program and cleaned up the interface some more

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- empower.c   4 Apr 2006 04:26:22 -   1.1
+++ empower.c   5 Apr 2006 16:14:18 -   1.2
@@ -32,8 +32,10 @@
return 1;
}

+   userID = getuid();
+   userinfo = getpwuid(userID);//get users info
+   
display_window(argc, argv);

return 0;
 }
-




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/etk


Added Files:
Empower.h empower.c empower_cb_etk.c empower_gui_etk.c 


Log Message:
New files for etk version





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
AUTHORS 


Log Message:
Thanks to CodeWarrior for help on the etk version

===
RCS file: /cvs/e/e17/proto/empower/AUTHORS,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- AUTHORS 3 Apr 2006 00:06:53 -   1.1
+++ AUTHORS 5 Apr 2006 17:30:01 -   1.2
@@ -1 +1,2 @@
-Nick Mekius_ Hughart [EMAIL PROTECTED]
\ No newline at end of file
+Mekius_ (Nick Hughart) [EMAIL PROTECTED]
+CodeWarrior (Hisham Mardam Bey) [EMAIL PROTECTED]
\ No newline at end of file




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
ChangeLog 


Log Message:
Crappy ChangLog

===
RCS file: /cvs/e/e17/proto/empower/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ChangeLog   3 Apr 2006 00:06:53 -   1.1
+++ ChangeLog   5 Apr 2006 17:36:15 -   1.2
@@ -0,0 +1,6 @@
+4-5-06
+   - Added etk version coded mostly by CodeWarrior
+   - Added username into the gui and did some cleaning of the interface
+
+4-1-06
+   - Split up the code to hopefully make using different toolkits easier
\ No newline at end of file




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
Makefile.am 


Log Message:
Added ewl/etk conditionals

===
RCS file: /cvs/e/e17/proto/empower/src/bin/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 4 Apr 2006 04:22:57 -   1.2
+++ Makefile.am 5 Apr 2006 17:25:36 -   1.3
@@ -1,3 +1,15 @@
-SUBDIRS = ewl
+if HAVE_EWL
+EWL_DIR = ewl
+else
+EWL_DIR = 
+endif
+
+if HAVE_ETK
+ETK_DIR = etk
+else
+ETK_DIR =
+endif
+
+SUBDIRS = $(EWL_DIR) $(ETK_DIR)
 
 MAINTAINERCLEANFILES = Makefile.in config.h.in




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_gui_ewl.c 


Log Message:
Removed keyboard/pointer grab until I can fix this strange hanging bug

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_gui_ewl.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- empower_gui_ewl.c   5 Apr 2006 16:14:44 -   1.2
+++ empower_gui_ewl.c   5 Apr 2006 17:53:55 -   1.3
@@ -40,9 +40,8 @@
ewl_object_size_request(EWL_OBJECT(win), WIDTH, HEIGHT);
ewl_window_move(EWL_WINDOW(win), xpos, ypos);
ewl_window_borderless_set(EWL_WINDOW(win));
-   ewl_window_raise(EWL_WINDOW(win));
-   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
-   ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
+   //ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
+   //ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_REVEAL, reveal_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_KEY_DOWN, key_down_cb, NULL);




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_cb_ewl.c 


Log Message:
Removed keyboard/pointer grab until I can fix this strange hanging bug

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_cb_ewl.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- empower_cb_ewl.c4 Apr 2006 04:26:22 -   1.1
+++ empower_cb_ewl.c5 Apr 2006 17:54:07 -   1.2
@@ -25,10 +25,11 @@
 void reveal_cb(Ewl_Widget *w, void *event, void *data)
 {
ewl_window_move(EWL_WINDOW(win), xpos, ypos);
+   ewl_window_raise(EWL_WINDOW(win));
 }
 
 void pipe_to_sudo_cb(Ewl_Widget *w, void *event, void *data)
-{  
+{  
FILE *sudo_pipe;

const char *pass = ewl_password_text_get(EWL_PASSWORD(data));
@@ -41,8 +42,8 @@

if(pid == 0)
{   
-   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
-   ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
+   //ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
+   //ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
sudo_pipe = popen(buf, w);
fprintf(sudo_pipe, %s\n, password);
pclose(sudo_pipe);




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
INSTALL 


Log Message:
Some quick and dirty instructions about how the build works

===
RCS file: /cvs/e/e17/proto/empower/INSTALL,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- INSTALL 3 Apr 2006 00:06:53 -   1.1
+++ INSTALL 5 Apr 2006 17:32:45 -   1.2
@@ -1,4 +1,9 @@
+There are two versions now.  The ewl version will install as 'empower_ewl'.
+The etk version will install as 'empower_etk'.  At this time it checks for each
+toolkit and only builds the binaries for the toolkits you have installed.  
There
+is no way to stop it building a binary if you have the library installed.
+
 To install empower just do the following:
./autogen.sh
make
-   make install
\ No newline at end of file
+   make install




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_cb_ewl.c 


Log Message:
Thanks to RbdPngn the window properly closes!  Also put keyboard/pointer 
grabbing back in.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_cb_ewl.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- empower_cb_ewl.c5 Apr 2006 17:54:07 -   1.2
+++ empower_cb_ewl.c5 Apr 2006 19:40:53 -   1.3
@@ -29,10 +29,13 @@
 }
 
 void pipe_to_sudo_cb(Ewl_Widget *w, void *event, void *data)
-{  
+{  
FILE *sudo_pipe;

const char *pass = ewl_password_text_get(EWL_PASSWORD(data));
+   
+   ewl_widget_destroy(win);
+   ewl_main_quit();

if(pass)
{
@@ -42,17 +45,9 @@

if(pid == 0)
{   
-   //ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
-   //ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
sudo_pipe = popen(buf, w);
fprintf(sudo_pipe, %s\n, password);
pclose(sudo_pipe);
-   }   
-   else
-   {   
-   ewl_widget_destroy(win);
-   wait(pid);
}
}
-   ewl_main_quit();
 }




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_gui_ewl.c 


Log Message:
Thanks to RbdPngn the window properly closes!  Also put keyboard/pointer 
grabbing back in.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_gui_ewl.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- empower_gui_ewl.c   5 Apr 2006 17:53:55 -   1.3
+++ empower_gui_ewl.c   5 Apr 2006 19:40:43 -   1.4
@@ -40,8 +40,8 @@
ewl_object_size_request(EWL_OBJECT(win), WIDTH, HEIGHT);
ewl_window_move(EWL_WINDOW(win), xpos, ypos);
ewl_window_borderless_set(EWL_WINDOW(win));
-   //ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
-   //ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
+   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
+   ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_REVEAL, reveal_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_KEY_DOWN, key_down_cb, NULL);




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
configure.in 


Log Message:
Added ewl/etk conditionals

===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- configure.in3 Apr 2006 00:06:53 -   1.1
+++ configure.in5 Apr 2006 17:25:03 -   1.2
@@ -4,8 +4,8 @@
 rm -f config.cache
 
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(empower, 0.1.0)
-AM_CONFIG_HEADER(src/config.h)
+AM_INIT_AUTOMAKE(empower, 0.2.0)
+AM_CONFIG_HEADER(src/bin/config.h)
 
 AC_ISC_POSIX
 AC_PROG_CC
@@ -88,17 +88,43 @@
 AC_SUBST(ecore_cflags)
 AC_SUBST(ecore_libs)
 
-PROG=ewl-config;
-AC_PATH_PROG(EWL_CONFIG, $PROG, , $PATH)
-if test -z $EWL_CONFIG ; then
-echo $PROG  is not in your \$PATH. Please ensure it is.;
-echo Read the manual page for your shell as to how to extend your path.;
-AC_MSG_ERROR(Cannot find $PROG)
-fi
-ewl_cflags=`$EWL_CONFIG --cflags`
-ewl_libs=`$EWL_CONFIG --libs`
-AC_SUBST(ewl_cflags)
-AC_SUBST(ewl_libs)
+#PROG=ewl-config;
+#AC_PATH_PROG(EWL_CONFIG, $PROG, , $PATH)
+#if test -z $EWL_CONFIG ; then
+#echo $PROG  is not in your \$PATH. Please ensure it is.;
+#echo Read the manual page for your shell as to how to extend your path.;
+#AC_MSG_ERROR(Cannot find $PROG)
+#fi
+
+
+#PROG=etk-config;
+#AC_PATH_PROG(ETK_CONFIG, $PROG, , $PATH)
+#if test -z $ETK_CONFIG ; then
+#echo $PROG  is not in your \$PATH. Please ensure it is.;
+#echo Read the manual page for your shell as to how to extend your path.;
+#AC_MSG_ERROR(Cannot find $PROG)
+#fi
+
+AC_PATH_GENERIC(ewl, 0.0.4, [have_ewl=yes], [have_ewl=no])
+if test x$have_ewl ; then
+   ewl_cflags=`$EWL_CONFIG --cflags`
+   ewl_libs=`$EWL_CONFIG --libs`
+   AC_SUBST(ewl_cflags)
+   AC_SUBST(ewl_libs)
+fi
+AM_CONDITIONAL(HAVE_EWL, test x$have_ewl = xyes)
+
+AC_PATH_GENERIC(etk, 0.1.0, [have_etk=yes], [have_etk=no])
+if test x$have_etk ; then
+   etk_cflags=`$ETK_CONFIG --cflags`
+   etk_libs=`$ETK_CONFIG --libs`
+   AC_SUBST(etk_cflags)
+   AC_SUBST(etk_libs)
+fi
+AM_CONDITIONAL(HAVE_ETK, test x$have_etk = xyes)
+
+#AC_DEFINE_UNQUOTED(HAVE_EWL, ${have_ewl}, [EWL])
+#AC_DEFINE_UNQUOTED(HAVE_ETK, ${have_etk}, [ETK])
 
 PROG=edje-config;
 AC_PATH_PROG(EDJE_CONFIG, $PROG, , $PATH)
@@ -118,5 +144,7 @@
 empower.spec
 src/Makefile
 src/bin/Makefile
+src/bin/ewl/Makefile
+src/bin/etk/Makefile
 ])
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
empower.c 


Log Message:
Fixed up ugly code and cleaned up the interface a bit

===
RCS file: /cvs/e/e17/proto/empower/src/bin/empower.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- empower.c   3 Apr 2006 00:06:53 -   1.1
+++ empower.c   3 Apr 2006 16:44:38 -   1.2
@@ -3,9 +3,11 @@
 #include stdio.h
 #include Ewl.h
 
+#define WIDTH 250
+#define HEIGHT 100
+
 char buf[1024];
 Ewl_Widget *win = NULL;
-int time_to_pipe = 0;
 char password[1024];
 
 void destroy_cb(Ewl_Widget *w, void *event, void *data)
@@ -15,13 +17,24 @@
 }
 
 void pipe_to_sudo(Ewl_Widget *w, void *event, void *data)
-{  
-   time_to_pipe = 1;
-   
+{  
snprintf(password, 1024, %s, 
(char*)(ewl_password_text_get(EWL_PASSWORD(data;
 
-   ewl_widget_destroy(win);
-   ewl_main_quit();
+   pid_t id = fork();
+   
+   if(id == 0)
+   {
+   FILE *sudo_pipe;
+   
+   sudo_pipe = popen(buf, w);
+   fprintf(sudo_pipe, %s\n, password);
+   pclose(sudo_pipe);
+   }
+   else
+   {
+   ewl_widget_destroy(win);
+   ewl_main_quit();
+   }
 }
 
 int main(int argc, char** argv)
@@ -52,7 +65,11 @@
return 1;
}

-
+   if(!ecore_x_init(NULL))
+   {
+   printf(Unable to init ecore\n);
+   return 1;
+   }

if(!ewl_init(argc, argv))
{
@@ -60,11 +77,34 @@
return 1;
}

+   int num_roots=0;
+   int root_w=0, root_h=0;
+   Ecore_X_Window *root_list = NULL;
+   root_list = ecore_x_window_root_list(num_roots);
+   
+   /*FIXME: add checks for xinerama*/
+   ecore_x_window_size_get(root_list[0], root_w, root_h);
+   
+   free(root_list);
+   
+   printf(root mid: %dx%d\n, root_w/2, root_h/2);
+   printf(window mid: %dx%d\n, WIDTH/2, HEIGHT/2);
+   
+   int xpos = (root_w/2)-(WIDTH/2);
+   int ypos = (root_h/2)-(HEIGHT/2);
+   
+   printf(final pos: %dx%d\n, xpos, ypos);
+   
win = ewl_window_new();
ewl_window_title_set(EWL_WINDOW(win), Empower!);
ewl_window_name_set(EWL_WINDOW(win), Empower!);
ewl_window_class_set(EWL_WINDOW(win), Empower!);
-   ewl_object_size_request(EWL_OBJECT(win), 250, 75);
+   ewl_object_size_request(EWL_OBJECT(win), WIDTH, HEIGHT);
+   ewl_window_override_set(EWL_WINDOW(win), 1);
+   ewl_window_move(EWL_WINDOW(win), xpos, ypos);
+   ewl_window_keyboard_grab_set(EWL_WINDOW(win),1);
+   ewl_window_pointer_grab_set(EWL_WINDOW(win),1);
+   ewl_window_raise(EWL_WINDOW(win));
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_widget_show(win);

@@ -80,43 +120,47 @@

progtext = ewl_label_new();
ewl_label_text_set(EWL_LABEL(progtext), Password: );
+   ewl_object_padding_set(EWL_OBJECT(progtext),5,0,24,0);
ewl_container_child_append(EWL_CONTAINER(hbox), progtext);
-   ewl_object_maximum_size_set(EWL_OBJECT(progtext), 75, 25);
+   ewl_object_maximum_size_set(EWL_OBJECT(progtext), 75, 20);
ewl_widget_show(progtext);

entry = ewl_password_new();
ewl_container_child_append(EWL_CONTAINER(hbox), entry);
-   ewl_object_size_request(EWL_OBJECT(entry), 50, 50);
+   ewl_object_padding_set(EWL_OBJECT(entry),0,0,20,0);
+   ewl_object_size_request(EWL_OBJECT(entry), 50, 20);
ewl_callback_append(entry, EWL_CALLBACK_VALUE_CHANGED, pipe_to_sudo, 
entry);
ewl_widget_show(entry);
-   
+   
+   Ewl_Widget *separator = ewl_hseparator_new();
+   ewl_container_child_append(EWL_CONTAINER(vbox), separator);
+   ewl_widget_show(separator);
+   
hbox = ewl_hbox_new();
ewl_container_child_append(EWL_CONTAINER(vbox), hbox);
ewl_object_alignment_set(EWL_OBJECT(hbox), EWL_FLAG_ALIGN_RIGHT);
+   ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_SHRINK);
ewl_widget_show(hbox);

ok_button = ewl_button_new();
-   ewl_button_label_set(EWL_BUTTON(ok_button), Ok);
+   //ewl_button_label_set(EWL_BUTTON(ok_button), Ok);
+   ewl_button_stock_type_set(EWL_BUTTON(ok_button), EWL_STOCK_OK);
+   ewl_object_maximum_size_set(EWL_OBJECT(ok_button), 35, 15);
+   ewl_object_fill_policy_set(EWL_OBJECT(ok_button), EWL_FLAG_FILL_SHRINK);
ewl_container_child_append(EWL_CONTAINER(hbox), ok_button);
ewl_callback_append(ok_button, EWL_CALLBACK_CLICKED, pipe_to_sudo, 
entry);
ewl_widget_show(ok_button);

cancel_button = ewl_button_new();
-   

E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
empower.c 


Log Message:
Much better, added ESC keybinding to exit.  Thanks to Rbdpngn for helping me 
center the window and thanks to CodeWarrior for helping me get the window to 
disappear (still a bit flaky).

===
RCS file: /cvs/e/e17/proto/empower/src/bin/empower.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- empower.c   3 Apr 2006 20:23:19 -   1.3
+++ empower.c   4 Apr 2006 01:08:06 -   1.4
@@ -12,6 +12,22 @@
 
 int xpos, ypos;
 
+void check_key(Ewl_Widget *w, void *event, void *data)
+{
+   Ewl_Event_Key_Down *ev;
+   
+   ev = event;
+   
+   if(!ev-modifiers)
+   {
+   if(strcmp(ev-keyname, Escape) == 0)
+   {
+   ewl_widget_destroy(win);
+   ewl_main_quit();
+   }
+   }
+}
+
 void destroy_cb(Ewl_Widget *w, void *event, void *data)
 {
ewl_widget_destroy(win);
@@ -24,24 +40,30 @@
 }
 
 void pipe_to_sudo(Ewl_Widget *w, void *event, void *data)
-{  
-   snprintf(password, 1024, %s, 
(char*)(ewl_password_text_get(EWL_PASSWORD(data;
-
-   pid_t id = fork();
+{  
+   FILE *sudo_pipe;

-   if(id == 0)
-   {
-   FILE *sudo_pipe;
+   const char *pass = ewl_password_text_get(EWL_PASSWORD(data));

-   sudo_pipe = popen(buf, w);
-   fprintf(sudo_pipe, %s\n, password);
-   pclose(sudo_pipe);
-   }
-   else
+   if(pass)
{
-   ewl_widget_destroy(win);
-   ewl_main_quit();
+   snprintf(password, 1024, %s, pass);
+   
+   pid_t pid = fork();
+   
+   if(pid == 0)
+   {   
+   sudo_pipe = popen(buf, w);
+   fprintf(sudo_pipe, %s\n, password);
+   pclose(sudo_pipe);
+   }   
+   else
+   {   
+   ewl_widget_hide(win);
+   wait(pid);
+   }
}
+   ewl_main_quit();
 }
 
 int main(int argc, char** argv)
@@ -54,16 +76,26 @@
Ewl_Widget *progtext = NULL;
Ewl_Widget *vbox=NULL, *hbox = NULL;

-   if(argc)//commands
+   if(argc)//commands
{
-   snprintf(buf, 1024, sudo -S %s , *argv);
+   pid_t id = fork();

-   --argc; ++argv;
-   while(argc)
+   if(id == 0)
+   {   
+   ecore_exe_run(sudo -k, NULL);
+   return 0;
+   }
+   else
{
-   strncat(buf,  , 1024);
-   strncat(buf, *argv, 1024);
+   snprintf(buf, 1024, sudo -S %s , *argv);
+   
--argc; ++argv;
+   while(argc)
+   {
+   strncat(buf,  , 1024);
+   strncat(buf, *argv, 1024);
+   --argc; ++argv;
+   }
}
}
else
@@ -94,30 +126,20 @@

free(root_list);

-   printf(root mid: %dx%d\n, root_w/2, root_h/2);
-   printf(window mid: %dx%d\n, WIDTH/2, HEIGHT/2);
-   
xpos = (root_w/2)-(WIDTH/2);
ypos = (root_h/2)-(HEIGHT/2);

-   printf(final pos: %dx%d\n, xpos, ypos);
-   
win = ewl_window_new();
ewl_window_title_set(EWL_WINDOW(win), Empower!);
ewl_window_name_set(EWL_WINDOW(win), Empower!);
ewl_window_class_set(EWL_WINDOW(win), Empower!);
ewl_object_size_request(EWL_OBJECT(win), WIDTH, HEIGHT);
ewl_window_move(EWL_WINDOW(win), xpos, ypos);
-
-   /*
-   ewl_window_override_set(EWL_WINDOW(win), 1);
-   ewl_window_keyboard_grab_set(EWL_WINDOW(win),1);
-   ewl_window_pointer_grab_set(EWL_WINDOW(win),1);
-   */
-
+   ewl_window_borderless_set(EWL_WINDOW(win));
ewl_window_raise(EWL_WINDOW(win));
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_REVEAL, reveal_cb, NULL);
+   ewl_callback_append(win, EWL_CALLBACK_KEY_DOWN, check_key, NULL);
ewl_widget_show(win);

vbox = ewl_vbox_new();
@@ -146,6 +168,7 @@

Ewl_Widget *separator = ewl_hseparator_new();
ewl_container_child_append(EWL_CONTAINER(vbox), separator);
+   ewl_widget_color_set(EWL_WIDGET(separator),200,200,200,200);
ewl_widget_show(separator);


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
empower.c 


Log Message:
May have fixed the sticking window problem, and if not you should be able to 
control your keyboard and mouse.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/empower.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- empower.c   4 Apr 2006 01:08:06 -   1.4
+++ empower.c   4 Apr 2006 01:19:55 -   1.5
@@ -53,13 +53,15 @@

if(pid == 0)
{   
+   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
+   ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
sudo_pipe = popen(buf, w);
fprintf(sudo_pipe, %s\n, password);
pclose(sudo_pipe);
}   
else
{   
-   ewl_widget_hide(win);
+   ewl_widget_destroy(win);
wait(pid);
}
}
@@ -137,6 +139,8 @@
ewl_window_move(EWL_WINDOW(win), xpos, ypos);
ewl_window_borderless_set(EWL_WINDOW(win));
ewl_window_raise(EWL_WINDOW(win));
+   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
+   ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_REVEAL, reveal_cb, NULL);
ewl_callback_append(win, EWL_CALLBACK_KEY_DOWN, check_key, NULL);




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Added Files:
empower_gui.c 


Log Message:
Split up code because i was bored.





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Added Files:
empower_cb.c 


Log Message:
Split up code because i was bored.





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
empower.c 


Log Message:
Split up code because i was bored.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/empower.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- empower.c   4 Apr 2006 01:19:55 -   1.5
+++ empower.c   4 Apr 2006 02:46:44 -   1.6
@@ -1,83 +1,9 @@
-#include unistd.h
-#include string.h
-#include stdio.h
-#include Ewl.h
-
-#define WIDTH 250
-#define HEIGHT 100
-
-char buf[1024];
-Ewl_Widget *win = NULL;
-char password[1024];
-
-int xpos, ypos;
-
-void check_key(Ewl_Widget *w, void *event, void *data)
-{
-   Ewl_Event_Key_Down *ev;
-   
-   ev = event;
-   
-   if(!ev-modifiers)
-   {
-   if(strcmp(ev-keyname, Escape) == 0)
-   {
-   ewl_widget_destroy(win);
-   ewl_main_quit();
-   }
-   }
-}
-
-void destroy_cb(Ewl_Widget *w, void *event, void *data)
-{
-   ewl_widget_destroy(win);
-   ewl_main_quit();
-}
-
-void reveal_cb(Ewl_Widget *w, void *event, void *data)
-{
-   ewl_window_move(EWL_WINDOW(win), xpos, ypos);
-}
-
-void pipe_to_sudo(Ewl_Widget *w, void *event, void *data)
-{  
-   FILE *sudo_pipe;
-   
-   const char *pass = ewl_password_text_get(EWL_PASSWORD(data));
-   
-   if(pass)
-   {
-   snprintf(password, 1024, %s, pass);
-   
-   pid_t pid = fork();
-   
-   if(pid == 0)
-   {   
-   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
-   ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
-   sudo_pipe = popen(buf, w);
-   fprintf(sudo_pipe, %s\n, password);
-   pclose(sudo_pipe);
-   }   
-   else
-   {   
-   ewl_widget_destroy(win);
-   wait(pid);
-   }
-   }
-   ewl_main_quit();
-}
+#include Empower.h
 
 int main(int argc, char** argv)
 {
--argc; ++argv;

-   Ewl_Widget *entry = NULL;
-   Ewl_Widget *ok_button = NULL;
-   Ewl_Widget *cancel_button = NULL;
-   Ewl_Widget *progtext = NULL;
-   Ewl_Widget *vbox=NULL, *hbox = NULL;
-   
if(argc)//commands
{
pid_t id = fork();
@@ -106,98 +32,7 @@
return 1;
}

-   if(!ecore_x_init(NULL))
-   {
-   printf(Unable to init ecore\n);
-   return 1;
-   }
-   
-   if(!ewl_init(argc, argv))
-   {
-   printf(Unable to init ewl\n);
-   return 1;
-   }
-   
-   int num_roots=0;
-   int root_w=0, root_h=0;
-   Ecore_X_Window *root_list = NULL;
-   root_list = ecore_x_window_root_list(num_roots);
-   
-   /*FIXME: add checks for xinerama*/
-   ecore_x_window_size_get(root_list[0], root_w, root_h);
-   
-   free(root_list);
-   
-   xpos = (root_w/2)-(WIDTH/2);
-   ypos = (root_h/2)-(HEIGHT/2);
-   
-   win = ewl_window_new();
-   ewl_window_title_set(EWL_WINDOW(win), Empower!);
-   ewl_window_name_set(EWL_WINDOW(win), Empower!);
-   ewl_window_class_set(EWL_WINDOW(win), Empower!);
-   ewl_object_size_request(EWL_OBJECT(win), WIDTH, HEIGHT);
-   ewl_window_move(EWL_WINDOW(win), xpos, ypos);
-   ewl_window_borderless_set(EWL_WINDOW(win));
-   ewl_window_raise(EWL_WINDOW(win));
-   ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
-   ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
-   ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
-   ewl_callback_append(win, EWL_CALLBACK_REVEAL, reveal_cb, NULL);
-   ewl_callback_append(win, EWL_CALLBACK_KEY_DOWN, check_key, NULL);
-   ewl_widget_show(win);
-   
-   vbox = ewl_vbox_new();
-   ewl_container_child_append(EWL_CONTAINER(win), vbox);
-   ewl_object_fill_policy_set(EWL_OBJECT(vbox), EWL_FLAG_FILL_ALL);
-   ewl_widget_show(vbox);
-   
-   hbox = ewl_hbox_new();
-   ewl_container_child_append(EWL_CONTAINER(vbox), hbox);
-   ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_ALL);
-   ewl_widget_show(hbox);
-   
-   progtext = ewl_label_new();
-   ewl_label_text_set(EWL_LABEL(progtext), Password: );
-   ewl_object_padding_set(EWL_OBJECT(progtext),5,0,24,0);
-   ewl_container_child_append(EWL_CONTAINER(hbox), progtext);
-   ewl_object_maximum_size_set(EWL_OBJECT(progtext), 75, 20);
-   ewl_widget_show(progtext);
-   
-   entry = ewl_password_new();
-   ewl_container_child_append(EWL_CONTAINER(hbox), entry);
-   

E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Added Files:
Empower.h 


Log Message:
Oops, forgot the include file





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Modified Files:
Makefile.am 


Log Message:
More splitting

===
RCS file: /cvs/e/e17/proto/empower/src/bin/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 3 Apr 2006 00:06:53 -   1.1
+++ Makefile.am 4 Apr 2006 04:22:57 -   1.2
@@ -1,18 +1,3 @@
-## Process this file with automake to produce Makefile.in 
+SUBDIRS = ewl
 
-#INCLUDES = \
-#-I$(top_srcdir) -I$(top_srcdir)/src/include -I$(top_srcdir)/src/lib \
-#-I$(top_builddir)/src/lib
-
-bin_PROGRAMS = empower
-
-empower_SOURCES = empower.c
-
-empower_CFLAGS = @ewl_cflags@
-
-empower_LDADD =  $(INTLLIBS) \
-   @ewl_libs@
-
-EXTRA_DIST = 
-   
 MAINTAINERCLEANFILES = Makefile.in config.h.in




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/etk




Log Message:
Directory /cvs/e/e17/proto/empower/src/bin/etk added to the repository





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl




Log Message:
Directory /cvs/e/e17/proto/empower/src/bin/ewl added to the repository





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Added Files:
Empower.h Makefile.am empower.c empower_cb_ewl.c 
empower_gui_ewl.c 


Log Message:
The files for ewl version, etk version coming soon





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Removed Files:
Empower.h empower.c empower_cb.c empower_gui.c 


Log Message:
Clean up :)





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/etk


Added Files:
Empower.h Makefile.am empower.c empower_cb_etk.c 
empower_gui_etk.c 


Log Message:
Clean up :)





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/etk


Modified Files:
Makefile.am 
Removed Files:
Empower.h empower.c empower_cb_etk.c empower_gui_etk.c 


Log Message:
I'll get used to this some day

===
RCS file: /cvs/e/e17/proto/empower/src/bin/etk/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 4 Apr 2006 04:32:43 -   1.1
+++ Makefile.am 4 Apr 2006 04:34:46 -   1.2
@@ -6,12 +6,12 @@
 
 bin_PROGRAMS = empower_etk
 
-empower_SOURCES = empower.c \
+empower_etk_SOURCES = empower.c \
empower_cb_etk.c empower_gui_etk.c
 
-empower_CFLAGS = @etk_cflags@
+empower_etk_CFLAGS = @etk_cflags@
 
-empower_LDADD =  $(INTLLIBS) \
+empower_etk_LDADD =  $(INTLLIBS) \
@etk_libs@
 
 EXTRA_DIST = 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower




Log Message:
Directory /cvs/e/e17/proto/empower added to the repository





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src




Log Message:
Directory /cvs/e/e17/proto/empower/src added to the repository





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/m4




Log Message:
Directory /cvs/e/e17/proto/empower/m4 added to the repository





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/m4


Added Files:
ac_expand_dir.m4 ac_path_generic.m4 empower.spec.in 


Log Message:
Initial import of empower, a graphical sudo program





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Added Files:
AUTHORS COPYING COPYING-PLAIN ChangeLog INSTALL Makefile.am 
NEWS README autogen.sh configure.in empower.spec.in 


Log Message:
Initial import of empower, a graphical sudo program





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin


Added Files:
Makefile.am empower.c 


Log Message:
Initial import of empower, a graphical sudo program





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2006-04-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src


Added Files:
Makefile.am 


Log Message:
Initial import of empower, a graphical sudo program





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs