summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-09-06 22:11:27 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-09-06 22:21:20 -0400
commit627050e55fcf03efc8232dab726aed4a57dad8af (patch)
tree3cd200f6050f72bc2c3606b5088dbcbfcbf7ef80 /src
parente2a21f71dbc97d6095766b7ff4a34289bc16679d (diff)
break out dbus popup of doom into separate function for reuse
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index fce1738..dc538fb 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -118,6 +118,22 @@ static void filesystem_next(void *data, Evas_Object *obj, void *event_info);
118static void filesystem_prev(void); 118static void filesystem_prev(void);
119static Evas_Object *filesystem_new(const char *uri); 119static Evas_Object *filesystem_new(const char *uri);
120 120
121static void
122error_o_doom(void)
123{
124 Evas_Object *o;
125
126 o = elm_popup_add(win);
127 elm_object_text_set(o, _("<b>THIS IS THE ANGRY ERROR MESSAGE!<br/>"
128 "DBUS </b>.service<b> INSTALLATION FAILED.<br/>"
129 "FIX YOUR INSTALL OR START '</b>empdd<b>' MANUALLY.<br/>"
130 "<br/>"
131 "RESTART EMPC WHEN YOU HAVE FIXED THIS.<br/>"
132 "<br/>"
133 "PS. CAPS LOCK IS FUN FOR DEVELOPERS!"));
134 evas_object_show(o);
135}
136
121static inline unsigned char 137static inline unsigned char
122bg_next_get(void) 138bg_next_get(void)
123{ 139{
@@ -1950,17 +1966,7 @@ empc_isconnected(Eldbus_Proxy *proxy EINA_UNUSED, void *data EINA_UNUSED, Eldbus
1950{ 1966{
1951 if (error && error->error && error->error[0]) 1967 if (error && error->error && error->error[0])
1952 { 1968 {
1953 Evas_Object *o; 1969 error_o_doom();
1954
1955 o = elm_popup_add(win);
1956 elm_object_text_set(o, _("<b>THIS IS THE ANGRY ERROR MESSAGE!<br/>"
1957 "DBUS </b>.service<b> INSTALLATION FAILED.<br/>"
1958 "FIX YOUR INSTALL OR START '</b>empdd<b>' MANUALLY.<br/>"
1959 "<br/>"
1960 "RESTART EMPC WHEN YOU HAVE FIXED THIS.<br/>"
1961 "<br/>"
1962 "PS. CAPS LOCK IS FUN FOR DEVELOPERS!"));
1963 evas_object_show(o);
1964 return; 1970 return;
1965 } 1971 }
1966 if (connected) 1972 if (connected)