[pulseaudio-commits] src/mainwindow.cc

Tanu Kaskinen tanuk at kemper.freedesktop.org
Tue Oct 28 02:36:53 PDT 2014


 src/mainwindow.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f2e32ea30599a92f87f6ce947258cf535cbec321
Author: Felipe Sateler <fsateler at debian.org>
Date:   Wed Oct 22 20:48:29 2014 -0300

    Handle IO errors in icon setting code
    
    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

diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index ee288e8..ec07b96 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);
     }
 }
 



More information about the pulseaudio-commits mailing list