Re: gtk function with argv

2017-04-11 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, I think what you are looking for is a C variadic function. Something that works like g_object_set() with a Null terminated list of arguments. Using dynamic glib containers might be a better choice. It is simpler to just pass a single pointer with your user_data to functions which i

gtk function with argv

2017-04-08 Thread RĂºben Rodrigues
Why guys, I have a doubt that is more about C language that gtk+ but it's to apply to gtk+. I have this function: GtkChart vChart_Init(GtkWidget *widget, GtkSeries *series) My doubt is: How can i use function like this: vChart_Init(GTK_WIDGET(widget), "Series A", "Series B", "Series C"); I n