break out dbus popup of doom into separate function for reuse
This commit is contained in:
parent
e2a21f71db
commit
627050e55f
|
@ -118,6 +118,22 @@ static void filesystem_next(void *data, Evas_Object *obj, void *event_info);
|
|||
static void filesystem_prev(void);
|
||||
static Evas_Object *filesystem_new(const char *uri);
|
||||
|
||||
static void
|
||||
error_o_doom(void)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
o = elm_popup_add(win);
|
||||
elm_object_text_set(o, _("<b>THIS IS THE ANGRY ERROR MESSAGE!<br/>"
|
||||
"DBUS </b>.service<b> INSTALLATION FAILED.<br/>"
|
||||
"FIX YOUR INSTALL OR START '</b>empdd<b>' MANUALLY.<br/>"
|
||||
"<br/>"
|
||||
"RESTART EMPC WHEN YOU HAVE FIXED THIS.<br/>"
|
||||
"<br/>"
|
||||
"PS. CAPS LOCK IS FUN FOR DEVELOPERS!"));
|
||||
evas_object_show(o);
|
||||
}
|
||||
|
||||
static inline unsigned char
|
||||
bg_next_get(void)
|
||||
{
|
||||
|
@ -1950,17 +1966,7 @@ empc_isconnected(Eldbus_Proxy *proxy EINA_UNUSED, void *data EINA_UNUSED, Eldbus
|
|||
{
|
||||
if (error && error->error && error->error[0])
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
o = elm_popup_add(win);
|
||||
elm_object_text_set(o, _("<b>THIS IS THE ANGRY ERROR MESSAGE!<br/>"
|
||||
"DBUS </b>.service<b> INSTALLATION FAILED.<br/>"
|
||||
"FIX YOUR INSTALL OR START '</b>empdd<b>' MANUALLY.<br/>"
|
||||
"<br/>"
|
||||
"RESTART EMPC WHEN YOU HAVE FIXED THIS.<br/>"
|
||||
"<br/>"
|
||||
"PS. CAPS LOCK IS FUN FOR DEVELOPERS!"));
|
||||
evas_object_show(o);
|
||||
error_o_doom();
|
||||
return;
|
||||
}
|
||||
if (connected)
|
||||
|
|
Loading…
Reference in New Issue