[alacarte/vala+garcon] fix icon loading



commit 5866d226ab0bdbabc67d83681e4b8a3a041bd6a2
Author: Travis Watkins <amaranth ubuntu com>
Date:   Wed May 13 00:29:00 2009 -0500

    fix icon loading
    
    garcon gives an icon name with the extension already stripped
    so there is no need to try to strip again as that breaks icons
    like "firefox-3.0"
---
 src/mainwindow.vala |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/mainwindow.vala b/src/mainwindow.vala
index 3b67777..8eb659c 100644
--- a/src/mainwindow.vala
+++ b/src/mainwindow.vala
@@ -47,16 +47,6 @@ public class MainWindow
 
 		if (icon_name != null)
 		{
-			// Strip extension if it is not an absolute path
-			if (!GLib.Path.is_absolute (icon_name))
-			{
-				var basename = GLib.Path.get_basename (icon_name);
-				var extension = basename.rchr (-1, '.');
-
-				if (extension != null)
-					icon_name = basename.substring (0, basename.size () - extension.size ());
-			}
-
 			var icon_theme = Gtk.IconTheme.get_default ();
 			try
 			{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]