[evolution/wip/webkit2] Implement fake EWebView::copy-target-list/paste-target-list properties



commit 80aa6aef680827d9e55058003f2559ce8911dac4
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 29 15:38:44 2016 +0200

    Implement fake EWebView::copy-target-list/paste-target-list properties
    
    There are required do to ESelectable interface. WebKit1 used to have
    them, but WebKit2 doesn't have them, thus provide at least the two fake,
    to mute runtime warnings on start. These properties are not used in
    the mail code, nor for previews, anyway.

 e-util/e-web-view.c |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index b951166..62e6361 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -112,6 +112,7 @@ enum {
        PROP_DISABLE_PRINTING,
        PROP_DISABLE_SAVE_TO_DISK,
        PROP_OPEN_PROXY,
+       PROP_PASTE_TARGET_LIST,
        PROP_PRINT_PROXY,
        PROP_SAVE_AS_PROXY,
        PROP_SELECTED_URI
@@ -826,6 +827,11 @@ web_view_set_property (GObject *object,
                                g_value_get_boolean (value));
                        return;
 
+               case PROP_COPY_TARGET_LIST:
+                       /* This is a fake property. */
+                       g_warning ("%s: EWebView::copy-target-list not used", G_STRFUNC);
+                       return;
+
                case PROP_CURSOR_IMAGE_SRC:
                        e_web_view_set_cursor_image_src (
                                E_WEB_VIEW (object),
@@ -850,6 +856,11 @@ web_view_set_property (GObject *object,
                                g_value_get_object (value));
                        return;
 
+               case PROP_PASTE_TARGET_LIST:
+                       /* This is a fake property. */
+                       g_warning ("%s: EWebView::paste-target-list not used", G_STRFUNC);
+                       return;
+
                case PROP_PRINT_PROXY:
                        e_web_view_set_print_proxy (
                                E_WEB_VIEW (object),
@@ -884,6 +895,11 @@ web_view_get_property (GObject *object,
                                E_WEB_VIEW (object)));
                        return;
 
+               case PROP_COPY_TARGET_LIST:
+                       /* This is a fake property. */
+                       g_value_set_boxed (value, NULL);
+                       return;
+
                case PROP_CURSOR_IMAGE_SRC:
                        g_value_set_string (
                                value, e_web_view_get_cursor_image_src (
@@ -908,6 +924,11 @@ web_view_get_property (GObject *object,
                                E_WEB_VIEW (object)));
                        return;
 
+               case PROP_PASTE_TARGET_LIST:
+                       /* This is a fake property. */
+                       g_value_set_boxed (value, NULL);
+                       return;
+
                case PROP_PRINT_PROXY:
                        g_value_set_object (
                                value, e_web_view_get_print_proxy (
@@ -1909,6 +1930,18 @@ e_web_view_class_init (EWebViewClass *class)
                        FALSE,
                        G_PARAM_READWRITE));
 
+       /* Inherited from ESelectableInterface; just a fake property here */
+       g_object_class_override_property (
+               object_class,
+               PROP_COPY_TARGET_LIST,
+               "copy-target-list");
+
+       /* Inherited from ESelectableInterface; just a fake property here */
+       g_object_class_override_property (
+               object_class,
+               PROP_PASTE_TARGET_LIST,
+               "paste-target-list");
+
        g_object_class_install_property (
                object_class,
                PROP_CURSOR_IMAGE_SRC,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]