Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Feb 20, 2021
1 parent 1769889 commit 23e04e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/app_helper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import awtk_locator as locator
from app_helper_base import AppHelperBase

def Helper(ARGUMENTS):
locator.init(ARGUMENTS)

class Helper(AppHelperBase):
def getAwtkRoot(self):
return locator.getAwtkOrAwtkLinuxFbRoot(self.LINUX_FB)
from app_helper_base import AppHelperBase
return AppHelperBase(ARGUMENTS)
11 changes: 11 additions & 0 deletions src/tk_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -7358,6 +7358,16 @@ static int wrap_widget_is_overlay(lua_State* L) {
return 1;
}

static int wrap_widget_is_opened_dialog(lua_State* L) {
bool_t ret = 0;
widget_t* widget = (widget_t*)tk_checkudata(L, 1, "widget_t");
ret = (bool_t)widget_is_opened_dialog(widget);

lua_pushboolean(L, (lua_Integer)(ret));

return 1;
}

static int wrap_widget_is_opened_popup(lua_State* L) {
bool_t ret = 0;
widget_t* widget = (widget_t*)tk_checkudata(L, 1, "widget_t");
Expand Down Expand Up @@ -7767,6 +7777,7 @@ static const struct luaL_Reg widget_t_member_funcs[] = {
{"is_dialog", wrap_widget_is_dialog},
{"is_popup", wrap_widget_is_popup},
{"is_overlay", wrap_widget_is_overlay},
{"is_opened_dialog", wrap_widget_is_opened_dialog},
{"is_opened_popup", wrap_widget_is_opened_popup},
{"is_keyboard", wrap_widget_is_keyboard},
{"is_designing_window", wrap_widget_is_designing_window},
Expand Down

0 comments on commit 23e04e2

Please sign in to comment.