diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-18 23:30:02 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-18 23:30:02 +0000 |
commit | c427fa73c4f7853de992eda9de1c818c2ee525aa (patch) | |
tree | c1203a6a808f242038cb063eba4843cf97f2c40f /src/trg-torrent-graph.h | |
parent | 2512c508cb6b8edeefed308a3dce61054d58bb06 (diff) |
full and default gtk3 support, almost. the graph is disabled as the drawing api has changed quite a bit. yet another implementation to pass arguments, which made a cleanup of main.c necessary.
Diffstat (limited to 'src/trg-torrent-graph.h')
-rw-r--r-- | src/trg-torrent-graph.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/trg-torrent-graph.h b/src/trg-torrent-graph.h index c71f3b6..914a184 100644 --- a/src/trg-torrent-graph.h +++ b/src/trg-torrent-graph.h @@ -3,9 +3,13 @@ #ifndef _TRG_TORRENT_GRAPH #define _TRG_TORRENT_GRAPH -#include <glib-object.h> #include <gtk/gtk.h> +#define TRG_WITH_GRAPH !GTK_CHECK_VERSION( 3, 0, 0 ) + +#if TRG_WITH_GRAPH + +#include <glib-object.h> #include "trg-torrent-model.h" G_BEGIN_DECLS @@ -49,4 +53,6 @@ void trg_torrent_graph_set_speed(TrgTorrentGraph * g, void trg_torrent_graph_set_nothing(TrgTorrentGraph * g); G_END_DECLS -#endif /* _TRG_TORRENT_GRAPH */ + +#endif +#endif /* _TRG_TORRENT_GRAPH */ |