Changeset 4779


Ignore:
Timestamp:
11/11/08 06:38:18 (9 years ago)
Author:
erin_yueh
Message:

applied the patch for bug#1833: Getting rid of battery and usb useless dbus related debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-usb/src/openmoko-panel-usb.c

    r3360 r4779  
    4242DBusHandlerResult signal_filter (DBusConnection *bus, DBusMessage *msg, void *user_data) 
    4343{ 
    44     UsbApplet* applet = (UsbApplet*) user_data; 
     44    if ( !g_strcmp0( dbus_message_get_interface(msg), CHARGER_DBUS_INTERFACE ) ) 
     45    { 
     46            UsbApplet* applet = (UsbApplet*) user_data; 
    4547 
    46     g_debug( "usb_applet: signal_filter" ); 
    47     if ( dbus_message_is_signal( msg, CHARGER_DBUS_INTERFACE, "ChargerConnected" ) ) 
    48     { 
    49         g_debug( "-- charger connected" ); 
    50         usb_applet_update_status( applet, TRUE ); 
    51         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; 
     48            g_debug( "usb_applet: signal_filter" ); 
     49            if ( dbus_message_is_signal( msg, CHARGER_DBUS_INTERFACE, "ChargerConnected" ) ) 
     50            { 
     51                g_debug( "-- charger connected" ); 
     52                usb_applet_update_status( applet, TRUE ); 
     53                return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; 
     54            } 
     55            else if ( dbus_message_is_signal( msg, CHARGER_DBUS_INTERFACE, "ChargerDisconnected" ) ) 
     56            { 
     57                g_debug( "-- charger disconnected" ); 
     58                usb_applet_update_status( applet, FALSE ); 
     59                return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; 
     60            } 
     61 
     62            g_debug( "(unknown dbus message, ignoring)" ); 
    5263    } 
    53     else if ( dbus_message_is_signal( msg, CHARGER_DBUS_INTERFACE, "ChargerDisconnected" ) ) 
    54     { 
    55         g_debug( "-- charger disconnected" ); 
    56         usb_applet_update_status( applet, FALSE ); 
    57         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; 
    58     } 
    59  
    60     g_debug( "(unknown dbus message, ignoring)" ); 
    6164    return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; 
    6265} 
Note: See TracChangeset for help on using the changeset viewer.