• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/platform/gtk/

Lines Matching refs:action

37 static const char* gtkStockIDFromContextMenuAction(const ContextMenuAction& action)
39 switch (action) {
122 static PlatformMenuItemDescription createPlatformMenuItemDescription(ContextMenuItemType type, ContextMenuAction action, const String& title, bool enabled, bool checked)
127 GUniquePtr<char> actionName(g_strdup_printf("context-menu-action-%d", action));
131 platformAction = adoptGRef(GTK_ACTION(gtk_toggle_action_new(actionName.get(), title.utf8().data(), 0, gtkStockIDFromContextMenuAction(action))));
134 platformAction = adoptGRef(gtk_action_new(actionName.get(), title.utf8().data(), 0, gtkStockIDFromContextMenuAction(action)));
138 g_object_set_data(G_OBJECT(item), WEBKIT_CONTEXT_MENU_ACTION, GINT_TO_POINTER(action));
148 GtkAction* action = gtkAction();
149 if (!action)
152 if (!gtk_action_get_accel_path(action))
167 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu)
169 m_platformDescription = createPlatformMenuItemDescription(type, action, title, true, false);
174 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, bool enabled, bool checked)
176 m_platformDescription = createPlatformMenuItemDescription(type, action, title, enabled, checked);
179 ContextMenuItem::ContextMenuItem(ContextMenuAction action, const String& title, bool enabled, bool checked, Vector<ContextMenuItem>& subMenuItems)
181 m_platformDescription = createPlatformMenuItemDescription(SubmenuType, action, title, enabled, checked);
213 ContextMenuAction ContextMenuItem::action() const
218 void ContextMenuItem::setAction(ContextMenuAction action)
220 g_object_set_data(G_OBJECT(m_platformDescription), WEBKIT_CONTEXT_MENU_ACTION, GINT_TO_POINTER(action));
225 GtkAction* action = gtkAction();
226 return action ? String::fromUTF8(gtk_action_get_label(action)) : String();
231 GtkAction* action = gtkAction();
232 if (action)
233 gtk_action_set_label(action, title.utf8().data());
255 GtkAction* action = gtkAction();
256 if (action && GTK_IS_TOGGLE_ACTION(action))
257 gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), shouldCheck);
262 GtkAction* action = gtkAction();
263 if (action && GTK_IS_TOGGLE_ACTION(action))
264 return gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action));
270 GtkAction* action = gtkAction();
271 return action ? gtk_action_get_sensitive(action) : false;
276 GtkAction* action = gtkAction();
277 if (action)
278 gtk_action_set_sensitive(action, shouldEnable);