[gnome-builder/wip/gtk4-port: 1298/1774] libide/code: notify of language-id property




commit 6ed940828d71545a23d8271f026f07c500d3c10d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 1 16:22:58 2022 -0700

    libide/code: notify of language-id property
    
    This was missing so the menu didn't get updated.

 src/libide/code/ide-buffer.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libide/code/ide-buffer.c b/src/libide/code/ide-buffer.c
index 962589b70..899290472 100644
--- a/src/libide/code/ide-buffer.c
+++ b/src/libide/code/ide-buffer.c
@@ -491,6 +491,8 @@ ide_buffer_notify_language (IdeBuffer  *self,
 
   if (self->code_action_provider)
     ide_extension_adapter_set_value (self->code_action_provider, lang_id);
+
+  g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LANGUAGE_ID]);
 }
 
 static void


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