Enlightenment CVS committal
Author : codewarrior
Project : e17
Module : proto
Dir : e17/proto/exhibit/src/bin
Modified Files:
exhibit_main.c
Log Message:
exhibit:
- null check
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/exhibit/src/bin/exhibit_main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- exhibit_main.c 2 Jan 2006 14:47:45 -0000 1.29
+++ exhibit_main.c 2 Jan 2006 23:50:18 -0000 1.30
@@ -847,19 +847,25 @@
etk_signal_connect("clicked", ETK_OBJECT(e->entry[1]),
ETK_CALLBACK(_ex_main_goto_dir_clicked_cb), e);
/* create first tab but dont place it in notebook */
- if(ecore_file_is_dir(dir))
- tab = _ex_tab_new(e, dir);
- else if(ecore_file_exists(dir))
- {
- char *dir2;
-
- dir2 = ecore_file_get_dir(dir);
- tab = _ex_tab_new(e, dir2);
- free(dir2);
- file = (const char*)ecore_file_get_file((const char*)dir);
- }
- else
+ if(dir)
+ {
+ if(ecore_file_is_dir(dir))
+ tab = _ex_tab_new(e, dir);
+ else if(ecore_file_exists(dir))
+ {
+ char *dir2;
+
+ dir2 = ecore_file_get_dir(dir);
+ tab = _ex_tab_new(e, dir2);
+ free(dir2);
+ file = (const char*)ecore_file_get_file((const char*)dir);
+ }
+ else
+ tab = _ex_tab_new(e, ".");
+ }
+ else
tab = _ex_tab_new(e, ".");
+
e->cur_tab = tab;
e->tabs = evas_list_append(e->tabs, tab);
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs