From c5d4e337ade87800417f975f7096beda9a2ad3f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Enrico=20Tr=C3=83=C2=B6ger?= <enrico@xfce.org>
Date: Fri, 18 Apr 2008 16:06:50 +0000
Subject: [PATCH] Remove Help button from preferences dialog as there is no
 help available at all.

(Old svn revision: 4617)
---
 lib/common.h |  2 --
 lib/prefs.c  | 12 ------------
 2 files changed, 14 deletions(-)

diff --git a/lib/common.h b/lib/common.h
index bea1afe..a6642d7 100644
--- a/lib/common.h
+++ b/lib/common.h
@@ -27,8 +27,6 @@
 	((ptr) && (ptr)[0])
 
 
-#define PLUGIN_WEBSITE "http://goodies.xfce.org/projects/applications/xfce4-dict"
-
 #define DICT_FLAGS_FOCUS_PANEL_ENTRY	1
 #define DICT_FLAGS_MODE_DICT			2
 #define DICT_FLAGS_MODE_WEB				4
diff --git a/lib/prefs.c b/lib/prefs.c
index 51c19b0..d0f3710 100644
--- a/lib/prefs.c
+++ b/lib/prefs.c
@@ -103,17 +103,6 @@ static void prefs_dialog_response(GtkWidget *dlg, gint response, DictData *dd)
 {
 	gchar *tmp;
 
-	if (response == GTK_RESPONSE_HELP)
-	{
-		/* show help */
-		gboolean result = dict_open_browser(dd, "exo-open --launch WebBrowser " PLUGIN_WEBSITE);
-
-		if (G_UNLIKELY(result == FALSE))
-			g_warning(_("Unable to open the following url: %s"), PLUGIN_WEBSITE);
-
-		return;
-	}
-
 	/* MODE DICT */
 	tmp = gtk_combo_box_get_active_text(
 		GTK_COMBO_BOX(g_object_get_data(G_OBJECT(dlg), "dict_combo")));
@@ -178,7 +167,6 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
 	dialog = xfce_titled_dialog_new_with_buttons(
 		_("Xfce Dictionary"), GTK_WINDOW(parent),
 		GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
-		GTK_STOCK_HELP, GTK_RESPONSE_HELP,
 		GTK_STOCK_CLOSE, GTK_RESPONSE_OK,
 		NULL);
 
-- 
GitLab