aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-focus-tracker.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-20 07:13:57 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-20 07:14:48 +0800
commitbbe38b0f7a60a9dffcde6bb0c7a3b346881113ad (patch)
treea17080d21a4b919f7377a269533fb28ca049fb65 /widgets/misc/e-focus-tracker.c
parent1ee21160dbe5c084fca1c4082c540050b6348330 (diff)
downloadgsoc2013-evolution-bbe38b0f7a60a9dffcde6bb0c7a3b346881113ad.tar.gz
gsoc2013-evolution-bbe38b0f7a60a9dffcde6bb0c7a3b346881113ad.tar.zst
gsoc2013-evolution-bbe38b0f7a60a9dffcde6bb0c7a3b346881113ad.zip
Add focus tracking to EMailBrowser.
Diffstat (limited to 'widgets/misc/e-focus-tracker.c')
-rw-r--r--widgets/misc/e-focus-tracker.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/widgets/misc/e-focus-tracker.c b/widgets/misc/e-focus-tracker.c
index 8eb1b25d56..882b54726c 100644
--- a/widgets/misc/e-focus-tracker.c
+++ b/widgets/misc/e-focus-tracker.c
@@ -532,7 +532,38 @@ focus_tracker_class_init (EFocusTrackerClass *class)
static void
focus_tracker_init (EFocusTracker *focus_tracker)
{
+ GtkAction *action;
+
focus_tracker->priv = E_FOCUS_TRACKER_GET_PRIVATE (focus_tracker);
+
+ /* Define dummy actions. These will most likely be overridden,
+ * but for cases where they're not it ensures ESelectable objects
+ * will always get a valid GtkAction when they ask us for one. */
+
+ action = gtk_action_new (
+ "cut-clipboard", NULL,
+ _("Cut the selection"), GTK_STOCK_CUT);
+ focus_tracker->priv->cut_clipboard = action;
+
+ action = gtk_action_new (
+ "copy-clipboard", NULL,
+ _("Copy the selection"), GTK_STOCK_COPY);
+ focus_tracker->priv->copy_clipboard = action;
+
+ action = gtk_action_new (
+ "paste-clipboard", NULL,
+ _("Paste the clipboard"), GTK_STOCK_PASTE);
+ focus_tracker->priv->paste_clipboard = action;
+
+ action = gtk_action_new (
+ "delete-selection", NULL,
+ _("Delete the selection"), GTK_STOCK_DELETE);
+ focus_tracker->priv->delete_selection = action;
+
+ action = gtk_action_new (
+ "select-all", NULL,
+ _("Select all text"), GTK_STOCK_SELECT_ALL);
+ focus_tracker->priv->select_all = action;
}
GType