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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcelllayout.pre:46:   //! instead of the standard attributes mapping for setting the column   //! value, and should set the value of the cell layout's cell renderer(s)   //! as appropriate. f may be 0 to remove an older one.   {    pgtk2_verify_inited();    {    struct svalue *sv1,*sv2;    struct object *o1;    struct signal_data *sd;    -  get_all_args("set_cell_data_func",args,"%o%*%*",&o1,&sv1,&sv2); +  get_all_args(NULL,args,"%o%*%*",&o1,&sv1,&sv2);    sd=(struct signal_data *)g_malloc(sizeof(struct signal_data));    if (sd==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("set_cell_data_func",sizeof(struct signal_data));    assign_svalue_no_free(&sd->cb,sv1);    assign_svalue_no_free(&sd->args,sv2);    gtk_cell_layout_set_cell_data_func(GTK_CELL_LAYOUT(THIS->obj),    GTK_CELL_RENDERER(get_gobject(o1)),    (GtkCellLayoutDataFunc)pgtk2_cell_layout_data_callback,    sd,(GtkDestroyNotify)pgtk2_free_signal_data);    }    RETURN_THIS();   }      void clear_attributes(GTK2.CellRenderer cell);   //! Clears all existing attributes.      endrequire;