[nautilus/984-glib-signal_id-0-is-invalid] menu-provider: Fix signal id argument



commit 4f334aec5d6727e2e84abc787339ab1055cd9f49
Author: Patrick Monnerat <patrick monnerat net>
Date:   Fri Jan 3 11:44:52 2020 +0100

    menu-provider: Fix signal id argument
    
    ITEMS_UPDATED is not the signal id. It's the index for the array of
    signal ids.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/984

 libnautilus-extension/nautilus-menu-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libnautilus-extension/nautilus-menu-provider.c b/libnautilus-extension/nautilus-menu-provider.c
index 5c7d40df6..a6b86a86f 100644
--- a/libnautilus-extension/nautilus-menu-provider.c
+++ b/libnautilus-extension/nautilus-menu-provider.c
@@ -94,5 +94,5 @@ nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider *provider
 {
     g_return_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider));
 
-    g_signal_emit (provider, ITEMS_UPDATED, 0);
+    g_signal_emit (provider, signals[ITEMS_UPDATED], 0);
 }


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