Tooltips



Hi,

I have a viewport with a table, on which each row contains a label and two radio
buttons. I wanted to add a tooltip for that label, but it seems to make no effect.
The code looks correct, and compiles and runs fine with both 1.2.x and 2.0, but
no tooltips appear. My workaround was to make buttons instead of labels and change
their style to have no border. Is this a limitation in the label widget?

FWIW, the current code looks like this...

<snip>
 knob_label[i]=gtk_button_new_with_label(work->name);
 gtk_button_set_relief((GtkButton *)knob_label[i],(GtkReliefStyle) GTK_RELIEF_NONE);
 knob_tips[i]=gtk_tooltips_new();
 gtk_tooltips_set_tip(knob_tips[i],knob_label[i],(rc_knobs+i)->comment,"");
 gtk_tooltips_enable(knob_tips[i]);
 gtk_tooltips_set_delay (knob_tips[i],1);
</snip>

Cheers,
-- 
        Miguel Mendez - flynn energyhq homeip net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
        FreeBSD - The power to serve!

Attachment: pgpUFGJURL9ws.pgp
Description: PGP signature



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