aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-prefs.c
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-18 16:31:17 -0500
committerMichael Terry <mike@mterry.name>2011-02-18 16:31:17 -0500
commit1e274bb18d9936c39d4c22e00ec895dc79178390 (patch)
tree4f629320dabf77d93dc56824e9fdd731d18a5bcb /src/datetime-prefs.c
parent6dda4370c9cc94bb25c1cd388adce14f1c0e9f19 (diff)
downloadayatana-indicator-datetime-1e274bb18d9936c39d4c22e00ec895dc79178390.tar.gz
ayatana-indicator-datetime-1e274bb18d9936c39d4c22e00ec895dc79178390.tar.bz2
ayatana-indicator-datetime-1e274bb18d9936c39d4c22e00ec895dc79178390.zip
start of locations dialog
Diffstat (limited to 'src/datetime-prefs.c')
-rw-r--r--src/datetime-prefs.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c
index a42c46b..97b106d 100644
--- a/src/datetime-prefs.c
+++ b/src/datetime-prefs.c
@@ -35,6 +35,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "settings-shared.h"
#include "utils.h"
+#include "datetime-prefs-locations.h"
#define DATETIME_DIALOG_UI_FILE PKGDATADIR "/datetime-dialog.ui"
@@ -324,6 +325,13 @@ setup_time_spinner (GtkWidget * spinner, GtkWidget * other, gboolean is_time)
update_spinner (spinner);
}
+static void
+show_locations (GtkWidget * button, GtkWidget * dlg)
+{
+ GtkWidget * locationsDlg = datetime_setup_locations_dialog (GTK_WINDOW (dlg));
+ gtk_widget_show_all (locationsDlg);
+}
+
static GtkWidget *
create_dialog (void)
{
@@ -351,7 +359,6 @@ create_dialog (void)
gtk_box_pack_start (GTK_BOX (WIG ("timeDateBox")), polkit_button, FALSE, TRUE, 0);
/* Set up settings bindings */
-
g_settings_bind (conf, SETTINGS_SHOW_CLOCK_S, WIG ("showClockCheck"),
"active", G_SETTINGS_BIND_DEFAULT);
g_settings_bind (conf, SETTINGS_SHOW_DAY_S, WIG ("showWeekdayCheck"),
@@ -398,6 +405,8 @@ create_dialog (void)
GtkWidget * dlg = WIG ("timeDateDialog");
+ g_signal_connect (WIG ("locationsButton"), "clicked", G_CALLBACK (show_locations), dlg);
+
/* Grab proxy for settings daemon */
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL,
"org.gnome.SettingsDaemon.DateTimeMechanism",