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




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

    M!52 - Replace several G_TYPE_POINTER to their actual type in signal declaration
    
    This allows GLib to perform some type sanity-checks when required
    
    Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/52

 src/calendar/libecal/e-reminder-watcher.c | 4 ++--
 src/libebackend/e-user-prompter-server.c  | 6 +++---
 2 files changed, 5 insertions(+), 5 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-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]