[baobab/gnome-3-6] Silence a vala warning
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/gnome-3-6] Silence a vala warning
- Date: Sat, 10 Nov 2012 15:38:54 +0000 (UTC)
commit c70e0cb95d8de439913417d2f99a78a179add79f
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Nov 10 16:17:12 2012 +0100
Silence a vala warning
src/baobab-application.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/baobab-application.vala b/src/baobab-application.vala
index 69dc919..23e7397 100644
--- a/src/baobab-application.vala
+++ b/src/baobab-application.vala
@@ -101,7 +101,11 @@ namespace Baobab {
baobab = this;
var css_provider = new Gtk.CssProvider ();
- css_provider.load_from_data (CSS_DATA, -1);
+ try {
+ css_provider.load_from_data (CSS_DATA, -1);
+ } catch (Error e) {
+ error ("loading css: %s", e.message);
+ }
Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
// Settings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]