Debugging
authorEnrico Zini <enrico@enricozini.org>
Fri, 26 Mar 2010 20:26:26 +0000 (20:26 +0000)
committerEnrico Zini <enrico@enricozini.org>
Fri, 26 Mar 2010 20:26:26 +0000 (20:26 +0000)
src/app_main.vala
zavai/gsm.vala

index ce1eeaaa7ae6bd41e54d5c71ffbd4fd2b6b7e773..831c632ee8b815a29573e17bf057e0164a3fbe66 100644 (file)
@@ -152,6 +152,7 @@ public class Status : Applet
 
         zavai.gsm.gsm.status_changed += (msg) => { gsm_status.set_text(msg); };
         zavai.gsm.gsm.info_changed += () => {
+stderr.printf("NEW INFO %s %d\n", zavai.gsm.gsm.info_provider, zavai.gsm.gsm.info_signal_strength);
             if (zavai.gsm.gsm.info_signal_strength != -1)
                 gsm_info.set_text("%s %d%%".printf(zavai.gsm.gsm.info_provider, zavai.gsm.gsm.info_signal_strength));
             else
index f318b55f7692bcac30f8125b3a0a77510bf9e18c..19a854da04554e5fb56391cd120b274619e19c41 100644 (file)
@@ -165,12 +165,16 @@ public class GSM: zavai.ScriptMonitorService
             if (info_provider != vprovider.get_string())
             {
                 info_provider = vprovider.get_string();
+stderr.printf("ACQUIRE PROV %s\n", info_provider);
                 changed = true;
             }
         }
 
         if (changed)
+        {
+stderr.printf("NOTIFY CHANGED\n");
             info_changed();
+        }
     }
 
     protected void acquire_new_signal_strength(int strength)
@@ -178,6 +182,7 @@ public class GSM: zavai.ScriptMonitorService
         if (info_signal_strength != strength)
         {
             info_signal_strength = strength;
+stderr.printf("ACQUIRE SIG %d\n", info_signal_strength);
             info_changed();
         }
     }