diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-29 17:36:38 -0700 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-29 17:36:38 -0700 |
commit | 6bf7c1c7c70915e44f8068ff62e8feffd9a3c279 (patch) | |
tree | a6c53e781ddb914aa4c5a26988eb549e862ae34b | |
parent | 249fa0ac6c1394d314cb4e48ed8f12fb0144f00a (diff) | |
download | ayatana-indicator-datetime-6bf7c1c7c70915e44f8068ff62e8feffd9a3c279.tar.gz ayatana-indicator-datetime-6bf7c1c7c70915e44f8068ff62e8feffd9a3c279.tar.bz2 ayatana-indicator-datetime-6bf7c1c7c70915e44f8068ff62e8feffd9a3c279.zip |
clicking the systems settings window shouldn't close the 'Locations' dialog.
-rw-r--r-- | src/datetime-prefs.c | 9 |
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 { |