[or-cvs] r19640: {torwall} Properly report the status of torwalls toggle state, even if (torwall/trunk/src)

ioerror at seul.org ioerror at seul.org
Sat Jun 6 23:30:28 UTC 2009


Author: ioerror
Date: 2009-06-06 19:30:27 -0400 (Sat, 06 Jun 2009)
New Revision: 19640

Modified:
   torwall/trunk/src/torwall_applet.c
Log:
Properly report the status of torwalls toggle state, even if it still does nothing useful.


Modified: torwall/trunk/src/torwall_applet.c
===================================================================
--- torwall/trunk/src/torwall_applet.c	2009-06-06 23:22:51 UTC (rev 19639)
+++ torwall/trunk/src/torwall_applet.c	2009-06-06 23:30:27 UTC (rev 19640)
@@ -47,12 +47,14 @@
 
   if (!torWallIsActive) {
     gtk_image_set_from_file(GTK_IMAGE(image), GNOMEICONDIR ACTIVE_IMAGE);
-    // loadIpTables
+    printf("torwall activated\n");
+    // Add gtksu and call loadIpTables
     torWallIsActive = 1;
   } else {
-    printf("torwall is active\n");
+    printf("torwall is disabled\n");
     gtk_image_set_from_file(GTK_IMAGE(image), GNOMEICONDIR INACTIVE_IMAGE);
-    // unloadIpTables
+    // Add gtksu and call unloadIpTables
+    torWallIsActive = 1;
     torWallIsActive = 0;
   }
 



More information about the tor-commits mailing list