[gedit-code-assistance] diagnostics: set the icon using the icon name
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] diagnostics: set the icon using the icon name
- Date: Mon, 29 Jun 2015 21:22:25 +0000 (UTC)
commit 1d76e5d50c0dab1c9a3339f367dedaecf362b976
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Jun 29 23:20:26 2015 +0200
diagnostics: set the icon using the icon name
Like this the proper theme is used.
src/gca-diagnostics.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gca-diagnostics.vala b/src/gca-diagnostics.vala
index 8145684..7b3d28c 100644
--- a/src/gca-diagnostics.vala
+++ b/src/gca-diagnostics.vala
@@ -271,7 +271,7 @@ class Diagnostics : Object
{
var attr = new Gtk.SourceMarkAttributes();
- attr.set_gicon(new ThemedIcon.with_default_fallbacks(icon_name_for_severity(sev)));
+ attr.set_icon_name(icon_name_for_severity(sev));
attr.query_tooltip_markup.connect(on_diagnostic_tooltip);
d_view.view.set_mark_attributes(mark_category_for_severity(sev), attr, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]