forked from enlightenment/enlightenment
Add a label telling user where the error log will be saved.
SVN revision: 28668
This commit is contained in:
parent
ced9b05edb
commit
40a4f610fa
|
@ -17,11 +17,11 @@ static void *_create_data(E_Config_Dialog *cfd);
|
||||||
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||||
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||||
static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||||
|
static Evas_Object *_dialog_scrolltext_create(Evas *evas, char *title, Ecore_Exe_Event_Data_Line *lines);
|
||||||
|
static void _dialog_save_cb(void *data, void *data2);
|
||||||
#if 0
|
#if 0
|
||||||
static void _dialog_resize(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
static void _dialog_resize(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
||||||
#endif
|
#endif
|
||||||
static Evas_Object *_dialog_scrolltext_create(Evas *evas, char *title, Ecore_Exe_Event_Data_Line *lines);
|
|
||||||
static void _dialog_save_cb(void *data, void *data2);
|
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
e_app_error_dialog(E_Container *con, E_App_Autopsy *app)
|
e_app_error_dialog(E_Container *con, E_App_Autopsy *app)
|
||||||
|
@ -228,6 +228,7 @@ _dialog_scrolltext_create(Evas *evas, char *title, Ecore_Exe_Event_Data_Line *li
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||||
{
|
{
|
||||||
|
char buf[4096];
|
||||||
int error_length = 0;
|
int error_length = 0;
|
||||||
Evas_Object *o, *ob, *os;
|
Evas_Object *o, *ob, *os;
|
||||||
E_App_Autopsy *app;
|
E_App_Autopsy *app;
|
||||||
|
@ -253,8 +254,14 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
|
||||||
e_widget_list_object_append(o, ob, 1, 1, 0.5);
|
e_widget_list_object_append(o, ob, 1, 1, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
ob = e_widget_button_add(evas, _("Save This Message"), "enlightenment/run", _dialog_save_cb, app, cfdata);
|
ob = e_widget_button_add(evas, _("Save This Message"), "enlightenment/run",
|
||||||
|
_dialog_save_cb, app, cfdata);
|
||||||
e_widget_list_object_append(o, ob, 0, 0, 0.5);
|
e_widget_list_object_append(o, ob, 0, 0, 0.5);
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), _("This error log will be saved as %s/%s.log"),
|
||||||
|
e_user_homedir_get(), app->app->name);
|
||||||
|
ob = e_widget_label_add(evas, buf);
|
||||||
|
e_widget_list_object_append(o, ob, 1, 1, 0.5);
|
||||||
|
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
@ -262,6 +269,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||||
{
|
{
|
||||||
|
char buf[4096];
|
||||||
int read_length = 0;
|
int read_length = 0;
|
||||||
int error_length = 0;
|
int error_length = 0;
|
||||||
Evas_Object *o, *of, *ob, *ot;
|
Evas_Object *o, *of, *ob, *ot;
|
||||||
|
@ -330,6 +338,11 @@ _advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data
|
||||||
ob = e_widget_button_add(evas, _("Save This Message"), "enlightenment/run", _dialog_save_cb, app, cfdata);
|
ob = e_widget_button_add(evas, _("Save This Message"), "enlightenment/run", _dialog_save_cb, app, cfdata);
|
||||||
e_widget_list_object_append(o, ob, 0, 0, 0.5);
|
e_widget_list_object_append(o, ob, 0, 0, 0.5);
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), _("This error log will be saved as %s/%s.log"),
|
||||||
|
e_user_homedir_get(), app->app->name);
|
||||||
|
ob = e_widget_label_add(evas, buf);
|
||||||
|
e_widget_list_object_append(o, ob, 1, 1, 0.5);
|
||||||
|
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue