[latexila] Bug fix about sizes of theme icons
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Bug fix about sizes of theme icons
- Date: Wed, 28 Sep 2011 15:03:47 +0000 (UTC)
commit 9f74708c4dc60ee0df70b92a6bc15500ff4c3770
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Wed Sep 28 14:35:49 2011 +0200
Bug fix about sizes of theme icons
src/application.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index cf9bf99..cda1ba5 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -336,10 +336,13 @@ public class Application : GLib.Object
foreach (Gtk.IconSize size in sizes)
{
+ int nb_pixels;
+ Gtk.icon_size_lookup (size, out nb_pixels, null);
+
Gdk.Pixbuf pixbuf = null;
try
{
- pixbuf = theme.load_icon (icon_name, size, 0);
+ pixbuf = theme.load_icon (icon_name, nb_pixels, 0);
}
catch (Error e)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]