[empathy] Don't show the location preferences if geoclue not available
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Don't show the location preferences if geoclue not available
- Date: Mon, 1 Jun 2009 11:45:09 -0400 (EDT)
commit 2d09cd3c1d45360a71930b2c3c971e50a5935b62
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Mon Jan 26 00:06:13 2009 +1100
Don't show the location preferences if geoclue not available
---
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 ff74a8c..406db4c 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]