2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "ge-ui-util.h"
20 #include "ge-button.h"
21 #include "ge-strings.h"
23 Evas_Object *_ge_but_create_but(Evas_Object *parent, ge_but_mode mode, But_Smart_Cb cb_func, const void *data)
25 ge_dbg("Button mode: %d", mode);
26 Evas_Object *btn = NULL;
27 GE_CHECK_NULL(parent);
29 btn = elm_button_add(parent);
34 elm_object_text_set(btn,
35 (char*)_GE_GETSYSTEMSTR("IDS_COM_SK_OK"));
38 elm_object_text_set(btn,
39 (char*)_GE_GETSYSTEMSTR("IDS_COM_SK_CANCEL"));
46 evas_object_smart_callback_add(btn, "clicked", cb_func, data);