[evolution-data-server/tintou/signal-pointer-to-type] Replace several G_TYPE_POINTER to their actual type in signal declaration




commit bb813ebfcba24c809459f755e3e79c54bb2ef9e8
Author: Corentin Noël <corentin noel collabora com>
Date:   Tue Nov 17 11:39:46 2020 +0100

    Replace several G_TYPE_POINTER to their actual type in signal declaration
    
    This allows GLib to perform some type sanity-checks when required

 src/calendar/libecal/e-reminder-watcher.c | 4 ++--
 src/libebackend/e-cache.c                 | 4 ++--
 src/libebackend/e-user-prompter-server.c  | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/calendar/libecal/e-reminder-watcher.c b/src/calendar/libecal/e-reminder-watcher.c
index f33aff4c7..97a2d5a47 100644
--- a/src/calendar/libecal/e-reminder-watcher.c
+++ b/src/calendar/libecal/e-reminder-watcher.c
@@ -2288,8 +2288,8 @@ e_reminder_watcher_class_init (EReminderWatcherClass *klass)
                NULL,
                g_cclosure_marshal_generic,
                G_TYPE_NONE, 4,
-               G_TYPE_POINTER,
-               G_TYPE_POINTER,
+               E_TYPE_REMINDER_WATCHER,
+               I_CAL_TYPE_TIME,
                G_TYPE_POINTER,
                G_TYPE_INT);
 
diff --git a/src/libebackend/e-cache.c b/src/libebackend/e-cache.c
index 240040cf5..a6e1729f5 100644
--- a/src/libebackend/e-cache.c
+++ b/src/libebackend/e-cache.c
@@ -3127,7 +3127,7 @@ e_cache_class_init (ECacheClass *klass)
                E_TYPE_CACHE_COLUMN_VALUES,
                G_TYPE_BOOLEAN,
                G_TYPE_CANCELLABLE,
-               G_TYPE_POINTER);
+               G_TYPE_ERROR);
 
        signals[BEFORE_REMOVE] = g_signal_new (
                "before-remove",
@@ -3140,7 +3140,7 @@ e_cache_class_init (ECacheClass *klass)
                G_TYPE_BOOLEAN, 3,
                G_TYPE_STRING,
                G_TYPE_CANCELLABLE,
-               G_TYPE_POINTER);
+               G_TYPE_ERROR);
 
        signals[REVISION_CHANGED] = g_signal_new (
                "revision-changed",
diff --git a/src/libebackend/e-user-prompter-server.c b/src/libebackend/e-user-prompter-server.c
index f9e7088b7..db8bd9612 100644
--- a/src/libebackend/e-user-prompter-server.c
+++ b/src/libebackend/e-user-prompter-server.c
@@ -423,8 +423,8 @@ e_user_prompter_server_class_init (EUserPrompterServerClass *class)
         * @primary_text: (nullable): primary text of the prompt; can be %NULL
         * @secondary_text: (nullable): secondary text of the prompt; can be %NULL
         * @use_markup: whether both texts are with markup
-        * @button_captions: (type GStrv) (nullable): captions of buttons to
-        * use in the message; can be %NULL
+        * @button_captions: (nullable): captions of buttons to use in the message;
+        * can be %NULL
         **/
        signals[PROMPT] = g_signal_new (
                "prompt",
@@ -439,7 +439,7 @@ e_user_prompter_server_class_init (EUserPrompterServerClass *class)
                G_TYPE_STRING,
                G_TYPE_STRING,
                G_TYPE_BOOLEAN,
-               G_TYPE_POINTER);
+               G_TYPE_STRV);
 }
 
 static void


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