[epiphany] Revert "search provider: open result in default browser"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "search provider: open result in default browser"
- Date: Mon, 22 Sep 2014 13:25:08 +0000 (UTC)
commit 1a058adfd1e925adbec1b6d619a5ded19a91b9dd
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Sep 22 08:24:15 2014 -0500
Revert "search provider: open result in default browser"
This reverts commit faaa23cb8956336fcd16258fd74ab9f69c01e438.
https://bugzilla.gnome.org/show_bug.cgi?id=720245
src/ephy-search-provider.c | 27 +++++----------------------
1 files changed, 5 insertions(+), 22 deletions(-)
---
diff --git a/src/ephy-search-provider.c b/src/ephy-search-provider.c
index efc3458..e478ca6 100644
--- a/src/ephy-search-provider.c
+++ b/src/ephy-search-provider.c
@@ -266,29 +266,12 @@ static void
launch_uri (const char *uri,
guint timestamp)
{
- GdkDisplay *display;
- GdkAppLaunchContext *launch_context;
- GAppInfo *appinfo;
- GList *uris = NULL;
- GError *error = NULL;
-
- display = gdk_display_get_default ();
- if (display == NULL)
- return;
-
- launch_context = gdk_display_get_app_launch_context (display);
- gdk_app_launch_context_set_timestamp (launch_context, timestamp);
- appinfo = g_app_info_get_default_for_type ("text/html", TRUE);
- uris = g_list_append (uris, (gpointer)uri);
-
- if (!g_app_info_launch_uris (appinfo, uris, G_APP_LAUNCH_CONTEXT (launch_context), &error)) {
- g_warning ("Failed to launch %s: %s", uri, error->message);
- g_error_free (error);
- }
+ char *str;
- g_object_unref (launch_context);
- g_object_unref (appinfo);
- g_list_free (uris);
+ /* TODO: Handle the timestamp */
+ str = g_strdup_printf ("epiphany %s", uri);
+ g_spawn_command_line_async (str, NULL);
+ g_free (str);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]