spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 49ee0af0678fd18ca1bca8d4c05491d196a59fa7
parent e4e8e6bb23a734634da1f3f19a03c247adcfe476
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Wed, 19 May 2010 19:41:27 +1000

Use the official binding g_filename_from_uri

Diffstat:
Msrc/spek-window.vala | 6++----
Mvapi/config.vapi | 6------
2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/spek-window.vala b/src/spek-window.vala @@ -113,12 +113,10 @@ namespace Spek { string[] files = data.get_uris (); if (files.length > 0) { try { - string hostname; - var file = filename_from_uri (files[0], out hostname); - open_file (file); + open_file (Filename.from_uri (files[0])); drag_finish (cx, true, false, time); return; - } catch {} + } catch (ConvertError e) {} } } drag_finish (cx, false, false, time); diff --git a/vapi/config.vapi b/vapi/config.vapi @@ -14,9 +14,3 @@ namespace Config { public const string PKGDATADIR; /* /usr/local/share/spek */ public const string PKGLIBDIR; /* /usr/local/lib/spek */ } - -// TODO: file a bug to have this included -[CCode (cprefix = "G", lower_case_cprefix = "g_", cheader_filename = "glib.h", gir_namespace = "GLib", gir_version = "2.0")] -namespace GLib { - public static string filename_from_uri (string uri, out string hostname) throws Error; -}