Changeset 28000 in webkit


Ignore:
Timestamp:
Nov 24, 2007 1:52:31 PM (16 years ago)
Author:
alp@webkit.org
Message:

2007-11-24 Christian Dywan <christian@twotoasts.de>

Reviewed by Alp Toker.

http://bugs.webkit.org/show_bug.cgi?id=15793
[GTK] Webkit doesn't show title attribute tooltip when hovering over an image

Implement tooltip support using the new Tooltip API.

Support for older versions of GTK+ is still lacking.

  • WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::setToolTip):
Location:
trunk/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/gtk/ChangeLog

    r27991 r28000  
     12007-11-24  Christian Dywan  <christian@twotoasts.de>
     2
     3        Reviewed by Alp Toker.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=15793
     6        [GTK] Webkit doesn't show title attribute tooltip when hovering over an image
     7
     8        Implement tooltip support using the new Tooltip API.
     9
     10        Support for older versions of GTK+ is still lacking.
     11
     12        * WebCoreSupport/ChromeClientGtk.cpp:
     13        (WebKit::ChromeClient::setToolTip):
     14
    1152007-11-22  Alp Toker  <alp@atoker.com>
    216
  • trunk/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp

    r27977 r28000  
    284284}
    285285
    286 void ChromeClient::setToolTip(const String&)
    287 {
    288     notImplemented();
     286void ChromeClient::setToolTip(const String& toolTip)
     287{
     288#if GTK_CHECK_VERSION(2,12,0)
     289    if (toolTip.isEmpty())
     290        g_object_set(G_OBJECT(m_webPage), "has-tooltip", FALSE, NULL);
     291    else
     292        gtk_widget_set_tooltip_text(GTK_WIDGET(m_webPage), toolTip.utf8().data());
     293#else
     294    // TODO: Support older GTK+ versions
     295    // See http://bugs.webkit.org/show_bug.cgi?id=15793
     296    notImplemented();
     297#endif
    289298}
    290299
Note: See TracChangeset for help on using the changeset viewer.