gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r706 - GNUnet/src/conf


From: durner
Subject: [GNUnet-SVN] r706 - GNUnet/src/conf
Date: Thu, 28 Apr 2005 12:53:52 -0700 (PDT)

Author: durner
Date: 2005-04-28 12:53:37 -0700 (Thu, 28 Apr 2005)
New Revision: 706

Modified:
   GNUnet/src/conf/wizard.c
Log:
Fix default NIC selection and enable "auto start" under Windows

Modified: GNUnet/src/conf/wizard.c
===================================================================
--- GNUnet/src/conf/wizard.c    2005-04-28 19:52:33 UTC (rev 705)
+++ GNUnet/src/conf/wizard.c    2005-04-28 19:53:37 UTC (rev 706)
@@ -52,6 +52,11 @@
   {
        sym_calc_value_ext(sym, 1);
        nic = sym_get_string_value(sym);
+#ifdef WINDOWS
+               /* default NIC for unixes */
+               if (strcmp(nic, "eth0") == 0)
+                       nic = NULL;
+#endif
   }
 
   if (nic)
@@ -63,7 +68,7 @@
        int inslen = strlen(name);
        if (inslen >= niclen)
        {
-#ifdef MINGW
+#ifdef WINDOWS
                if (strncmp(name + inslen - niclen - 1, nic, niclen) == 0)
 #else
                if (strcmp(name, nic) == 0)
@@ -267,6 +272,10 @@
                gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(chkMigr),
                        sym_get_tristate_value(sym) != no);
        }
+       
+#ifdef WINDOWS
+       gtk_widget_set_sensitive(chkStart, TRUE);
+#endif
 
        if (doAutoStart)
                gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(chkStart), 1);   
        





reply via email to

[Prev in Thread] Current Thread [Next in Thread]