On Wed, 2014-10-22 at 20:48 -0300, Felipe Sateler wrote:
> If gtk cannot load the file, it may throw a Gio::Error. In that case
> fall back to setting the name.
> 
> BugLink: https://bugs.debian.org/765725
> ---
>  src/mainwindow.cc | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/mainwindow.cc b/src/mainwindow.cc
> index 5d205fb..ff0011c 100644
> --- a/src/mainwindow.cc
> +++ b/src/mainwindow.cc
> @@ -251,6 +251,8 @@ static void set_icon_name_fallback(Gtk::Image *i, const 
> char *name, Gtk::IconSiz
>              i->set(name);
>      } catch (Gtk::IconThemeError &e) {
>          i->set(name);
> +    } catch (Gio::Error &e) {
> +        i->set(name);
>      }
>  }

Thanks! Applied.

-- 
Tanu

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to