how to open a text file using some tool such as gedit under gtk


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to open a text file using some tool such as gedit under gtk
# 1  
Old 06-12-2007
how to open a text file using some tool such as gedit under gtk

how to open a text file using some tool such as gedit under gtk


I list some text file names in a GtkCList . I want to open the file on when users click on the row.

How to implement this ?

Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in refreshing a text editor (gedit) for scanned pdf

Dear Friends, I am using Ubuntu 15.10, 34 bit system. I added a Nautilus-Actions script in shell script to convert PDF files to text. There are 2 types of PDF 1. Scanned PDF -- Not OCR type -- When I convert it to text it work , but as the part it must (text file) open in gedit . But I can see... (2 Replies)
Discussion started by: anespa
2 Replies

2. Shell Programming and Scripting

Python/GTK Text Wrap Question . . .

Greetings! After some cut-and-try, I've cobbled together the following bit of basic code:#!/usr/bin/python import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_size_request(250, 250) ... (0 Replies)
Discussion started by: LinQ
0 Replies

3. Red Hat

(PMT:6498): Gtk-WARNING **: cannot open display:

Error message: (PMT:6498): Gtk-WARNING **: cannot open display: How to solve this issue in linux? (1 Reply)
Discussion started by: vinayd
1 Replies

4. Linux

(PMT:6498): Gtk-WARNING **: cannot open display:

Hai (PMT:6498): Gtk-WARNING **: cannot open display: how to solve this in linux Double post.. continue here (0 Replies)
Discussion started by: vinayd
0 Replies

5. Shell Programming and Scripting

How to open a huge text file?

Hi. I have a 10 Gb text file.the default text editor in ubuntu doens't open it. Does anyone know how can i open it?? Thanks (4 Replies)
Discussion started by: stalaei
4 Replies

6. UNIX for Dummies Questions & Answers

query on the existence of open source tool

can anyone say me, is there any open source tool for generating either 2G or 3G traffic? If so exist, pls brief me about it. (0 Replies)
Discussion started by: routeme
0 Replies

7. UNIX Desktop Questions & Answers

cannot open text file

Hi I am a new to linux, I was faced a file to know is a text file but its type isn't text document and I cannot open it, please guide me. Regards. (2 Replies)
Discussion started by: mkhorami76
2 Replies

8. UNIX for Dummies Questions & Answers

How to examine and open a text file?

Hi I am a new to linux, i was faced a file to know is a text file but its type isnt text document and i can not open it please guide me. Regards ---------- Post updated at 02:52 AM ---------- Previous update was at 02:40 AM ---------- Thank you for your cooperation, my OS is a centOS 5.5... (1 Reply)
Discussion started by: mkhorami76
1 Replies

9. AIX

Open Source Tool for DB2

Dear Folks, Please suggest any Open source db2 tool for working with SQL queries (2 Replies)
Discussion started by: dinesh1985
2 Replies

10. UNIX for Dummies Questions & Answers

how to open a text file by double clicking on the file name in gtk+

how to open a text file by double clicking on the file name shown in a label widget in gtk+. thanks (0 Replies)
Discussion started by: cy163
0 Replies
Login or Register to Ask a Question
gedit(1)							   User Commands							  gedit(1)

NAME
gnome-text-editor, gedit - Text Editor for the GNOME desktop. SYNOPSIS
gnome-text-editor | gedit [--encoding=encoding] [--new-document] [--new-window] [+[num]] [gnome-std-options] [filename] DESCRIPTION
gedit or gnome-text-editor is the official text editor of the GNOME desktop environment. While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor. It can be used to create and edit all kinds of text files. Multiple documents can be edited at the same time. Each document resides in a specific tabbed section of the application win- dow. gedit features a flexible plugin system which can be used to dynamically add new advanced features to gedit itself. OPTIONS
The following options are supported: --encoding=encoding Set the character encoding to be used to open the files listed on the command line. --new-document Create a new top-level document or tabbed section in an existing instance of gedit. --new-window Create a new top-level window in an existing instance of gedit. +[num] For the first file, go to the line specified by num (do not insert a space between the "+" sign and the number). If num is missing, go to the last line. gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. OPERANDS
The following operands are supported: filename The name of the image file to edit. EXTENDED DESCRIPTION
The gedit application accepts pipes, so you can specify a pipe after another command, to load the output of the command into gedit. For example: example% ls -l | gedit EXAMPLES
Example 1: To Edit an ASCII File Named document.txt example% gedit document.txt Example 2: To Add a New Tab That Contains an ASCII File Named book.txt example% gedit --new-document book.txt Example 3: To Add a New Top-Level Window That Contains an ASCII File Named testfile.txt example% gedit --new-window testfile.txt EXIT STATUS
The following exit values are returned: 0 Application exited successfully. >0 An error occurred. FILES
The following files are used by this application: /usr/bin/gedit The executable file for the gnome-text-editor application. /usr/bin/gnome-text-editor A symbolic link to the gedit executable file. /usr/lib/gedit/plugins Location of gedit plugins. /usr/share/gtk-doc/html/gedit Location of developer documentation for writing a gedit plugin. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-text-editor | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
libgtksourceview-1.0(3), attributes(5), gnome-std-options(5) Online Help gedit manual. NOTES
This man page was written by the following people: Paolo Maggi, Paolo Borelli, Chema Celorio, James Willcox, Federico Mena Quintero. Updated by Brian Cameron, Sun Microsystems Inc., 2003, 2004, 2006. SunOS 5.11 31 Aug 2004 gedit(1)