mirror of
https://github.com/alexkay/spek.git
synced 2026-12-02 03:45:10 +03:00
Tidy
This commit is contained in:
1 parent
4a92c987cf
commit
c7deee63e0
1 file changed
+3
-6
+3
-6
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user