aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-prefs.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-04-04 16:23:06 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-04-04 16:23:06 -0500
commit75d3c8be473b6c2600f187f77ffb25b21700a373 (patch)
tree3a166215054f6be6c5b44732de9710c042b7124e /src/datetime-prefs.c
parent5261e7f898e82ef03e5e8658253ae0c111d5870e (diff)
parent5a12bc3c3f41d17934c0773c2214ac6097a9154f (diff)
downloadayatana-indicator-datetime-75d3c8be473b6c2600f187f77ffb25b21700a373.tar.gz
ayatana-indicator-datetime-75d3c8be473b6c2600f187f77ffb25b21700a373.tar.bz2
ayatana-indicator-datetime-75d3c8be473b6c2600f187f77ffb25b21700a373.zip
Import upstream version 0.3.94
Diffstat (limited to 'src/datetime-prefs.c')
-rw-r--r--src/datetime-prefs.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c
index fbb8ea1..0e2e99c 100644
--- a/src/datetime-prefs.c
+++ b/src/datetime-prefs.c
@@ -577,21 +577,14 @@ setup_time_spinners (IndicatorDatetimePanel * self, GtkWidget * time, GtkWidget
}
static void
-hide_locations (IndicatorDatetimePanel * self)
-{
- if (self->priv->loc_dlg != NULL)
- gtk_widget_destroy (self->priv->loc_dlg);
-}
-
-static void
show_locations (IndicatorDatetimePanel * self)
{
if (self->priv->loc_dlg == NULL) {
self->priv->loc_dlg = datetime_setup_locations_dialog (self->priv->tzmap);
GtkWidget * dlg = gtk_widget_get_toplevel (GTK_WIDGET (self));
+ gtk_window_set_type_hint (GTK_WINDOW(self->priv->loc_dlg), GDK_WINDOW_TYPE_HINT_DIALOG);
gtk_window_set_transient_for (GTK_WINDOW (self->priv->loc_dlg), GTK_WINDOW (dlg));
g_signal_connect (self->priv->loc_dlg, "destroy", G_CALLBACK (gtk_widget_destroyed), &self->priv->loc_dlg);
- g_signal_connect_swapped (dlg, "focus-in-event", G_CALLBACK (hide_locations), self);
gtk_widget_show_all (self->priv->loc_dlg);
}
else {