~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/graphics/src/c/getHandleProperty/get_event_handler_property.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
/*        a handle                                                        */
22
22
/*------------------------------------------------------------------------*/
23
23
 
24
 
#include <stdlib.h>
25
 
 
26
 
#include "ObjectStructure.h"
 
24
#include "getHandleProperty.h"
27
25
#include "returnProperty.h"
28
26
#include "Scierror.h"
29
27
#include "localization.h"
32
30
#include "graphicObjectProperties.h"
33
31
 
34
32
/*------------------------------------------------------------------------*/
35
 
int get_event_handler_property(char *pobjUID)
 
33
int get_event_handler_property(void* _pvCtx, char* pobjUID)
36
34
{
37
35
    char* eventHandler = NULL;
38
 
    getGraphicObjectProperty(pobjUID, __GO_EVENTHANDLER_NAME__, jni_string, &eventHandler);
 
36
    getGraphicObjectProperty(pobjUID, __GO_EVENTHANDLER_NAME__, jni_string, (void **)&eventHandler);
39
37
 
40
38
    if ( eventHandler == NULL )
41
39
    {
42
 
        Scierror(999, _("'%s' property does not exist for this handle.\n"),"event_handler") ;
 
40
        Scierror(999, _("'%s' property does not exist for this handle.\n"), "event_handler") ;
43
41
        return -1 ;
44
42
    }
45
43
 
46
 
    return sciReturnString(eventHandler);
 
44
    return sciReturnString(_pvCtx, eventHandler);
47
45
}
48
46
/*------------------------------------------------------------------------*/