GtkComboBox and Tooltips




Greetings,

I'm trying to use the new GtkCombox widget in Gtk+ 2.4 but I am not able
to use tooltips with it. I use the following code:


    combo = gtk_combo_box_new_text ();

    gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("Item One"));
    gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("Item Two"));

    tips = gtk_tooltips_new ();
    gtk_tooltips_set_tip (tips, combo, _("Tooltips"), NULL);


Later on, I connect a callback to the "changed" signal and the resulting
combo box works fine except that the tooltips never show up. I didn't used
to have problems with 

Any idea what is wrong? Do I have to set the tooltips for a child widget?
Thanks

Alex




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