aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2013-01-16 15:35:09 -0500
committerDeepak Bhole <[email protected]>2013-01-16 15:35:09 -0500
commit7bfa15b43fc8ec893dfdbba83586963d000fa9a2 (patch)
treeeed5cf0a961459558fb5c8010b60f3c890ebb724 /plugin
parentab7202a38a049886dbbb0580759be040b3f72332 (diff)
PR1260: IcedTea-Web should not rely on GTK
Diffstat (limited to 'plugin')
-rw-r--r--plugin/icedteanp/IcedTeaJavaRequestProcessor.h1
-rw-r--r--plugin/icedteanp/IcedTeaNPPlugin.cc28
-rw-r--r--plugin/icedteanp/IcedTeaNPPlugin.h3
3 files changed, 2 insertions, 30 deletions
diff --git a/plugin/icedteanp/IcedTeaJavaRequestProcessor.h b/plugin/icedteanp/IcedTeaJavaRequestProcessor.h
index 63223fd..3ab1dec 100644
--- a/plugin/icedteanp/IcedTeaJavaRequestProcessor.h
+++ b/plugin/icedteanp/IcedTeaJavaRequestProcessor.h
@@ -41,6 +41,7 @@ exception statement from your version. */
#include <errno.h>
#include <stdlib.h>
+#include <unistd.h>
#include <vector>
#include "IcedTeaNPPlugin.h"
diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc
index b0f5e7d..c3692ab 100644
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc
@@ -218,8 +218,6 @@ typedef union
static void plugin_data_new (ITNPPluginData** data);
// Retrieve the current document's documentbase.
static gchar* plugin_get_documentbase (NPP instance);
-// Notify the user that the appletviewer is not installed correctly.
-static void plugin_display_failure_dialog ();
// Callback used to monitor input pipe status.
static gboolean plugin_in_pipe_callback (GIOChannel* source,
GIOCondition condition,
@@ -1100,30 +1098,6 @@ plugin_get_documentbase (NPP instance)
}
#endif
-// This function displays an error message if the appletviewer has not
-// been installed correctly.
-static void
-plugin_display_failure_dialog ()
-{
- GtkWidget* dialog = NULL;
-
- PLUGIN_DEBUG ("plugin_display_failure_dialog\n");
-
- dialog = gtk_message_dialog_new (NULL,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- FAILURE_MESSAGE,
- appletviewer_executable);
- gtk_widget_show_all (dialog);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-
- PLUGIN_DEBUG ("plugin_display_failure_dialog return\n");
-}
-
-
-
// plugin_in_pipe_callback is called when data is available on the
// input pipe, or when the appletviewer crashes or is killed. It may
// be called after data has been destroyed in which case it simply
@@ -2205,7 +2179,7 @@ NP_Initialize (NPNetscapeFuncs* browserTable, NPPluginFuncs* pluginTable)
np_error = plugin_test_appletviewer ();
if (np_error != NPERR_NO_ERROR)
{
- plugin_display_failure_dialog ();
+ fprintf(stderr, "Unable to find java executable %s\n", appletviewer_executable);
return np_error;
}
diff --git a/plugin/icedteanp/IcedTeaNPPlugin.h b/plugin/icedteanp/IcedTeaNPPlugin.h
index d009e70..6ebb416 100644
--- a/plugin/icedteanp/IcedTeaNPPlugin.h
+++ b/plugin/icedteanp/IcedTeaNPPlugin.h
@@ -51,9 +51,6 @@ exception statement from your version. */
#include <glib.h>
#include <glib/gstdio.h>
-// GTK includes.
-#include <gtk/gtk.h>
-
#include "IcedTeaPluginUtils.h"
#include "IcedTeaPluginRequestProcessor.h"