summaryrefslogtreecommitdiff
path: root/src/trg-preferences-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-26 18:55:21 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-26 18:55:21 +0000
commitaff982298fb16ef8bbf32697df59965def50eb5d (patch)
tree185f87e687e7c312dd5e2835234ebaf32a326cfc /src/trg-preferences-dialog.c
parentecf7d01164029d5b5cd139e7db8a5e8705c6fac5 (diff)
closer to gtk3 support, I think just the graph needs doing now.
Diffstat (limited to 'src/trg-preferences-dialog.c')
-rw-r--r--src/trg-preferences-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trg-preferences-dialog.c b/src/trg-preferences-dialog.c
index 331f60e..1f24106 100644
--- a/src/trg-preferences-dialog.c
+++ b/src/trg-preferences-dialog.c
@@ -280,12 +280,14 @@ static void toggle_filter_trackers(GtkToggleButton * w, gpointer win) {
gtk_toggle_button_get_active(w));
}
+#ifndef TRG_NO_GRAPH
static void toggle_graph(GtkToggleButton * w, gpointer win) {
if (gtk_toggle_button_get_active(w))
trg_main_window_add_graph(TRG_MAIN_WINDOW(win), TRUE);
else
trg_main_window_remove_graph(TRG_MAIN_WINDOW(win));
}
+#endif
static void toggle_tray_icon(GtkToggleButton * w, gpointer win) {
if (gtk_toggle_button_get_active(w))
@@ -348,11 +350,13 @@ static GtkWidget *trg_prefs_desktopPage(TrgPreferencesDialog *dlg) {
G_CALLBACK(notebook_toggled_cb), priv->win);
hig_workarea_add_wide_control(t, &row, w);
+#ifndef TRG_NO_GRAPH
w = trgp_check_new(dlg, _("Show graph"), TRG_PREFS_KEY_SHOW_GRAPH,
TRG_PREFS_GLOBAL, GTK_TOGGLE_BUTTON(w));
g_signal_connect(G_OBJECT(w), "toggled",
G_CALLBACK(toggle_graph), priv->win);
hig_workarea_add_wide_control(t, &row, w);
+#endif
hig_workarea_add_section_title(t, &row, _("System Tray"));