if (plugin) {
g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, "Got HAL condition %s on %s: %s", condition, udi, detail);
- //hildon_banner_show_informationf(GTK_WIDGET(plugin), NULL, "Got HAL condition %s on %s: %s", condition, udi, detail);
- if (strcmp("ButtonPressed", condition) == 0) {
- if (strcmp(USBDEV_PATH, udi) == 0) {
- //mtetherd_status_plugin_usb_plugged_show(plugin);
+ if (g_strcmp0("ButtonPressed", condition) == 0) {
+ g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "is ButtonPressed");
+ if (g_strcmp0(USBDEV_PATH, udi) == 0) {
+ g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "is %s", USBDEV_PATH);
mtetherd_status_plugin_usb_plugged(plugin);
}
}
}
libhal_free_string(interface);
}
- //plugin->priv->net_on = TRUE;
- //enable_button_set_text(plugin->priv->enable_button, plugin->priv->net_on);
}
}
if (plugin) {
g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, "Got HAL device added on %s", udi);
mtetherd_status_plugin_device_removed(plugin, udi);
- //plugin->priv->net_on = FALSE;
- //enable_button_set_text(plugin->priv->enable_button, plugin->priv->net_on);
}
}