Allow Windows close by Windows cross button
}
}
+void WrtClient::ExitCallback(void* data,
+ Evas_Object * /*obj*/,
+ void * /*event_info*/)
+{
+ LogInfo("ExitCallback");
+ Assert(data);
+
+ WrtClient* This = static_cast<WrtClient*>(data);
+
+ This->OnTerminate();
+}
+
+
void WrtClient::connectElmCallback()
{
Assert(m_windowData);
&WrtClient::backButtonCallback,
this);
}
+ evas_object_smart_callback_add(m_windowData->m_win,
+ "delete,request",
+ &WrtClient::ExitCallback,
+ this);
}
void WrtClient::setLayout(Evas_Object* newBuffer)
static void backButtonCallback(void* data,
Evas_Object* obj,
void* event_info);
+ // UI callback
+ static void ExitCallback(void* data,
+ Evas_Object* obj,
+ void* event_info);
// Low Memory Callback
static int appcoreLowMemoryCallback(void* data);