2770 * WebKitWebView::context-menu
2771 * @webView: the object which received the signal
2772 * @default_menu: the default context menu
2773 * @hit_test_result: a #WebKitHitTestResult with the context of the current position.
2774 * @keyboard_mode: %TRUE if the context menu was triggered using the keyboard
2775 *
2776 * Emmited when a context menu is about to be displayed to give the application
2777 * a chance to create and handle its own context menu. If you only want to add custom
2778 * options to the default context menu you can simply modify the given @default_menu.
2779 *
2780 * When keyboard_mode is %TRUE the coordinates of the given @hit_test_result should be
2781 * used to position the popup menu. When the context menu has been triggered by a
2782 * mouse event you could either use the @hit_test_result coordinates or pass %NULL
2783 * to the #GtkMenuPositionFunc parameter of gtk_menu_popup() function.
2784 * Note that coordinates of @hit_test_result are relative to @webView window.
2785 *
2786 * If your application will create and display its own popup menu, %TRUE should be returned.
2787 * Note that when the context menu is handled by the application, the "enable-default-context-menu"
2788 * setting will be ignored and the #WebKitWebView::populate-popup signal won't be emitted.
2789 * If you don't want any context menu to be shown, you can simply connect to this signal
2790 * and return %TRUE without doing anything else.
2791 *
2792 * Since: 1.5.3
2793 */
2794 webkit_web_view_signals[CONTEXT_MENU] = g_signal_new("context-menu",
2795 G_TYPE_FROM_CLASS(webViewClass),
2796 (GSignalFlags)G_SIGNAL_RUN_LAST,
2797 0,
2798 0, 0,
2799 webkit_marshal_BOOLEAN__OBJECT_OBJECT_BOOLEAN,
2800 G_TYPE_BOOLEAN, 3,
2801 GTK_TYPE_WIDGET,
2802 WEBKIT_TYPE_HIT_TEST_RESULT,
2803 G_TYPE_BOOLEAN);
2804
2805 /*