aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/IcedTeaNPPlugin.cc
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/icedteanp/IcedTeaNPPlugin.cc
parentab7202a38a049886dbbb0580759be040b3f72332 (diff)
PR1260: IcedTea-Web should not rely on GTK
Diffstat (limited to 'plugin/icedteanp/IcedTeaNPPlugin.cc')
-rw-r--r--plugin/icedteanp/IcedTeaNPPlugin.cc28
1 files changed, 1 insertions, 27 deletions
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;
}