From 09cd68cbee77e56de1b7fd1be9367ea6822f0148 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 20 Jan 2011 08:10:35 +0000 Subject: added 'textview-menu-popup' signal for plug-ins. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2811 ee746299-78ed-0310-b773-934348b2243d --- PLUGIN.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'PLUGIN.txt') diff --git a/PLUGIN.txt b/PLUGIN.txt index b4123b42..11fd51ef 100644 --- a/PLUGIN.txt +++ b/PLUGIN.txt @@ -169,6 +169,21 @@ void (* compose_destroy) (GObject *obj, gpointer compose); Emitted just before 'Compose' message composition window is destroyed. ------------------------------------------------------------------------- +void (* textview_menu_popup) (GObject *obj, + GtkMenu *menu, + GtkTextView *textview, + const gchar *uri, + const gchar *selected_text); + +Emitted on popup of the context menu of TextView. +You can add any menu items to the passed GtkMenu. +The menu object will be destroyed when closed. + +menu: context menu object +textview: GtkTextView object +uri: URI string if the menu popups on an URI +selected_text: string if a string is selected on the text view +------------------------------------------------------------------------- * libsylph-0 @@ -259,6 +274,7 @@ following process: - Capture the following events and show messages: application initialization and exiting, folder view context menu popup, creating and destroying compose window +- Capture the text view context menu popup event and add a menu item Attachment Tool Plug-in ----------------------- -- cgit v1.2.3