File gnuplot-4.4.0-wxt.dif of Package gnuplot

--- src/plot.c
+++ src/plot.c	2007-04-24 10:21:32.000000000 +0000
@@ -573,6 +573,8 @@ main(int argc, char **argv)
 #endif /* GNUPLOT_HISTORY */
 
 	    fprintf(stderr, "\nTerminal type set to '%s'\n", term->name);
+	    if (!strncmp("wxt", term->name, 3))
+		fprintf(stderr, "Warning: terminal 'wxt' is experimental\n");
 	}			/* if (interactive && term != 0) */
     } else {
 	/* come back here from int_error() */
--- src/term.c
+++ src/term.c	2010-04-06 16:12:36.696331404 +0000
@@ -1646,6 +1646,9 @@ change_term(const char *origname, int le
     if (interactive)
 	fprintf(stderr, "Terminal type set to '%s'\n", term->name);
 
+    if (interactive && !strncmp("wxt", term->name, 3))
+	fprintf(stderr, "Warning: terminal 'wxt' is experimental\n");
+
     /* Invalidate any terminal-specific structures that may be active */
     invalidate_palette();
 
@@ -1710,11 +1713,6 @@ init_terminal()
 	    term_name = "sun";
 #endif /* SUN */
 
-#ifdef WXWIDGETS
-	if (term_name == (char *) NULL)
-		term_name = "wxt";
-#endif
-
 #ifdef _Windows
 	/* let the wxWidgets terminal be the default when available */
 	if (term_name == (char *) NULL)
@@ -1750,6 +1748,11 @@ init_terminal()
 	    term_name = "x11";
 #endif /* x11 */
 
+#ifdef WXWIDGETS
+	if (term_name == (char *) NULL)
+		term_name = "wxt";
+#endif
+
 #ifdef AMIGA
 	term_name = "amiga";
 #endif
openSUSE Build Service is sponsored by