Skip to content

Commit

Permalink
Merge pull request MoSync#98 from asarrafi/master
Browse files Browse the repository at this point in the history
build fixes
  • Loading branch information
Ali Sarrafi committed Mar 16, 2012
2 parents 0134f21 + 080f0bd commit 3a752e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions runtimes/cpp/platforms/iphone/Classes/UI/MoSyncUISyscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ MoSyncUI* getMoSyncUI();

MAWidgetHandle maWidgetCreate(const char *widgetType);

int maWidgetScreenAddOptionsMenuItem(MAWidgetHandle widget, const char * title, int iconHandle, int iconPredefined);

int maWidgetSetProperty(MAWidgetHandle handle, const char *property, const char* value);

int maWidgetGetProperty(MAWidgetHandle handle, const char *property, char *value, int maxSize);
Expand Down
5 changes: 4 additions & 1 deletion runtimes/cpp/platforms/iphone/Classes/UI/MoSyncUISyscalls.mm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ int maWidgetDestroy(MAWidgetHandle handle) {

return returnValue;
}

/* dummy function for the build to work*/
int maWidgetScreenAddOptionsMenuItem(MAWidgetHandle widget, const char * title, int iconHandle, int iconPredefined) {
return -1;
}
int maWidgetSetProperty(MAWidgetHandle handle, const char *property, const char* value) {
IWidget* widget = [mosyncUI getWidget:handle];
if(widget == NULL) return MAW_RES_INVALID_HANDLE;
Expand Down

0 comments on commit 3a752e0

Please sign in to comment.