Changeset 95800 in webkit
- Timestamp:
- Sep 23, 2011 7:14:01 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95799 r95800 1 2011-09-23 Deepak Sherveghar <bpwv64@motorola.com> 2 3 [Gtk] Title attribute is not respected on option elements. 4 https://bugs.webkit.org/show_bug.cgi?id=68615 5 6 Reviewed by Martin Robinson. 7 8 Set tooltip on PopupMenuGtk items created from GtkActions. 9 10 * platform/gtk/GtkPopupMenu.cpp: 11 (WebCore::GtkPopupMenu::appendItem): Added a call to gtk_widget_set_tooltip_text() 12 to set the tooltip on menuitem. Tooltip text is retrieved from GtkAction. 13 * platform/gtk/PopupMenuGtk.cpp: 14 (WebCore::PopupMenuGtk::createGtkActionForMenuItem): Pass the tooltip text 15 from client when creating a GtkAction. 16 1 17 2011-09-23 Yael Aharon <yael.aharon@nokia.com> 2 18 -
trunk/Source/WebCore/platform/gtk/GtkPopupMenu.cpp
r95720 r95800 66 66 { 67 67 GtkWidget* menuItem = gtk_action_create_menu_item(action); 68 gtk_widget_set_tooltip_text(menuItem, gtk_action_get_tooltip(action)); 68 69 g_signal_connect(menuItem, "select", G_CALLBACK(GtkPopupMenu::selectItemCallback), this); 69 70 gtk_menu_shell_append(GTK_MENU_SHELL(m_popup.get()), menuItem); -
trunk/Source/WebCore/platform/gtk/PopupMenuGtk.cpp
r88802 r95800 55 55 { 56 56 GOwnPtr<char> actionName(g_strdup_printf("popup-menu-action-%d", itemIndex)); 57 GtkAction* action = gtk_action_new(actionName.get(), client()->itemText(itemIndex).utf8().data(), 0, 0);57 GtkAction* action = gtk_action_new(actionName.get(), client()->itemText(itemIndex).utf8().data(), client()->itemToolTip(itemIndex).utf8().data(), 0); 58 58 g_object_set_data(G_OBJECT(action), "popup-menu-action-index", GINT_TO_POINTER(itemIndex)); 59 59 g_signal_connect(action, "activate", G_CALLBACK(menuItemActivated), this);
Note: See TracChangeset
for help on using the changeset viewer.