diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-11-04 16:56:33 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-04 16:56:33 +0800 |
commit | 78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817 (patch) | |
tree | 80cdea46a31b32a1786dcda11a21106bb63a5231 /embed/mozilla/EphyBrowser.cpp | |
parent | 2e01fbd1c41969e80dd599958b811867dc935a59 (diff) | |
download | gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.tar gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.tar.gz gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.tar.bz2 gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.tar.lz gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.tar.xz gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.tar.zst gsoc2013-epiphany-78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817.zip |
Show only paste in the context menu, it's the only one that works in
2003-11-04 Marco Pesenti Gritti <marco@gnome.org>
* data/ui/epiphany-ui.xml:
Show only paste in the context menu, it's the only
one that works in mozilla.
* embed/ephy-command-manager.c:
(ephy_command_manager_get_command_state):
* embed/ephy-command-manager.h:
Rename the state api.
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
* embed/mozilla/mozilla-embed.cpp:
Implement state api.
* src/ephy-window.c: (window_cmd_edit), (show_embed_popup):
Update clipboard menus on activate.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 8d1b3cdd0..732de1c42 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -722,3 +722,15 @@ nsresult EphyBrowser::DoCommand (const char *command) return cmdManager->DoCommand (command, nsnull, nsnull); } + +nsresult EphyBrowser::GetCommandState (const char *command, PRBool *enabled) +{ + nsCOMPtr<nsICommandManager> cmdManager; + + g_return_val_if_fail (mWebBrowser, NS_ERROR_FAILURE); + + cmdManager = do_GetInterface (mWebBrowser); + if (!cmdManager) return NS_ERROR_FAILURE; + + return cmdManager->IsCommandEnabled (command, nsnull, enabled); +} |