From 1bb2648cde916ac27d3dd75d7b64a4ddc89787b7 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 10 Feb 2013 01:12:52 -0800 Subject: Sun Feb 10 01:12:35 PST 2013 --- .../fix-config-write.patch | 11 ------- .../use-exo-open-instead-of-xfbrowser4.patch | 37 ---------------------- 2 files changed, 48 deletions(-) delete mode 100644 extra/xfce4-smartbookmark-plugin/fix-config-write.patch delete mode 100644 extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch (limited to 'extra/xfce4-smartbookmark-plugin') diff --git a/extra/xfce4-smartbookmark-plugin/fix-config-write.patch b/extra/xfce4-smartbookmark-plugin/fix-config-write.patch deleted file mode 100644 index 0f5a25f4f..000000000 --- a/extra/xfce4-smartbookmark-plugin/fix-config-write.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -upr xfce4-smartbookmark-plugin-0.4.4.orig/src/smartbookmark.c xfce4-smartbookmark-plugin-0.4.4/src/smartbookmark.c ---- xfce4-smartbookmark-plugin-0.4.4.orig/src/smartbookmark.c 2012-11-19 22:24:16.000000000 +0200 -+++ xfce4-smartbookmark-plugin-0.4.4/src/smartbookmark.c 2012-11-19 22:24:42.000000000 +0200 -@@ -365,6 +365,7 @@ static void search_create_options(XfcePa - search_apply_options_cb(search); - gtk_widget_destroy(search->opt_dialog); - xfce_panel_plugin_unblock_menu(plugin); -+ search_write_config(plugin, search); - } - - diff --git a/extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch b/extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch deleted file mode 100644 index 254382182..000000000 --- a/extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- xfce4-smartbookmark-plugin-0.4.4/src/smartbookmark.c -+++ xfce4-smartbookmark-plugin-0.4.4/src/smartbookmark.c -@@ -75,18 +75,27 @@ XFCE_PANEL_PLUGIN_REGISTER_INTERNAL(smar - - static gboolean do_search(const char *url, const char *keyword) - { -+ gchar *argv[] = { "exo-open", "--launch", "WebBrowser", NULL, NULL }; -+ gchar *complete_url; -+ gboolean retval; -+ GError *error = NULL; -+ - DBG ("Do search"); -- gchar *execute; -- gboolean success; -- execute = g_strconcat("xfbrowser4 \"", url, NULL);//works better for me -- //execute = g_strconcat("x-www-browser \"", url, NULL); -- execute = g_strconcat(execute, keyword, NULL); -- execute = g_strconcat(execute, "\"", NULL); - -- success = exec_command(execute); -- g_free(execute); -+ complete_url = g_strconcat(url, keyword, NULL); -+ argv[3] = complete_url; -+ -+ retval = g_spawn_async(NULL, (gchar **)argv, NULL, -+ G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &error); -+ -+ g_free(complete_url); -+ -+ if (!retval) { -+ xfce_err("%s", error->message); -+ g_error_free(error); -+ } - -- return success; -+ return retval; - } -- cgit v1.2.3-54-g00ecf