diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-08 00:31:17 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-26 04:42:17 +0800 |
commit | abc0e4c694fb3d9624e890384880def730769fa0 (patch) | |
tree | 8d411f90f4edb0859ffe0b260c85e02e7d273088 /modules/addressbook/e-book-shell-view-actions.c | |
parent | 83dc7625983470bff4ce8b9070fbc23c3370c472 (diff) | |
download | gsoc2013-evolution-abc0e4c694fb3d9624e890384880def730769fa0.tar.gz gsoc2013-evolution-abc0e4c694fb3d9624e890384880def730769fa0.tar.zst gsoc2013-evolution-abc0e4c694fb3d9624e890384880def730769fa0.zip |
Introduce ESelectable and EFocusTracker.
EFocusTracker tracks the input focus within a window and helps keep
the sensitivity of "selectable" actions in the main menu up-to-date.
Selectable actions include Cut, Copy, Paste, Select All and Delete.
EFocusTracker has built-in support for widgets that implement the
GtkEditable interface such as GtkEntry and GtkTextView. It also
supports custom widgets that implement the ESelectable interface,
which is a subset of GtkEditable and can apply to anything that
displays selectable content (esp. tree views and ETables).
This commit integrates EFocusTracker with EShellWindow, CompEditor,
EMsgComposer, and ESignatureManager.
It also bumps the GtkHTML requirement to 2.29.5 to utilize the new
GtkhtmlEditor:html constructor property.
Diffstat (limited to 'modules/addressbook/e-book-shell-view-actions.c')
-rw-r--r-- | modules/addressbook/e-book-shell-view-actions.c | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/modules/addressbook/e-book-shell-view-actions.c b/modules/addressbook/e-book-shell-view-actions.c index 904b777c8b..5cfdbd347d 100644 --- a/modules/addressbook/e-book-shell-view-actions.c +++ b/modules/addressbook/e-book-shell-view-actions.c @@ -312,44 +312,6 @@ action_address_book_stop_cb (GtkAction *action, } static void -action_contact_clipboard_copy_cb (GtkAction *action, - EBookShellView *book_shell_view) -{ - EBookShellContent *book_shell_content; - - book_shell_content = book_shell_view->priv->book_shell_content; - e_book_shell_content_clipboard_copy (book_shell_content); -} - -static void -action_contact_clipboard_cut_cb (GtkAction *action, - EBookShellView *book_shell_view) -{ - EBookShellContent *book_shell_content; - EAddressbookView *view; - - book_shell_content = book_shell_view->priv->book_shell_content; - view = e_book_shell_content_get_current_view (book_shell_content); - g_return_if_fail (view != NULL); - - e_addressbook_view_cut (view); -} - -static void -action_contact_clipboard_paste_cb (GtkAction *action, - EBookShellView *book_shell_view) -{ - EBookShellContent *book_shell_content; - EAddressbookView *view; - - book_shell_content = book_shell_view->priv->book_shell_content; - view = e_book_shell_content_get_current_view (book_shell_content); - g_return_if_fail (view != NULL); - - e_addressbook_view_paste (view); -} - -static void action_contact_copy_cb (GtkAction *action, EBookShellView *book_shell_view) { @@ -599,20 +561,6 @@ exit: } static void -action_contact_select_all_cb (GtkAction *action, - EBookShellView *book_shell_view) -{ - EBookShellContent *book_shell_content; - EAddressbookView *view; - - book_shell_content = book_shell_view->priv->book_shell_content; - view = e_book_shell_content_get_current_view (book_shell_content); - g_return_if_fail (view != NULL); - - e_addressbook_view_select_all (view); -} - -static void action_contact_send_message_cb (GtkAction *action, EBookShellView *book_shell_view) { @@ -758,27 +706,6 @@ static GtkActionEntry contact_entries[] = { N_("Stop loading"), G_CALLBACK (action_address_book_stop_cb) }, - { "contact-clipboard-copy", - GTK_STOCK_COPY, - NULL, - NULL, - N_("Copy the selection"), - G_CALLBACK (action_contact_clipboard_copy_cb) }, - - { "contact-clipboard-cut", - GTK_STOCK_CUT, - NULL, - NULL, - N_("Cut the selection"), - G_CALLBACK (action_contact_clipboard_cut_cb) }, - - { "contact-clipboard-paste", - GTK_STOCK_PASTE, - NULL, - NULL, - N_("Paste the clipboard"), - G_CALLBACK (action_contact_clipboard_paste_cb) }, - { "contact-copy", NULL, N_("_Copy Contact To..."), @@ -828,13 +755,6 @@ static GtkActionEntry contact_entries[] = { N_("View the current contact"), G_CALLBACK (action_contact_open_cb) }, - { "contact-select-all", - GTK_STOCK_SELECT_ALL, - NULL, - NULL, - N_("Select all contacts"), - G_CALLBACK (action_contact_select_all_cb) }, - { "contact-send-message", "mail-message-new", N_("_Send Message to Contact..."), @@ -877,18 +797,6 @@ static EPopupActionEntry contact_popup_entries[] = { N_("_Save as vCard..."), "address-book-save-as" }, - { "contact-popup-clipboard-copy", - NULL, - "contact-clipboard-copy" }, - - { "contact-popup-clipboard-cut", - NULL, - "contact-clipboard-cut" }, - - { "contact-popup-clipboard-paste", - NULL, - "contact-clipboard-paste" }, - { "contact-popup-copy", NULL, "contact-copy" }, |