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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gladexml.pre:180:    int id;    struct object *o1;    GtkWidget *w;    struct signal_data *sd;       get_all_args("get_signal_id",args,"%o",&o1);    w=GTK_WIDGET(get_gobject(o1));    if (!w)    Pike_error("GladeXML->get_signal_id: Invalid argument 1, wanted GTK2 object of type WIDGET.\n");    sd=g_object_get_data(G_OBJECT(w),"signal-data"); +  pgtk2_pop_n_elems(args);    if (sd)    push_int(sd->signal_id);    else    push_int(-1);    }   }      void signal_autoconnect(mapping(string:function) callbacks, mixed data)   //! Try to connect functions to all signals in the interface. The mapping   //! should consist of handler name : function pairs. The data argument will   //! be saved and sent as the first argument to all callback functions.   {    pgtk2_verify_inited();    if (args!=2 || Pike_sp[-args].type!=PIKE_T_MAPPING)    Pike_error("GTK2.GladeXML->signal_autoconnect: Invalid arguments, expected (mapping,mixed)\n");    glade_xml_signal_autoconnect_full(GLADE_XML(THIS->obj),pgtk2__signal_connect,&args);    RETURN_THIS();   }      endrequire;