Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/plugins Modified Files: ewl_icon_local_viewer.c Log Message: * Hmm - for some reason, calling ewl_object_minimum_w_set on an ewl_text triggers the lockup i've been seeing today. =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- ewl_icon_local_viewer.c 21 Nov 2005 11:50:54 -0000 1.29 +++ ewl_icon_local_viewer.c 22 Nov 2005 11:32:44 -0000 1.30 @@ -95,6 +95,7 @@ Ewl_Widget* button; char itext[100]; time_t stime; + window = ewl_window_new(); ewl_window_title_set(EWL_WINDOW(window), "File Properties"); @@ -133,9 +134,10 @@ ewl_container_child_append(EWL_CONTAINER(vbox), hbox); ewl_widget_show(hbox); + + text = ewl_text_new(); ewl_text_text_set(EWL_TEXT(text), "Location"); - ewl_object_minimum_w_set(EWL_OBJECT(text), 90); ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); @@ -160,22 +162,30 @@ + hbox = ewl_hbox_new(); ewl_container_child_append(EWL_CONTAINER(vbox), hbox); ewl_widget_show(hbox); text = ewl_text_new(); ewl_text_text_set(EWL_TEXT(text), "Type: "); - ewl_object_minimum_w_set(EWL_OBJECT(text), 90); ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); + + text = ewl_text_new(); - ewl_text_text_set(EWL_TEXT(text), file_stat->file->mime_type); + if (strlen(file_stat->file->mime_type)) { + ewl_text_text_set(EWL_TEXT(text), file_stat->file->mime_type); + } else { + ewl_text_text_set(EWL_TEXT(text), "object/unknown"); + } + ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); /*--------------------------------*/ - + + /*----------------------------------*/ hbox = ewl_hbox_new(); @@ -185,14 +195,18 @@ text = ewl_text_new(); ewl_text_text_set(EWL_TEXT(text), "Plugin URI"); ewl_container_child_append(EWL_CONTAINER(hbox), text); - ewl_object_minimum_w_set(EWL_OBJECT(text), 90); ewl_widget_show(text); + + text = ewl_text_new(); ewl_text_text_set(EWL_TEXT(text), file_stat->file->uri_base); ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); + + + /*---------------------------------*/ hbox = ewl_hbox_new(); ewl_container_child_append(EWL_CONTAINER(vbox), hbox); @@ -200,7 +214,6 @@ text = ewl_text_new(); ewl_text_text_set(EWL_TEXT(text), "Size: "); - ewl_object_minimum_w_set(EWL_OBJECT(text), 90); ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); @@ -218,7 +231,6 @@ text = ewl_text_new(); ewl_text_text_set(EWL_TEXT(text), "Modified Time"); - ewl_object_minimum_w_set(EWL_OBJECT(text), 90); ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); @@ -240,7 +252,6 @@ ewl_callback_append(EWL_WIDGET(button), EWL_CALLBACK_CLICKED, __destroy_properties_dialog, window); - /*printf("Got a 'stat available' object\n"); ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs