Compile time GTK+ 3 version check

2011-04-23 Thread Ardhan Madras
Hi All, What is the best way to determine GTK+ 3 version in compile time? Does ... #if GTK_MAJOR_VERSION == 3 ... enough for this?, Because I want this code should compiled also in GTK+ 2 environment. Thanks, Ardhan _

Compile time GTK+ 3 version check

2011-04-23 Thread Ardhan Madras
Hi All, I want to port my application to GTK+ 3, but I don't want to broke with GTK+ 2 API and ABI, what is the best way to determine GTK+ 3 version in compile time? Does #if GTK_MAJOR_VERSION == 3 enough for it? Thanks, Ardhan

Re: Compile time GTK+ 3 version check

2011-04-23 Thread Tristan Van Berkom
On Sat, Apr 23, 2011 at 4:19 PM, Ardhan Madras aj...@knac.com wrote: Hi All,        I want to port my application to GTK+ 3, but I don't want to broke with GTK+ 2 API and ABI, what is the best way to determine GTK+ 3 version in compile time? Does #if GTK_MAJOR_VERSION == 3 enough for