Patches: Gedit 2.x & Zenity

Dagmar d'Surreal dagmar.wants at
Wed May 21 23:58:16 PDT 2003

The gedit patch I'm not going to submit to Gnome's bugzilla until I know
a bit more about why that autoconf test seems so screwy (and the problem
doesn't exist in 2.3.x versions), but here it is for anyone searching
through the archives because their gedit build just bailed.  If you have
the decent version of aspell installed, gedit's configure script will
just flat out get things wrong and attempt to link primarily against  The patch makes the configure script (that's right, I
didn't change check the reported version so that anything
0.50.0 or higher should now get things right (linking only against  This means the spell-checker plugin will now work with
gedit 2.2.1.  Considering the spell-checker plugin's usefulness, and the
fact that aspell 0.50.x is listed in the book, this patch should be good
to go for it.

The patch for Zenity _is_ being submitted to Gnome's Bugzilla, since
I've spent the last few days poking and prodding at it in order to get
something approaching a GUI-driven frontend on my package building
scripts.  The documentation for zenity was way out of kilter, and the
patch fixes all the errors I saw (except one extra blank line).

The email address above is just as phony as it looks, and for obvious reasons.
Instant messaging contact nfo: AIM: evilDagmar  Jabber: evilDagmar at
-------------- next part --------------
! This patch fixes a problem with compiling against reasonably new versions
! of aspell, namely => 0.50.0, which need _no_ libpspell component.
!   --+ Dagmar d'Surreal
diff -urN gedit-2.2.1-pristine/configure gedit-2.2.1/configure
--- gedit-2.2.1-pristine/configure	2003-03-10 11:01:28.000000000 -0600
+++ gedit-2.2.1/configure	2003-05-21 17:41:43.000000000 -0500
@@ -9841,7 +9841,11 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
-LIBS="-laspell  $LIBS"
+  if test ${pspell_num} -ge 5000; then
+    PSPELL_LIBS=-laspell
+  else
+    LIBS="-laspell  $LIBS"
+  fi
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 /* confdefs.h.  */
-------------- next part --------------
! This patch corrects several things which were giving me fits while trying to
! figure out how to use it based on the sample programs.
!   --+ Dagmar d'Surreal
diff -urN zenity-1.2-pristine/ChangeLog zenity-1.2/ChangeLog
--- zenity-1.2-pristine/ChangeLog	2003-05-19 13:45:22.000000000 -0500
+++ zenity-1.2/ChangeLog	2003-05-22 01:23:51.000000000 -0500
@@ -1,3 +1,8 @@
+2003-05-22  Dagmar d'Surreal  <dagmar at>
+	* zenity.xml: Several documentation updates and corrections to the
+	example scripts (--title, semicolons, backticks, stderr, etc).
 2003-05-19  Glynn Foster  <glynn.foster at>
 	* release 1.2
! Changed --dialog-title to --title (s74x) and redirected stderr to stdout to
! be stored in the variable so the script will work (2x).  Removed the --text
! argument from the Lists example since the option doesn't seem to currently
! be valid for that dialog type.  Changed two apostrophes to proper backticks.
! Also added missing semicolons in the progam listing for the --text-info
! dialog.
diff -urN zenity-1.2-pristine/help/C/zenity.xml zenity-1.2/help/C/zenity.xml
--- zenity-1.2-pristine/help/C/zenity.xml	2003-05-19 13:08:13.000000000 -0500
+++ zenity-1.2/help/C/zenity.xml	2003-05-22 01:17:11.000000000 -0500
@@ -171,7 +171,7 @@
 	When using &app;, make sure that any arguments to the command line options are surrounded by
-	a set of quotes ' ' or " " as in <command>&app; --calendar --dialog-title="Holiday Planner"
+	a set of quotes ' ' or " " as in <command>&app; --calendar --title="Holiday Planner"
 	</command>, for example. If you do not use quotes, then it is likely that you will get
 	unexpected results.
@@ -343,7 +343,7 @@
-		if zenity --calendar --dialog-title="Calendar selection" --text="Select a date from below" --day=18 --month=1 --year=2003
+		if zenity --calendar --title="Calendar selection" --text="Select a date from below" --day=18 --month=1 --year=2003
 		  then echo $?
 		  else echo "No date selected"
@@ -410,7 +410,7 @@
-		if zenity --entry --dialog-title="Add a new entry" --text="Enter your _Password" --hide-text
+		if zenity --entry --title="Add a new entry" --text="Enter your _Password" --hide-text
 		  then echo $?
 		  else echo "No password entered"
@@ -561,7 +561,7 @@
-		FILE=`zenity --file-selection --dialog-title="Select a file"'
+		FILE=`zenity --file-selection --title="Select a file" 2>&1`
 		case $? in
@@ -667,8 +667,7 @@
     	The following commandline shows an example of how to use the List dialog:
-		zenity --list --dialog-title="Choose bugs you wish to view" \
-		       --text="Select items from the list below." \
+		zenity --list --title="Choose bugs you wish to view" \
 		       --column="Bug Number" --column="Severity" --column="Description" \
 		       992383 Normal "GtkTreeView crashes on multiple selections" \
 		       293823 High "GNOME Dictionary does not handle proxy" \
@@ -748,7 +747,7 @@
 		echo "# Rebooting system" ; sleep 1
 		echo "100" ; sleep 1
 		) |
-		zenity --progress --dialog-title="Update System Logs" --text="Scanning mail logs..." --percentage=0
+		zenity --progress --title="Update System Logs" --text="Scanning mail logs..." --percentage=0
 		if [ "$?" = -1 ] ; then
 			zenity --error --text="Update cancelled."
@@ -808,11 +807,11 @@
-		FILE=`zenity --file-selection --dialog-title="Select a file"'
+		FILE=`zenity --file-selection --title="Select a file" 2>&1`
 		case $? in
-			  	zenity --text-info --dialog-title=$FILE --editable 2>/tmp/tmp.txt
+			  	zenity --text-info --title=$FILE --editable --filename=$FILE 2>/tmp/tmp.txt;;
 			        echo "No file selected.";;

More information about the blfs-dev mailing list