diff options
author | 2016-11-09 18:31:50 +0100 | |
---|---|---|
committer | 2016-11-09 18:31:50 +0100 | |
commit | f15a0c90d9514d1edf77b390076ae92d7a99a0ab (patch) | |
tree | 5fedc1a7011b707c3d9c0c22f6de429910699b2d /libhomescreen | |
parent | 557bdea00ff9a398f0646fdcae653791c9cb640c (diff) |
Changes to org.agl.homescreen interface
Change parameter for renderSurfaceToArea.
Remove getLayoutRenderAreaForSurfaceId.
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'libhomescreen')
-rw-r--r-- | libhomescreen/include/libhomescreen.hpp | 3 | ||||
-rw-r--r-- | libhomescreen/src/libhomescreen.cpp | 35 |
2 files changed, 3 insertions, 35 deletions
diff --git a/libhomescreen/include/libhomescreen.hpp b/libhomescreen/include/libhomescreen.hpp index c028617..f88b35f 100644 --- a/libhomescreen/include/libhomescreen.hpp +++ b/libhomescreen/include/libhomescreen.hpp @@ -23,10 +23,9 @@ public: // these are representing the D-Bus methods: std::list<int> getAllSurfacesOfProcess(int pid); - sRectangle getLayoutRenderAreaForSurfaceId(int surfaceId); int getSurfaceStatus(int surfaceId); void hardKeyPressed(int key); - void renderSurfaceToArea(int surfaceId, const sRectangle &renderArea); + void renderSurfaceToArea(int surfaceId, int layoutArea); void requestSurfaceIdToFullScreen(int surfaceId); private: diff --git a/libhomescreen/src/libhomescreen.cpp b/libhomescreen/src/libhomescreen.cpp index 03e95d6..374cfe8 100644 --- a/libhomescreen/src/libhomescreen.cpp +++ b/libhomescreen/src/libhomescreen.cpp @@ -67,30 +67,6 @@ std::list<int> LibHomeScreen::getAllSurfacesOfProcess(int pid) return result; } -sRectangle LibHomeScreen::getLayoutRenderAreaForSurfaceId(int surfaceId) -{ - sRectangle result; - GError *err = NULL; - - GVariant *out_renderArea; - - lib_home_screen_homescreen_call_get_layout_render_area_for_surface_id_sync( - mp_libHomeScreenHomescreen_Proxy, - surfaceId, - &out_renderArea, - NULL, - &err); - - if (NULL != err) - { - fprintf(stderr, "Unable to call getLayoutRenderAreaForSurfaceId: %s\n", err->message); - } - - g_variant_get(out_renderArea, "(iiii)", result.x, result.y, result.width, result.height); - - return result; -} - int LibHomeScreen::getSurfaceStatus(int surfaceId) { int result; @@ -129,21 +105,14 @@ void LibHomeScreen::hardKeyPressed(int key) } } -void LibHomeScreen::renderSurfaceToArea(int surfaceId, const sRectangle &renderArea) +void LibHomeScreen::renderSurfaceToArea(int surfaceId, int layoutArea) { GError *err = NULL; - GVariant *variant; - GVariantBuilder *builder; - builder = g_variant_builder_new(G_VARIANT_TYPE("(iiii)")); - g_variant_builder_add(builder, "(iiii)", renderArea.x, renderArea.y, renderArea.width, renderArea.height); - variant = g_variant_new("(iiii)", builder); - g_variant_builder_unref(builder); - lib_home_screen_homescreen_call_render_surface_to_area_sync( mp_libHomeScreenHomescreen_Proxy, surfaceId, - variant, + layoutArea, NULL, &err); |