Skip to content
Snippets Groups Projects
Commit c5d4e337 authored by Enrico Tröger's avatar Enrico Tröger
Browse files

Remove Help button from preferences dialog as there is no help available at all.

(Old svn revision: 4617)
parent f5c53af9
No related branches found
No related tags found
No related merge requests found
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
((ptr) && (ptr)[0]) ((ptr) && (ptr)[0])
#define PLUGIN_WEBSITE "http://goodies.xfce.org/projects/applications/xfce4-dict"
#define DICT_FLAGS_FOCUS_PANEL_ENTRY 1 #define DICT_FLAGS_FOCUS_PANEL_ENTRY 1
#define DICT_FLAGS_MODE_DICT 2 #define DICT_FLAGS_MODE_DICT 2
#define DICT_FLAGS_MODE_WEB 4 #define DICT_FLAGS_MODE_WEB 4
......
...@@ -103,17 +103,6 @@ static void prefs_dialog_response(GtkWidget *dlg, gint response, DictData *dd) ...@@ -103,17 +103,6 @@ static void prefs_dialog_response(GtkWidget *dlg, gint response, DictData *dd)
{ {
gchar *tmp; 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 */ /* MODE DICT */
tmp = gtk_combo_box_get_active_text( tmp = gtk_combo_box_get_active_text(
GTK_COMBO_BOX(g_object_get_data(G_OBJECT(dlg), "dict_combo"))); 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) ...@@ -178,7 +167,6 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
dialog = xfce_titled_dialog_new_with_buttons( dialog = xfce_titled_dialog_new_with_buttons(
_("Xfce Dictionary"), GTK_WINDOW(parent), _("Xfce Dictionary"), GTK_WINDOW(parent),
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR, GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
GTK_STOCK_HELP, GTK_RESPONSE_HELP,
GTK_STOCK_CLOSE, GTK_RESPONSE_OK, GTK_STOCK_CLOSE, GTK_RESPONSE_OK,
NULL); NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment