Enlightenment CVS committal

Author  : essiene
Project : e17
Module  : proto

Dir     : e17/proto/entrance_edit_gui/src/gui


Modified Files:
        egui_graphics_selector.c main.c 


Log Message:
- Added ew_button a generic button.
- Use ew_button internally in ew_dialog. Clean things up a bit. That baby is 
looking saner by the minute.
- Use ew_button to spruce up theme and background 'browse' dialogs. Now all we 
need is a fileselector. Anyone for sale? I'll give LInuxTitan's left pinkie :P

===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/gui/egui_graphics_selector.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- egui_graphics_selector.c    15 Aug 2006 00:51:53 -0000      1.5
+++ egui_graphics_selector.c    15 Aug 2006 02:36:45 -0000      1.6
@@ -9,6 +9,7 @@
 static void _gs_cb_ok(void *, void *);
 static void _gs_cb_apply(void *, void *);
 static void _gs_cb_close(void *, void *);
+static void _gs_cb_browse(void*, void*);
 
 static char* _gs_get_path(const char *);
 static void _gs_close(void);
@@ -20,6 +21,7 @@
 static Entrance_Widget img_preview;
 static Entrance_List list_thumbs;
 static Entrance_Widget browse_entry;
+static Entrance_Widget browse_button;
 static Entrance_Widget group_graphics;
 static Entrance_Widget group_preview;
 static Entrance_Widget group_options;
@@ -48,10 +50,15 @@
    
    ew_group_add(group_graphics, list_thumbs);
 
-   group_options = ew_dialog_group_add(win, _("Browse System"), 
EW_GROUP_HORIZONTAL);
-   browse_entry = ew_entry_new(NULL, EW_FALSE);
+   char t[PATH_MAX];
+   snprintf(t, PATH_MAX, "Browse system ror %ss", egs.name);
+   group_options = ew_dialog_group_add(win, t, EW_GROUP_HORIZONTAL);
 
+   browse_entry = ew_entry_new(NULL, EW_FALSE);
    ew_group_add(group_options, browse_entry);
+
+   browse_button = ew_button_new(_("Browse..."), _gs_cb_browse, NULL);
+   ew_group_add(group_options, browse_button);
    
    ew_dialog_close_button_add(win, _gs_cb_close, NULL);
    ew_dialog_apply_button_add(win, _gs_cb_apply, NULL);
@@ -85,6 +92,12 @@
 _gs_cb_close(void *object, void *data)
 {
        _gs_close();
+}
+
+static void
+_gs_cb_browse(void *object, void* data)
+{
+       ew_messagebox_ok("Entrance Configuration - Notice", "Browsing for files 
:)", EW_MESSAGEBOX_ICON_MESSAGE);
 }
 
 static char*
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/gui/main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- main.c      14 Aug 2006 17:08:55 -0000      1.7
+++ main.c      15 Aug 2006 02:36:45 -0000      1.8
@@ -4,7 +4,7 @@
 #include "config.h"
 
 static void _main_dialog_show(void);
-static void _close_button_cb(void *, int, void *);
+static void _close_button_cb(void *, void *);
 
 static Entrance_Dialog dialog;
 
@@ -47,7 +47,7 @@
 }
 
 static void
-_close_button_cb(void *sender, int response, void *data)
+_close_button_cb(void *sender, void *data)
 {
        ew_dialog_destroy(dialog);
        ew_main_quit();



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

Reply via email to