diff options
author | Pierre-Luc Beaudoin <pierre-luc@pierlux.com> | 2009-01-25 21:06:13 +0800 |
---|---|---|
committer | Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk> | 2009-06-01 23:35:31 +0800 |
commit | 2d09cd3c1d45360a71930b2c3c971e50a5935b62 (patch) | |
tree | fedab866acdd3c3ef56fe8c1bb904f2e646b6960 | |
parent | 3d23b14af82c996165a8eec628d841f463302f7c (diff) | |
download | gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.tar gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.tar.gz gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.tar.bz2 gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.tar.lz gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.tar.xz gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.tar.zst gsoc2013-empathy-2d09cd3c1d45360a71930b2c3c971e50a5935b62.zip |
Don't show the location preferences if geoclue not available
-rw-r--r-- | src/empathy-preferences.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c index ff74a8cdc..406db4c9f 100644 --- a/src/empathy-preferences.c +++ b/src/empathy-preferences.c @@ -1107,6 +1107,7 @@ empathy_preferences_show (GtkWindow *parent) static EmpathyPreferences *preferences; GtkBuilder *gui; gchar *filename; + GtkWidget *page; if (preferences) { gtk_window_present (GTK_WINDOW (preferences->dialog)); @@ -1169,12 +1170,13 @@ empathy_preferences_show (GtkWindow *parent) gtk_widget_show (page); } - if (TRUE) { /* FIXME */ - GtkWidget *page; + page = gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences->notebook), 3); +#if HAVE_GEOCLUE + gtk_widget_show (page); +#else + gtk_widget_hide (page); +#endif - page = gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences->notebook), 4); - gtk_widget_show (page); - } if (parent) { gtk_window_set_transient_for (GTK_WINDOW (preferences->dialog), |