[Goodies-commits] r4617 - xfce4-dict/trunk/lib

Enrico Troeger enrico at xfce.org
Fri Apr 18 18:06:50 CEST 2008


Author: enrico
Date: 2008-04-18 16:06:50 +0000 (Fri, 18 Apr 2008)
New Revision: 4617

Modified:
   xfce4-dict/trunk/lib/common.h
   xfce4-dict/trunk/lib/prefs.c
Log:
Remove Help button from preferences dialog as there is no help available at all.


Modified: xfce4-dict/trunk/lib/common.h
===================================================================
--- xfce4-dict/trunk/lib/common.h	2008-04-18 16:06:47 UTC (rev 4616)
+++ xfce4-dict/trunk/lib/common.h	2008-04-18 16:06:50 UTC (rev 4617)
@@ -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

Modified: xfce4-dict/trunk/lib/prefs.c
===================================================================
--- xfce4-dict/trunk/lib/prefs.c	2008-04-18 16:06:47 UTC (rev 4616)
+++ xfce4-dict/trunk/lib/prefs.c	2008-04-18 16:06:50 UTC (rev 4617)
@@ -103,17 +103,6 @@
 {
 	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 @@
 	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);
 




More information about the Goodies-commits mailing list