pike.git / src / post_modules / GTK2 / source / gtkactiongroup.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkactiongroup.pre:35:      void create(string|mapping(string:mixed) name_or_props)   //! Creates a new GTK2.ActionGroup object. The name of the action group is   //! used when associating keybindings with the actions.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    char *name;    GtkActionGroup *gag; -  get_all_args("create",args,"%s",&name); +  get_all_args(NULL,args,"%s",&name);    gag=gtk_action_group_new(name);    THIS->obj=G_OBJECT(gag);    } else {    INIT_WITH_PROPS(GTK_TYPE_ACTION_GROUP);    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();   }      string get_name();
pike.git/src/post_modules/GTK2/source/gtkactiongroup.pre:97:   //! <p>   //! If accelerator is omitted, attempts to use the accelerator associated with   //! the stock_id of the action.   //! <p>   //! Accel paths are set to &lt;Actions&gt;/group-name/action-name.   {    pgtk2_verify_inited();    {    struct object *o1;    char *accel=NULL; -  get_all_args("add_action",args,"%o.%s",&o1,&accel); +  get_all_args(NULL,args,"%o.%s",&o1,&accel);    gtk_action_group_add_action_with_accel(GTK_ACTION_GROUP(THIS->obj),    GTK_ACTION(get_gobject(o1)),accel);    }    RETURN_THIS();   }      void remove_action(GTK2.Action action);   //! Removes an action object.      %{
pike.git/src/post_modules/GTK2/source/gtkactiongroup.pre:165:   //! ]);   {    pgtk2_verify_inited();    {    struct array *a;    struct mapping *m;    GtkActionEntry gta;    struct svalue *sv;    struct signal_data *sd = NULL;    int i; -  get_all_args("add_actions",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL || a->size<1)    Pike_error("Invalid array argument 1.\n");    for (i=0; i<a->size; i++) {    memset(&gta,0,sizeof(GtkActionEntry));    sd=NULL;    if (TYPEOF(ITEM(a)[i]) != PIKE_T_MAPPING)    continue;    m=(ITEM(a)+i)->u.mapping;    sv=low_mapping_string_lookup(m,_STR("name"));    if (sv && TYPEOF(*sv) == PIKE_T_STRING && !sv->u.string->size_shift) {
pike.git/src/post_modules/GTK2/source/gtkactiongroup.pre:245:   //! ]);   {    pgtk2_verify_inited();    {    struct array *a;    struct mapping *m;    GtkToggleActionEntry gta;    struct svalue *sv;    struct signal_data *sd = NULL;    int i; -  get_all_args("add_toggle_actions",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL || a->size<1)    Pike_error("Invalid array argument 1.\n");    for (i=0; i<a->size; i++) {    memset(&gta,0,sizeof(GtkToggleActionEntry));    if (TYPEOF(ITEM(a)[i]) != PIKE_T_MAPPING)    continue;    m=(ITEM(a)+i)->u.mapping;    sv=low_mapping_string_lookup(m,_STR("name"));    if (sv && TYPEOF(*sv) == PIKE_T_STRING && !sv->u.string->size_shift)    gta.name=(const gchar *)STR0(sv->u.string);
pike.git/src/post_modules/GTK2/source/gtkactiongroup.pre:323:   //! ]);   {    pgtk2_verify_inited();    {    struct array *a;    struct mapping *m;    GtkRadioActionEntry *gta;    struct svalue *sv,*sv2,*sv3;    struct signal_data *sd;    int i,j; -  get_all_args("add_radio_actions",args,"%A%*%*",&a,&sv2,&sv3); +  get_all_args(NULL,args,"%A%*%*",&a,&sv2,&sv3);    if (a==NULL || a->size<1)    Pike_error("Invalid array argument 1.\n");    gta=(GtkRadioActionEntry *)g_malloc0(sizeof(GtkRadioActionEntry)*a->size);    if (gta==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("add_radio_actions",sizeof(GtkRadioActionEntry)*a->size);    for (i=j=0; i<a->size; i++) {    if (TYPEOF(ITEM(a)[i]) != PIKE_T_MAPPING)    continue;    m=(ITEM(a)+i)->u.mapping;    sv=low_mapping_string_lookup(m,_STR("name"));