From 452179eacd9446f68f8f81a421898b3d4ab53f8c Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 10 Feb 2005 08:24:44 +0000 Subject: Fixes crash when we select a track with no channels. See Fedora bug: 2005-02-09 Mark McLoughlin Fixes crash when we select a track with no channels. See Fedora bug: https://bugzilla.redhat.com/beta/show_bug.cgi?id=147282 Thanks to Neil Paris for isolating the problem. * applet.[ch]: (select_track), (select_element_and_track): new functions. (gnome_volume_applet_setup): re-work mixer/track selection so that we never end up with a track with no channels. * load.c: (gnome_volume_applet_factory): don't pop up an error dialog if we can't find a mixer here. Allow gnome_volume_applet_setup() to do it instead. --- mixer/applet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mixer/applet.h') diff --git a/mixer/applet.h b/mixer/applet.h index c38d52c14..86f4c8023 100644 --- a/mixer/applet.h +++ b/mixer/applet.h @@ -84,9 +84,9 @@ typedef struct _GnomeVolumeAppletClass { PanelAppletClass klass; } GnomeVolumeAppletClass; -GType gnome_volume_applet_get_type (void); -void gnome_volume_applet_setup (GnomeVolumeApplet *applet, - GList *elements); +GType gnome_volume_applet_get_type (void); +gboolean gnome_volume_applet_setup (GnomeVolumeApplet *applet, + GList *elements); G_END_DECLS -- cgit v1.2.3