populate-popup signal of GtkTextView GtkLabel



I think the signal callbak of populate-popup with the prototype
void user_function(GtkTextview *view,GMenu *arg1,gpointer user_data)
is used to create a Menu which is displayed when user right click
on a GtkTextView or GtkLabel

I encounter two problems here:
1. GtkTextView have a default popup menu for right click. In this menu throught this signal callback I can append or prepend other menu items; but I need also to get rid off the default menu items and do not exist some method of removing a GtkMenuItem from a GtkMenu

2. for GtkLabel this signal doesn't work


So, how can I remove a GtkMenuItem from a GtkMenu and why for GtkLabel the populate-popup doesn't work?

for GtkLabels exist the possibilty to put it in a GtkEventBox and catch the button-press-event and build a popup menu there, but I like to use populate-popup signal of GtkLabel :))


Thanks

--
Razvan
razvaneduard xnet ro




-------------------------------------------------------
Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.
Xnet automatically scans all messages for viruses using RAV AntiVirus.


Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor. Va rugam sa luati in 
considerare ca exista un risc de fiecare data cand deschideti fisiere atasate si ca MobiFon nu este 
responsabila pentru nici un prejudiciu cauzat de virusi.

Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants. Please be aware that there 
is a risk involved whenever opening e-mail attachments to your computer and that MobiFon is not responsible 
for any damages caused by viruses.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]