Re: populate gtk tree view from outside



On 09/12/2012 06:30 PM, Rudra Banerjee wrote:
Oliver,
Thanks for your reply.
The problem basically is to pass on the function argument from one to
other.

you need to create a header file (main.h) that has the enum, and
extern GtkListStore *treestore;

in main.c define GtkListStore *treestore; somewhere in the top of fthe
file, *not* inside a function.

then include this both in main.c and in otherfile.c like #include "main.h"

Olivier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]