tooltip on Gtktoolbar buttons



Hi,

I want to show tooltip window on Gtktoolbar without using gtk_toolbar_set_tooltips ().

I already used this code for show and hide tooltip window, but this code is working fine for other controls instead of GtkToolBar.
if (keyboard_mode)
 {
   switch (event->type)
   {
        case GDK_FOCUS_CHANGE:
         if (event->focus_change.in)
            gtk_tooltips_show_tip (widget);
         else
            gtk_tooltips_hide_tip (widget);
      break;
    default:
      break;
    }
    }
  else
    {
        if (event->type != GDK_KEY_PRESS && event->type !=          
        GDK_KEY_RELEASE)
        {
          event_widget = gtk_get_event_widget (event);
          if (event_widget != widget)
            return;
        }
 
        switch (event->type)
        {
            case GDK_EXPOSE:
            case GDK_ENTER_NOTIFY:
            case GDK_LEAVE_NOTIFY:
            case GDK_MOTION_NOTIFY:
            case GDK_BUTTON_PRESS:
            case GDK_BUTTON_RELEASE:
            case GDK_KEY_PRESS:
            case GDK_KEY_RELEASE:
            case GDK_PROXIMITY_IN:
            case GDK_SCROLL:
        }
  }


Problem is there no any event generated against Gtktoolbar buttons.
What events should i be add in this sequence.. Tel the scenerio to show and hide tip in GtkToolBar.

The same problem against GtkComboBox.

Regards,
Ibrar Ahmed


Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel
to find your fit.

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