New applet...

Paul Ladouceur tipaul at look.ca
Mon Aug 25 04:56:09 CEST 2003


Hi-dee-ho!

I've installed successfully the patch, compile & installed. But that 
didn't solve the applet going into LEDS mode... Always stuck with the 
Off-Line and Phone icon state! :-(

And i've found something else: When I uncheck the "Pass the device to 
scripts", within a session it keeps the state. But if I logout -> login, 
the properties always revert this option to enabled! :-(

As I've stated before, the revision 0.1.1 was better since I was able to 
enable the LEDS just by going into properties and close it... everything 
else (don't know for the "Pass the device.." option) was OK... So right 
now (0.1.2), i've totally lost the On-Line functionnality of the applet, 
except that I can start/stop my ppp0 connexion...

Regards,
Ti-Paul.


Dan Karmgard wrote:

>Hello Paul,
>	Well, that was a tough nut to crack. However, I have at least a working
>theory. I think the problem lies in how libgtop is reporting the device
>flags that I use to detect if the device is active. I've made a patch
>for pppdevice.c and attached it to this message. To apply copy the
>attachment into xfce4-pppwatch-plugin-0.1.2/panel-plugin and enter 
>
>	patch -p0 <pppdevice.c.patch
>
>Then compile/install as usual. Let me know if this helps, and thanks for
>testing efforts.
>
>  
>
>------------------------------------------------------------------------
>
>--- pppdevice.c	2003-08-24 17:13:47.000000000 -0500
>+++ pppdevice.c.new	2003-08-24 17:05:15.000000000 -0500
>@@ -106,7 +106,7 @@
>   running = netload.if_flags & (1<<GLIBTOP_IF_FLAGS_RUNNING);
>   running = (running) ? TRUE : FALSE;
> 
>-  if ( !up || !running || !netload.address ) {
>+  if ( !up || !netload.address ) {
>     int i;
>     for (i=0;i<9;i++)
>       printf("%a");
>@@ -155,7 +155,7 @@
>       running = (running) ? TRUE : FALSE;
> 
>       /*-- If this device doesn't have an address, don't bother with it --*/
>-      if ( up && running && netload.address != 0 ) {
>+      if ( up && netload.address != 0 ) {
> 	strncpy( (char *)&modem.device_name, names[i], (size_t)6 );
> 	modem.online = TRUE;
> 	if ( DEBUG )
>@@ -180,7 +180,7 @@
>     running = (running) ? TRUE : FALSE;
> 
>     /*-- If this device isn't up and running (with an address), don't bother with it --*/
>-    if ( up && running && (netload.address != 0) ) {
>+    if ( up && (netload.address != 0) ) {
>       strncpy( (char *)&modem.device_name, pppwatch_device_name, (size_t)6 );
>       modem.online = TRUE;
>       if ( DEBUG )
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Xfce mailing list
>Xfce at xfce.org
>http://moongroup.com/mailman/listinfo/xfce
>  
>





More information about the Xfce mailing list