Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
layout_etk_simple.c layout_ewl_simple.c
Log Message:
* Make the location add dialog actually work
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_etk_simple.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- layout_etk_simple.c 23 Feb 2006 23:29:49 -0000 1.14
+++ layout_etk_simple.c 24 Feb 2006 23:19:48 -0000 1.15
@@ -26,6 +26,8 @@
ETK_MENU_ITEM_SEPARATOR
} Etk_Menu_Item_Type;
+void layout_etk_simple_add_header(entropy_gui_component_instance* instance,
char* name, char* uri);
+
static Etk_Bool
_etk_window_deleted_cb (Etk_Object * object, void *data)
{
@@ -110,7 +112,7 @@
void _location_add_cb(Etk_Object *obj, void *data)
{
printf("Add location\n");
- etk_location_add_dialog_create((entropy_gui_component_instance*)data);
+ etk_location_add_dialog_create((entropy_gui_component_instance*)data,
layout_etk_simple_add_header);
}
void layout_etk_simple_add_header(entropy_gui_component_instance* instance,
char* name, char* uri)
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_ewl_simple.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- layout_ewl_simple.c 22 Feb 2006 21:03:47 -0000 1.47
+++ layout_ewl_simple.c 24 Feb 2006 23:19:48 -0000 1.48
@@ -11,6 +11,8 @@
#define HEADER_CONFIG_MAX 2048
+
+
static Ewl_Widget *win;
static int _ewl_layout_count = 0;
@@ -30,8 +32,6 @@
void layout_ewl_simple_config_create (entropy_core * core);
void layout_ewl_simple_add_header (entropy_gui_component_instance * instance,
char *name, char *uri);
-void layout_ewl_simple_add_config_location (entropy_gui_component_instance *
- instance, char *name, char *uri);
void __destroy_main_window (Ewl_Widget * main_win, void *ev_data,
void *user_data);
void contract_cb (Ewl_Widget * main_win, void *ev_data, void *user_data);
@@ -180,14 +180,14 @@
printf ("New URI is: '%s'\n", new_uri);
layout_ewl_simple_add_header (instance, display_name, new_uri);
- layout_ewl_simple_add_config_location (instance, display_name, new_uri);
+ entropy_config_standard_structures_add (instance, display_name, new_uri);
} else if (ewl_checkbutton_is_checked (EWL_CHECKBUTTON
(viewer->sftp_radio))) {
snprintf (new_uri, 2048, "sftp:///%s%s", server,path);
printf ("New URI is: '%s'\n", new_uri);
layout_ewl_simple_add_header (instance, display_name, new_uri);
- layout_ewl_simple_add_config_location (instance, display_name, new_uri);
+ entropy_config_standard_structures_add (instance, display_name, new_uri);
} else if (ewl_checkbutton_is_checked (EWL_CHECKBUTTON
(viewer->samba_radio))) {
if (server) {
@@ -203,7 +203,7 @@
layout_ewl_simple_add_header (instance, display_name, new_uri);
}
- layout_ewl_simple_add_config_location (instance, display_name, new_uri);
+ entropy_config_standard_structures_add (instance, display_name, new_uri);
}
else {
printf ("Server required for remote file systems!\n");
@@ -491,22 +491,6 @@
ewl_widget_show (window);
}
-
-void
-layout_ewl_simple_add_config_location (entropy_gui_component_instance *
- instance, char *name, char *uri)
-{
- char *current_uri =
- entropy_config_str_get ("layout_ewl_simple", "structure_bar");
- char new_uri[HEADER_CONFIG_MAX];
-
- snprintf (new_uri, HEADER_CONFIG_MAX, "%s|%s;%s", current_uri, name, uri);
- entropy_config_str_set ("layout_ewl_simple", "structure_bar", new_uri);
-
- entropy_free (current_uri);
-}
-
-
void
layout_ewl_simple_config_create (entropy_core * core)
{
-------------------------------------------------------
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=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs