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


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to open a text file by double clicking on the file name in gtk+
# 1  
Old 06-11-2007
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to open the linux text file in windows

Hi friends, help me i downloaded some file from the Linux and i copied it to windows.Now i am unable to open those file. please help me how to open those file. the files are something like test.tcl note.tcl Thanking you Praveen (2 Replies)
Discussion started by: prakumar
2 Replies

2. Shell Programming and Scripting

Open Text file input data and save it.

Hi Guys, I have blank file A.txt I will run the script xyz.sh First i want to open a.txt file... Now i will enter some data like XYZ ABC PQR .. Save it and keep continue my script.... END of my script. Thanks (1 Reply)
Discussion started by: asavaliya
1 Replies

3. 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

4. Shell Programming and Scripting

Open the file and edit/append the text

Hi i have a file like this mailboxnum 20 filename <to subsitute> fileloaction /home/dd234/ filetype txt in a directory i have set of files for ex: TT45.1.2 TT45.1.3 TT45.1.4 . . in for loop i have to take this files and subsitute one by one ex: (1 Reply)
Discussion started by: greenworld123
1 Replies

5. OS X (Apple)

Where are package contents stored for a file, or why aren't they visible w/o right clicking the file

I was wondering about the "Show Package Contents" option in OS X. I have a keynote file that I'm looking at. Exactly where are these contents or its directory stored, because they aren't visible in the Finder window, unless I obviously right click and choose to view them. And I don't think I can... (2 Replies)
Discussion started by: Straitsfan
2 Replies

6. 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

7. 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

8. UNIX for Advanced & Expert Users

script to open the specified url in a browser from a text file

Hi All, here i am struc (6 Replies)
Discussion started by: gsp
6 Replies

9. UNIX for Dummies Questions & Answers

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 (0 Replies)
Discussion started by: cy163
0 Replies
Login or Register to Ask a Question
Gtk2::Button(3) 					User Contributed Perl Documentation					   Gtk2::Button(3)

NAME
Gtk2::Button HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Button INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Glib::Object::_Unregistered::GtkActivatable MNEMONICS
Mnemonics are "memory aids"; in GTK+, a mnemonic is an underlined character which corresponds to a keyboard accelerator. For a button, that means pressing Alt and that key activates the button. For convenience, Gtk2-Perl uses mnemonics by default on widgets that support them. If characters in label string are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). If you don't want to use mnemonics at all, use the non-mnemonic version explicitly (e.g. "Gtk2::Button::new_with_label"). METHODS
widget = Gtk2::Button->new widget = Gtk2::Button->new ($mnemonic) o $mnemonic (string) used to label the widget, see "MNEMONICS" widget = Gtk2::Button->new_from_stock ($stock_id) o $stock_id (string) creates a new button using the icon and text from the specified stock item, see Gtk2::Stock widget = Gtk2::Button->new_with_label ($label) o $label (string) used to label the widget widget = Gtk2::Button->new_with_mnemonic ($mnemonic) o $mnemonic (string) used to label the widget, see "MNEMONICS" (xalign, yalign) = $button->get_alignment Since: gtk+ 2.4 $button->set_alignment ($xalign, $yalign) o $xalign (double) o $yalign (double) Since: gtk+ 2.4 $button->clicked $button->enter boolean = $button->get_focus_on_click Since: gtk+ 2.4 $button->set_focus_on_click ($focus_on_click) o $focus_on_click (boolean) Since: gtk+ 2.4 widget or undef = $button->get_image Since: gtk+ 2.6 positiontype = $button->get_image_position Since: gtk+ 2.9 $button->set_image_position ($position) o $position (Gtk2::PositionType) Since: gtk+ 2.9 $button->set_image ($image) o $image (Gtk2::Widget or undef) Since: gtk+ 2.6 string = $button->get_label $button->set_label ($label) o $label (string) $button->leave $button->pressed $button->released reliefstyle = $button->get_relief $button->set_relief ($newstyle) o $newstyle (Gtk2::ReliefStyle) boolean = $button->get_use_stock $button->set_use_stock ($use_stock) o $use_stock (boolean) boolean = $button->get_use_underline $button->set_use_underline ($use_underline) o $use_underline (boolean) PROPERTIES
'focus-on-click' (boolean : readable / writable / private) Whether the button grabs focus when it is clicked with the mouse 'image' (Gtk2::Widget : readable / writable / private) Child widget to appear next to the button text 'image-position' (Gtk2::PositionType : readable / writable / private) The position of the image relative to the text 'label' (string : readable / writable / construct / private) Text of the label widget inside the button, if the button contains a label widget 'relief' (Gtk2::ReliefStyle : readable / writable / private) The border relief style 'use-stock' (boolean : readable / writable / construct / private) If set, the label is used to pick a stock item instead of being displayed 'use-underline' (boolean : readable / writable / construct / private) If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key 'xalign' (Glib::Float : readable / writable / private) Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned 'yalign' (Glib::Float : readable / writable / private) Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned SIGNALS
activate (Gtk2::Button) pressed (Gtk2::Button) released (Gtk2::Button) clicked (Gtk2::Button) enter (Gtk2::Button) leave (Gtk2::Button) ENUMS AND FLAGS
enum Gtk2::PositionType o 'left' / 'GTK_POS_LEFT' o 'right' / 'GTK_POS_RIGHT' o 'top' / 'GTK_POS_TOP' o 'bottom' / 'GTK_POS_BOTTOM' enum Gtk2::ReliefStyle o 'normal' / 'GTK_RELIEF_NORMAL' o 'half' / 'GTK_RELIEF_HALF' o 'none' / 'GTK_RELIEF_NONE' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Button(3)