<!-- ##### SECTION Title ##### --> GnomeLess <!-- ##### SECTION Short_Description ##### --> Simple file content browser widget. <!-- ##### SECTION Long_Description ##### --> <para> This widget implements a graphical "more" command. It allows the user to view a text file. There are various possible ways to specify the contents to display: loading the data from a file (by providing a filename) or by loading it from an open C FILE data stream or from the output of a Unix command or from a Unix file descriptor. </para> <para> The following is a simple example of its use. The code creates a GnomeLess widget, sets a custom font, and fills the widget with the contents of a file. </para> <informalexample> <programlisting> GtkWidget *gl; GdkFont *font; /* create a new widget */ gl = gnome_less_new(); /* set our custom font */ font = gdk_font_load("-adobe-helvetica-bold-o-normal-*-*-140-*-*-p-*-iso8859-1"); #gnome_less_set_font(GNOME_LESS(gl), font); /* display some text */ #gnome_less_show_file(GNOME_LESS(gl), "/home/user/file.txt"); </programlisting> </informalexample> <!-- ##### SECTION See_Also ##### --> <para> </para> <!-- ##### STRUCT GnomeLess ##### --> <para> </para> <!-- ##### FUNCTION gnome_less_new ##### --> <para> </para> @Returns: <!-- ##### FUNCTION gnome_less_clear ##### --> <para> </para> @gl: <!-- ##### FUNCTION gnome_less_show_file ##### --> <para> </para> @gl: @path: @Returns: <!-- ##### FUNCTION gnome_less_show_command ##### --> <para> </para> @gl: @command_line: @Returns: <!-- ##### FUNCTION gnome_less_show_string ##### --> <para> </para> @gl: @s: <!-- ##### FUNCTION gnome_less_show_filestream ##### --> <para> </para> @gl: @f: @Returns: <!-- ##### FUNCTION gnome_less_show_fd ##### --> <para> </para> @gl: @file_descriptor: @Returns: <!-- ##### FUNCTION gnome_less_write_file ##### --> <para> </para> @gl: @path: @Returns: <!-- ##### FUNCTION gnome_less_write_fd ##### --> <para> </para> @gl: @fd: @Returns: <!-- ##### FUNCTION gnome_less_set_font ##### --> <para> </para> @gl: @font: <!-- ##### FUNCTION gnome_less_set_fixed_font ##### --> <para> </para> @gl: @fixed: <!-- ##### FUNCTION gnome_less_reshow ##### --> <para> </para> @gl: <!-- ##### FUNCTION gnome_less_fixed_font ##### --> <para> </para> @gl: <!-- Local variables: mode: sgml sgml-parent-document: ("../gnomeui-docs.sgml" "book" "sect1" "") End: -->