Make calculator not dependent of ecore_x. 40/15740/2
authorFabio Mello <fabio.mello@intel.com>
Mon, 20 Jan 2014 12:51:44 +0000 (10:51 -0200)
committerWang Quanxian <quanxian.wang@intel.com>
Tue, 28 Jan 2014 02:53:24 +0000 (18:53 -0800)
Change-Id: I874efb6a865e8694f0efbe78df70675d5b89b1ea
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
CMakeLists.txt
debian/control
packaging/org.tizen.calculator.spec
src/calc-main.c
src/calc-view.c
src/calculator_edje.c

index 8a401d2..f83a399 100644 (file)
@@ -31,9 +31,9 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED elementary  utilX
+pkg_check_modules(pkgs REQUIRED elementary
                                 dlog glib-2.0 evas edje vconf
-                                ecore-x ecore ecore-input capi-appfw-application
+                                ecore ecore-input capi-appfw-application
                                 feedback
 )
 
index 99d8827..5fe0ca7 100644 (file)
@@ -3,7 +3,7 @@ Section: devel
 Priority: extra
 Maintainer: Zhang Xiang <x1986.zhang@samsung.com>, Wang YongJun <yj.wang@samsung.com>, Zhou Zhibin <zhibin.zhou@samsung.com>
 Uploaders:
-Build-Depends: debhelper (>= 5), libelm-dev, libslp-utilx-dev, dlog-dev, libsvi-dev, libevas-dev, libedje-dev, capi-appfw-application-dev
+Build-Depends: debhelper (>= 5), libelm-dev, dlog-dev, libsvi-dev, libevas-dev, libedje-dev, capi-appfw-application-dev
 Standards-Version: 0.1.0
 
 Package: com.samsung.calculator
index 65d1fbf..b9f3792 100644 (file)
@@ -13,7 +13,6 @@ BuildRequires: pkgconfig(edje)
 BuildRequires: pkgconfig(embryo)
 BuildRequires: pkgconfig(ecore)
 BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(utilX)
 BuildRequires: pkgconfig(appcore-efl)
 BuildRequires: pkgconfig(appcore-common)
 BuildRequires: pkgconfig(dlog)
index 0faa445..69284da 100644 (file)
@@ -16,8 +16,6 @@
 *
 */
 #include <dlog.h>
-#include <Ecore_X.h>           /* ecore_x_window_size_get */
-#include <utilX.h>             /* KEY_END */
 #include <feedback.h>
 #include "calc-main.h"
 #include "calc-view.h"
@@ -232,15 +230,11 @@ static Evas_Object *_create_win(const char *name)
 {
     CALC_FUN_BEG();
        Evas_Object *eo;
-       int w, h;
        eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
        if (eo) {
                elm_win_title_set(eo, name);
                evas_object_smart_callback_add(eo, "delete,request", _win_del,
                                               NULL);
-               ecore_x_window_size_get(ecore_x_window_root_first_get(), &w,
-                                       &h);
-               evas_object_resize(eo, w, h);
        }
        CALC_FUN_END();
        return eo;
index f9128df..dc5863e 100755 (executable)
@@ -22,7 +22,6 @@
 #include "calc-string.h"
 #include "calc-expression.h"
 #include "calc-view.h"
-#include <Ecore_X.h>
 
 extern char decimal_ch;
 extern char separator_ch;
index 30937d8..737d87c 100644 (file)
@@ -26,7 +26,6 @@
 #include "calc-expression.h"
 #include "calc-view.h"
 #include <feedback.h>
-#include <Ecore_X.h>
 #include <vconf.h>
 
 #define CALCULATOR_CHAR_IS_OPERATOR(C) ((C == '+')||(C == '-')||(C == 'x')||(C == '/'))        /**<judge if a char is a basic operator*/