Author: dannym Date: 2009-01-11 20:40:09 +0000 (Sun, 11 Jan 2009) New Revision: 29178
Modified: xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c Log: update callback so that it will notice when the driver is being removed. Modified: xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c =================================================================== --- xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c 2009-01-11 19:56:33 UTC (rev 29177) +++ xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c 2009-01-11 20:40:09 UTC (rev 29178) @@ -284,11 +284,16 @@ } -static void callback_vc_cb(char const *which, void *privdata) +static void callback_vc_cb(char const *which, volchanger_callback_event_t kind, void *privdata) { t_mixer *mixer; mixer = (t_mixer *) privdata; + if (kind == VE_REMOVED) { + vc_close_device (); + return; + } + xfce_mixer_control_vc_feed_value (mixer->slider); mixer_update_tips (mixer); } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits