http://marcin-wiacek.fkn.pl/english/zips/mygnokii.tar.gz
[gnokii.git] / xgnokii / xgnokii_data.c
index 261f75f..fb0aa34 100644 (file)
@@ -3,14 +3,9 @@
   X G N O K I I
 
   A Linux/Unix GUI for Nokia mobile phones.
-  Copyright (C) 1999 Pavel Janík ml., Hugh Blemings
-  & Ján Derfiòák <ja@mail.upjs.sk>.
 
   Released under the terms of the GNU GPL, see file COPYING for more details.
 
-  Last modification: Tues 13 June 2000
-  Modified by Chris Kemp
-
 */
 
 #include <stdio.h>
@@ -29,7 +24,7 @@ static GtkWidget *label = NULL;
 
 static inline void Help1 (GtkWidget *w, gpointer data)
 {
-  gchar *indx = g_strdup_printf ("/help/%s/windows/data/index.html", xgnokiiConfig.locale);
+  gchar *indx = g_strdup_printf ("/%s/gnokii/xgnokii/data/index.htm", xgnokiiConfig.locale);
   Help (w, indx);
   g_free (indx);
 }
@@ -52,7 +47,7 @@ static void UpdateStatus (void)
 
 inline void GUI_ShowData (void)
 {
-  if (!phoneMonitor.supported & PM_DATA)
+  if (GetModelFeature(FN_DATACALLS)==0)
     return;
     
   if (TerminateThread)
@@ -87,7 +82,8 @@ static inline void EnableData (GtkWidget *widget,
 
   TerminateThread = false;
   VM_Initialise (xgnokiiConfig.model,  xgnokiiConfig.port, 
-                0, 0, xgnokiiConfig.bindir, false, false);
+                0, 0, xgnokiiConfig.bindir, false, false,
+                xgnokiiConfig.synchronizetime);
   enabled = true;
   UpdateStatus ();
 }
@@ -98,7 +94,6 @@ void GUI_CreateDataWindow (void)
   GtkWidget *button, *hbox, *vbox;
   
   GUI_DataWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); 
-  gtk_window_set_wmclass (GTK_WINDOW (GUI_DataWindow), "DataWindow", "Xgnokii");
   gtk_window_set_title (GTK_WINDOW (GUI_DataWindow), _("Virtual Modem"));
   gtk_container_set_border_width (GTK_CONTAINER (GUI_DataWindow), 10);
   gtk_signal_connect (GTK_OBJECT (GUI_DataWindow), "delete_event",