This commit was generated by cvs2svn to compensate for changes in r158,
[gnokii.git] / xgnokii / xgnokii_data.c
index fb0aa34..f6a65e8 100644 (file)
@@ -3,9 +3,14 @@
   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>
@@ -24,7 +29,7 @@ static GtkWidget *label = NULL;
 
 static inline void Help1 (GtkWidget *w, gpointer data)
 {
-  gchar *indx = g_strdup_printf ("/%s/gnokii/xgnokii/data/index.htm", xgnokiiConfig.locale);
+  gchar *indx = g_strdup_printf ("/help/%s/windows/data/index.html", xgnokiiConfig.locale);
   Help (w, indx);
   g_free (indx);
 }
@@ -47,12 +52,14 @@ static void UpdateStatus (void)
 
 inline void GUI_ShowData (void)
 {
-  if (GetModelFeature(FN_DATACALLS)==0)
+  if (!phoneMonitor.supported & PM_DATA)
     return;
     
   if (TerminateThread)
   { 
+#if 0
     VM_Terminate ();
+#endif
     enabled = false;
     TerminateThread = false;
   }
@@ -70,7 +77,9 @@ inline void GUI_HideData(void)
 static inline void DisableData (GtkWidget *widget,
                                gpointer   data )
 {
+#if 0
   VM_Terminate ();
+#endif
   enabled = false;
   UpdateStatus ();
 }
@@ -81,9 +90,10 @@ static inline void EnableData (GtkWidget *widget,
 {
 
   TerminateThread = false;
+#if 0
   VM_Initialise (xgnokiiConfig.model,  xgnokiiConfig.port, 
-                0, 0, xgnokiiConfig.bindir, false, false,
-                xgnokiiConfig.synchronizetime);
+                0, 0, xgnokiiConfig.bindir, false, false);
+#endif
   enabled = true;
   UpdateStatus ();
 }
@@ -94,6 +104,7 @@ 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",