summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thusMatthias Clasen2002-08-225-18/+25
| | | | | | | | | | | | | * gdk-pixbuf-io.h: gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus _gdk_pixbuf-prefixed. * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): Keep this logic in sync with gdk_pixbuf_new_from_file(). (Based on a patch by Anders Carlsson) * io-png.c (gdk_pixbuf__png_image_save): Plug a memory leak. (#91422, Sven Neumann)
* Move GDK_DEP_LIBS from LDFLAGS to each of the libgdk_*_LIBADD, to fixTor Lillqvist2002-08-217-4/+40
| | | | | | | | 2002-08-21 Tor Lillqvist <tml@iki.fi> * gdk/Makefile.am: Move GDK_DEP_LIBS from LDFLAGS to each of the libgdk_*_LIBADD, to fix problems when cross-compiling, as suggested by J. Ali Harlow in #87103.
* Fix buglet that sometimes left dirt in corner of the rubberband area.Soeren Sandmann2002-08-201-16/+13
| | | | | | | 2002-08-20 Soeren Sandmann <sandmann@daimi.au.dk> * libegg/iconlist/eggiconlist.c (rubberbanding): Fix buglet that sometimes left dirt in corner of the rubberband area.
* Updated Persian translation.CVS: ↵Roozbeh Pournader2002-08-192-193/+319
| | | | ----------------------------------------------------------------------
* Updating Persian translations.Roozbeh Pournader2002-08-192-368/+244
|
* Use gtk_entry_set_positions() to update current_pos and selection_bound soPadraig O'Briain2002-08-197-5/+48
| | | | | | * gtk/gtkentry.c (gtk_entry_real_delete_text): Use gtk_entry_set_positions() to update current_pos and selection_bound so notifications are emitted (#90548)
* switch vbox and action_area back to the order that 2.0 hasjacob berkman2002-08-167-1/+31
| | | | | | | 2002-08-16 jacob berkman <jacob@ximian.com> * gtk/gtkdialog.h (struct _GtkDialog): switch vbox and action_area back to the order that 2.0 has
* minor menu example comment fix (feeling my way back in after a longTony Gale2002-08-158-4/+40
| | | | | | * docs/tutorial/gtk-tut.sgml, examples/menu/menu.c: minor menu example comment fix (feeling my way back in after a long absence)
* initialize gtk_selection_atoms only once at the 1st call. set length ofHidetoshi Tajima2002-08-148-2/+46
| | | | | | | * gtk/gtkselection.c (gtk_selection_init): initialize gtk_selection_atoms only once at the 1st call. * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): set length of selection data from number of read bytes (#90595)
* Move focus to children, if they exist, after GtkTextView is focused.Padraig O'Briain2002-08-147-2/+50
| | | | | * gtk/gtktextview.c (gtk_text_view_focus): Move focus to children, if they exist, after GtkTextView is focused. (#63844)
* partial translation updateGustavo Noronha Silva2002-08-132-1668/+2154
|
* Remove gdk_screen_close, add a section for GdkDisplayManager, addMatthias Clasen2002-08-1212-12/+96
| | | | | | | | | | | | * gdk/gdk-sections.txt: Remove gdk_screen_close, add a section for GdkDisplayManager, add gdk_visual_get_screen and gdk_colormap_get_screen. * gdk/gdkdisplaymanager.c: * gdk/gdkdisplay.c (gdk_pointer_ungrab): Fix doc comments. * gdk/x11/gdkcolor-x11.c (gdk_colormap_get_screen): * gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Make parameter names match those in the header file, to silence gtk-doc.
* Mention in the docs that @pixmap_return and @mask_return can be %NULL.Owen Taylor2002-08-117-4/+50
| | | | | | | | | Sat Aug 10 22:18:05 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask[_for_colormap]): Mention in the docs that @pixmap_return and @mask_return can be %NULL.
* Minor documentation fixesSoren Sandmann2002-08-1069-279/+555
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-10 Soren Sandmann <sandmann@daimi.au.dk> * docs/reference/gtk/tree_widget.sgml, docs/reference/gtk/tmpl/gtkdialog.sgml, docs/reference/gtk/tmpl/gtkentry.sgml, docs/reference/gtk/tmpl/gtkfilesel.sgml, docs/reference/gtk/tmpl/gtkfontsel.sgml, docs/reference/gtk/tmpl/gtkfontseldlg.sgml, docs/reference/gtk/tmpl/gtktreemodel.sgml, docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c, gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c, gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c, gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c, gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c, gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c, gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c, gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c, gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c, gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h, gtk/gtkwindow.c: Minor documentation fixes (#89254, patch from Brett Nash; #85809, patch from daten@dnetc.org; #76391, patch from Ross Burton; #74559, Manuel Clos; #73569, #72005, Alexey A. Malyshev; #70061, patch from Dennis Bj"orklund; #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; #78932, Vitaly Tishkov, patch from Ross Burton; #73306)
* Changes to support depth 8 StaticColor visuals. (#81631)Matthias Clasen2002-08-097-3/+69
| | | | | | | | | | * gdk/gdkrgb.c (gdk_rgb_try_colormap): (gdk_rgb_create_info): (gdk_rgb_select_conv): (gdk_draw_gray_image): (gdk_rgb_cmap_get_info): Changes to support depth 8 StaticColor visuals. (#81631) (gdk_rgb_cmap_free): Don't loop forever.
* Fix weird usage of 'class' for GdkDisplay * argumnent name. (#9031, LaszloOwen Taylor2002-08-097-1/+37
| | | | | | | | Fri Aug 9 08:04:47 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.h (struct _GdkDisplayClass): Fix weird usage of 'class' for GdkDisplay * argumnent name. (#9031, Laszlo Peter)
* Remove explicit calls to pango_x/xft_shutdown_display() since Pango nowOwen Taylor2002-08-098-5/+36
| | | | | | | | Thu Aug 8 23:26:05 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkmain-x11.c gdk/x11/gdkscreen-x11.c: Remove explicit calls to pango_x/xft_shutdown_display() since Pango now does it by itself on XCloseDisplay().
* Consistently order pangoxft / pangox in pkg-config calls in hopes ofOwen Taylor2002-08-097-1/+37
| | | | | | | | Thu Aug 8 21:53:16 2002 Owen Taylor <otaylor@redhat.com> * configure.in: Consistently order pangoxft / pangox in pkg-config calls in hopes of reducing problems (Eric Mader.)
* Remove gtk_style_get_font_for_display.Matthias Clasen2002-08-072-1/+4
| | | | * gtk/gtk-sections.txt: Remove gtk_style_get_font_for_display.
* Fix doc comment.Matthias Clasen2002-08-078-4/+47
| | | | | | | * gtk/gtkmain.c (gtk_init): Fix doc comment. * gtk/gtktreemodel.c (gtk_tree_path_new_from_indices): Make the doc comment gtk-doc-grokkable.
* link gdk-pixbuf-xlib against x libs (bug #83442)jacob berkman2002-08-069-5/+32
| | | | | | 2002-08-06 jacob berkman <jacob@ximian.com> * configure.in: link gdk-pixbuf-xlib against x libs (bug #83442)
* Patch from Soeren Sandmann to improve GtkLabel behavior when it gets a tooOwen Taylor2002-08-057-8/+56
| | | | | | | | | Mon Aug 5 17:20:45 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtklabel.c: Patch from Soeren Sandmann to improve GtkLabel behavior when it gets a too small allocation. (Always display the initial portion.) (#71742)
* When overriding LDFLAGS, include @LDFLAGS@, otherwise LDFLAGS the usersOwen Taylor2002-08-059-5/+56
| | | | | | | | | | | Mon Aug 5 17:01:30 2002 Owen Taylor <otaylor@redhat.com> * gdk/Makefile.am (LDFLAGS): When overriding LDFLAGS, include @LDFLAGS@, otherwise LDFLAGS the users passes to configure don't get used. (#89946, Noah Levitt, Albert Chin) * gdk/linux-fb/Makefile.am: Remove LDFLAGS setting.
* Fix problem with wrong depth being used. (#89941, Jacob Berkman.) RemoveOwen Taylor2002-08-0510-6/+41
| | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 5 15:25:40 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): Fix problem with wrong depth being used. (#89941, Jacob Berkman.) Remove an unneeded 'screen' variable. Mon Aug 5 15:04:59 2002 Owen Taylor <otaylor@redhat.com> More fixes for warnings reported by David L. Cooper II * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use GdkModifierType for accel_mods. (#85856) * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number signed, since we use -1 as an 'unset' value. (#85854) * gdk/x11/xsettings-client.c (parse_settings): Suppress a warning (#85853) * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix accidental trailing ';'. (#85846)
* More fixes for warnings reported by David L. Cooper IIOwen Taylor2002-08-057-1/+97
| | | | | | | | | | | | | | | | | | Mon Aug 5 15:04:59 2002 Owen Taylor <otaylor@redhat.com> More fixes for warnings reported by David L. Cooper II * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use GdkModifierType for accel_mods. (#85856) * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number signed, since we use -1 as an 'unset' value. (#85854) * gdk/x11/xsettings-client.c (parse_settings): Suppress a warning (#85853) * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix accidental trailing ';'. (#85846)
* Add a note that yes, we do know what () means and we can't change it.Owen Taylor2002-08-0517-69/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 5 14:50:13 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkitemfactory.h: Add a note that yes, we do know what () means and we can't change it. Fixes for warnings reported by David L. Cooper II * tests/testtext.c: Warning fixes. Fix order of arguments to gtk_message_dialog_new(). (#85891) * gtk/gtktreeitem.c (gtk_tree_item_paint): Fix incorrect use GTK_STATE_INSENSITIVE for a shadow type. (Not clear what the drawing intent was, but it's ENABLE_BROKEN anyways.) (#85880) * gtk/gtktexttypes.c: Use character literals instead of direct constants to avoid warning. (#85878) * gtk/theme-bits/decompose-bits.c gtk/gtkstyle.c: Fix some signed/unsigned problems (#85876) * gtk/gtksignal.c (gtk_signal_newv): Add an explicit cast from GtkSignalRunType to GSignalFlags. (#85875) * gtk/gtkitemfactory.c (gtk_item_factory_add_item): Fix use of guint instead of GdkModifierType (#85871) * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): Fix signed/unsigned problem (#85870) * gtk/gtkimcontext.c (gtk_im_context_class_init): Get rid of GtkType/Signal*. (Fixes #85869 as a side effect) * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix some signed/unsigned warnings (#85865)
* Merged Sun changes that made sense.Christian Rose2002-08-042-380/+461
| | | | | | 2002-08-05 Christian Rose <menthos@menthos.com> * sv.po: Merged Sun changes that made sense.
* Fix for binary compatibility across 2.x.y.Matthias Clasen2002-08-047-6/+35
| | | | | * gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility across 2.x.y.
* Missed file:Owen Taylor2002-08-041-0/+627
| | | | | | | Thu Aug 1 19:09:39 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/changedisplay.c: New demo for window migration between different displays and screens.
* sorryGediminas Paulauskas2002-08-021-1/+1
|
* Fix menus resizing dynamically while they are popped up or torn off.Owen Taylor2002-08-027-25/+122
| | | | | | | Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenu.c: Fix menus resizing dynamically while they are popped up or torn off. (#78949)
* prototypes with no parameters must be defined as (void), not ()Gediminas Paulauskas2002-08-021-1/+1
| | | | | | | 2002-08-02 Gediminas Paulauskas <menesis@delfi.lt> * gtkitemfactory.h: prototypes with no parameters must be defined as (void), not ()
* ----:---F1 gdkregion-generic.c (CGTK CVS:1.11 ↵Owen Taylor2002-08-027-4/+76
| | | | | | | Abbrev)--L1696--96%---------Fri Aug 2 16:38:34 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkregion-generic.c: Comprehensively add g_return_[val]if_fail() statements. (#89491, Robin Lu)
* Remove references to gdk_initialized (#81060, Jacob Berkman)Owen Taylor2002-08-028-55/+42
| | | | | | | | | Fri Aug 2 16:24:32 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkmain-x11.c: Remove references to gdk_initialized (#81060, Jacob Berkman) * gdk/gdk.c (gdk_exit): Remove gdk_exit_func().
* Fix args to pango_x_shutdown_display().Owen Taylor2002-08-0218-98/+162
| | | | | | | | | | | | | | | Fri Aug 2 15:56:47 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose): Fix args to pango_x_shutdown_display(). * gdk/linux-fb/gdkinput.c gdk/linux-fb/gdkinputprivate.h gdk/win32/gdkinput-win32.[ch] gdk/win32/gdkinput.c gdk/win32/gdkwindow-win32.c gdk/x11/gdkinput-x11.c gdk/x11/gdkinput-xfree.c gdk/x11/gdkinput.c gdk/x11/gdkinputprivate.h gdk/x11/gdkwindow-x11.c: Move a bunch of functions gdk_input => _gdk_input. Clean up some header file cruft. (#79971)
* Call pango_x[ft]_shutdown_display().Owen Taylor2002-08-027-0/+40
| | | | | | | Fri Aug 2 12:21:41 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose): Call pango_x[ft]_shutdown_display().
* declare screen_x11 variable to fix build w/ xineramajacob berkman2002-08-027-0/+31
| | | | | | | 2002-08-02 jacob berkman <jacob@ximian.com> * gdk/x11/gdkscreen-x11.c (check_xfree_xinerama): declare screen_x11 variable to fix build w/ xinerama
* Switch back to using XftDraw so that we take advantage of theOwen Taylor2002-08-0214-48/+189
| | | | | | | | | | | | | | | Fri Aug 2 00:43:15 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h gdk/x11/gdkwindow-x11.c: Switch back to using XftDraw so that we take advantage of the draw-to-non-RENDER capabilities of Xft2. * demos/gtk-demo/changedisplay.c (query_for_toplevel): Fix the case where the user clicks on the "click on a window popup".
* New demo for window migration between different displays and screens.Owen Taylor2002-08-0122-38/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Aug 1 19:09:39 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/changedisplay.c: New demo for window migration between different displays and screens. * gtk/gtkrc.c gtkstyle.[ch]: Add _gtk_style_init_for_settings(), so that gtkrc.c can initialize the styles it creates for the right display. * gdk/gdkdisplaymanager.c (gdk_screen_get_default) * gtk/gtksettings.c (gtk_settings_get_default) * gtk/gtkstyle.c (gtk_style_init): Handle absence of a default screen. * gdk/x11/gdkmain-x11.c (_gdk_windowing_set_default_display): Handle display == NULL.x * gdk/gdkdisplay.c (gdk_display_dispose): Free the event queue. * gdk/x11/gdkevents-x11.c gdk/x11/gdkdisplay-x11.c: Remove the event source when closing a display. * gdk/gdkdisplay.[ch]: Add a ::closed signal, dispose() isn't convenient enough by itself. * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Create foreign windows for watch windows if there isn't an existing window, instead of installing a global filter. * gdk/x11/gdkscreen-x11.c gdk/x11/gdkprivate-x11.h gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): Clean up the xsettings_client when we are done with it. * gdk/x11/gdkevents-x11.c (_gdk_events_init): Remove excess call to _gdk_x11_events_init_screen()
* Merge from stable:Sven Neumann2002-08-017-2/+44
| | | | | | | | | 2002-08-01 Sven Neumann <sven@gimp.org> Merge from stable: * gdk/gdkrgb.c: trivial changes to some debug code so it compiles with VERBOSE being defined.
* Start implementing display/screen closing scheme; keep a flag for whetherOwen Taylor2002-08-0132-264/+712
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Aug 1 11:26:03 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdkinternals.h: Start implementing display/screen closing scheme; keep a flag for whether displays and screens are closed, call g_object_run_dispose(). Remove public gdk_screen_close(). * gdk/x11/gdkdisplay-x11.c gdk/x11/gdkscreen-x11.c: Add dispose() methods; move appropriate parts of the finalize there. * gdk/x11/gdkcolor-x11.c gdk/x11/gdkimage-x11.c gdk/x11/gdkmain-x11.c gdk/x11/gdkpango-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkproperty-x11.c gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.c: Start of making everything correctly ignore operations when a display has been closed. * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations): Handle decorations == NULL. * gdk/x11/gdkcolor-x11.c (gdk_colormap_remove): Remove unnecessary hash table creation. * gdk/x11/gdkinput.c gdk/x11/gdkinput-x11.c gdk/win32/gdkinput.c Fix up gdk_device_get_history - handle events, n_events == NULL, etc. * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle failure better. * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): Handle failure better, handle data == NULL, move docs here, remove an excess round trip by asking for all selection data at once. * gdk/gdkselection.c gdk/win32/{x11,win32}/gdkselection-{x11,win32}.c gdk/{x11,win32}/gdkmain-{x11,win32}.c gdk/gdkdisplay.c: Move gdk_text_property_to_text_list(), gdk_string_to_compound_text(), gdk_display_set_sm_client_id() to display-independent part of GDK. * gdk/Makefile.am (gdk_c_sources): Sort gdkdisplay/screen.[ch] into the right place.
* escape_string() only takes one argjacob berkman2002-07-317-1/+31
| | | | | | | 2002-07-31 jacob berkman <jacob@ximian.com> * gtk/queryimmodules.c (print_escaped): escape_string() only takes one arg
* Avoid using g_strescape(), since it mangles UTF-8, (#89479, Yao Zhang.)Owen Taylor2002-07-317-1/+59
| | | | | | | Wed Jul 31 12:50:51 2002 Owen Taylor <otaylor@redhat.com> * gtk/queryimmodules.c: Avoid using g_strescape(), since it mangles UTF-8, (#89479, Yao Zhang.)
* free the result of gdk_pixdata_serialize() (bug #89411).Sven Neumann2002-07-312-15/+21
| | | | | | | 2002-07-31 Sven Neumann <sven@gimp.org> * gdk-pixdata.c (gdk_pixdata_to_csource): free the result of gdk_pixdata_serialize() (bug #89411).
* Handle inverted ranges correctly (#85436, fix from Norihiro UMEDA)Owen Taylor2002-07-307-6/+45
| | | | | | | | Tue Jul 30 19:09:46 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c (gtk_range_scroll_event): Handle inverted ranges correctly (#85436, fix from Norihiro UMEDA)
* Fix bug in the selection mode option menus which were setting the wrongOwen Taylor2002-07-307-27/+55
| | | | | | | | Tue Jul 30 16:36:53 2002 Owen Taylor <otaylor@redhat.com> * tests/testgtk.c: Fix bug in the selection mode option menus which were setting the wrong values. (#85763, Manuel Op de Coul)
* Honor GDK_PIXBUF_CSOURCE from configure.in when cross-compiling. (#87099,Owen Taylor2002-07-307-3/+44
| | | | | | | | Tue Jul 30 15:39:06 2002 Owen Taylor <otaylor@redhat.com> * demos/Makefile.am: Honor GDK_PIXBUF_CSOURCE from configure.in when cross-compiling. (#87099, J. Ali Harlow)
* Committed updated translation.Fatih Demir2002-07-302-4/+8
|
* Fix some warnings by adding casts to PixopsInterpType. (#85839, David L.Owen Taylor2002-07-302-3/+8
| | | | | | | Mon Jul 29 23:06:10 2002 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf-scale.c: Fix some warnings by adding casts to PixopsInterpType. (#85839, David L. Cooper, II.)
* Fix up the example program a bit. (#88814, Johnson Wong)Owen Taylor2002-07-302-3/+10
| | | | | | | Mon Jul 29 22:36:06 2002 Owen Taylor <otaylor@redhat.com> * gtk/tmpl/gtkfilesel.sgml: Fix up the example program a bit. (#88814, Johnson Wong)