spek

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

commit c7deee63e0c24ef8ac113315f75f61d9852abc25
parent 4a92c987cf59d32abd2d627ec8b96bb396a3078e
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Wed, 30 Mar 2011 16:48:17 +0800

Tidy

Diffstat:
Msrc/spek-platform.c | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/spek-platform.c b/src/spek-platform.c @@ -67,11 +67,11 @@ void spek_platform_fix_args (gchar **argv, gint argc) { void spek_platform_show_uri (const gchar *uri) { #ifdef G_OS_WIN32 - /* gtk_show_uri doesn't work on Windows */ + /* gtk_show_uri doesn't work on Windows... */ ShellExecuteA (NULL, "open", uri, "", NULL, SW_SHOWNORMAL); #else #ifdef G_OS_DARWIN - /* it doesn't work on OS X too */ + /* ...or on OS X */ CFStringRef str = NULL; CFURLRef url = NULL; @@ -81,10 +81,7 @@ void spek_platform_show_uri (const gchar *uri) { CFRelease (url); CFRelease (str); #else - GError *error = NULL; - if (!gtk_show_uri (NULL, uri, gtk_get_current_event_time (), &error)) { - g_error_free (error); - } + gtk_show_uri (NULL, uri, gtk_get_current_event_time (), NULL); #endif #endif }