Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Gtk-Gnutella (Linux/Unix/Mac OSX/Windows)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Search Today's Posts Mark Forums Read

Gtk-Gnutella (Linux/Unix/Mac OSX/Windows) Gtk-Gnutella user section. Preview this popular software: Gtk-Gnutella (Linux / BSD / Darwin / Mac OS X / Windows)


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3 (permalink)  
Old January 31st, 2006
flame-retardant
 
Join Date: November 22nd, 2005
Posts: 196
Hyper-kun is a great assister to others; your light through the dark tunnel
Default

You shouldn't be using GTK+ 1.2 anymore. It's old and deprecated. Some distros even consider removing it completely. For newly-written software use GTK+ 2.0 instead.
GTK+ 1.2 really has no concept of a cursor in a CTree so you have to keep track of the last selected row manually and use that when you receive the "clicked" signal. With GTK+ 2.0 you can simply check the current cursor position in a GtkTreeView and also connected to the "cursor-changed" signal.

You can then fetch the node data and modify the current context popup menu or select the appropriate one from a set.
The nodes themselves don't receive any signal. You could manually delegate the signal to an object stored in the node of course, if you prefer it that way.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New feature in right click menu (systray) nerd New Feature Requests 5 June 11th, 2006 04:20 AM
Left Click, Right Click... Same? LucidDream Open Discussion topics 2 July 3rd, 2003 05:28 PM
why does LimeWire quit (crash) if I click on any the Apple menu? Mike Levin General Mac Support 3 January 26th, 2003 05:10 PM
Limewire crashes every time I touch apple menu / finder menu peeweejd General Mac Support 2 February 25th, 2002 06:43 PM
add an "open" option to the right click menu on transfers - nt Unregistered XoloX Feature Request 0 October 24th, 2001 04:34 PM


All times are GMT -7. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.