]> git.street.me.uk Git - andy/viking.git/commitdiff
Set 'OK' default for the GPS layer dialog.
authorRob Norris <rw_norris@hotmail.com>
Sun, 25 Jul 2010 23:17:59 +0000 (00:17 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Sun, 21 Nov 2010 21:41:32 +0000 (22:41 +0100)
src/vikgpslayer.c

index 8b689ca3e0e036f64a948fc3e8773c6dd7fd1228..d7b00860d8957c8155f2439c6b5833fea61b541b 100644 (file)
@@ -1079,6 +1079,7 @@ static gint gps_comm(VikTrwLayer *vtl, gps_dir dir, vik_gps_proto proto, gchar *
   /* TODO: starting gps read/write thread here */
   g_thread_create((GThreadFunc)gps_comm_thread, sess, FALSE, NULL );
 
+  gtk_dialog_set_default_response ( GTK_DIALOG(sess->dialog), GTK_RESPONSE_ACCEPT );
   gtk_dialog_run(GTK_DIALOG(sess->dialog));
 
   gtk_widget_destroy(sess->dialog);