[gnome-builder/wip/gtk4-port] plugins/shellcmd: freeze/thaw property notifications



commit 3745ca5d696ac11edcbfdccbe8a84b46097c7c19
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 14 22:45:17 2022 -0700

    plugins/shellcmd: freeze/thaw property notifications
    
    That way consumers will always have the full new state of the objects.

 src/plugins/shellcmd/gbp-shellcmd-command-dialog.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/shellcmd/gbp-shellcmd-command-dialog.c 
b/src/plugins/shellcmd/gbp-shellcmd-command-dialog.c
index ed6a3f234..d682b0e4a 100644
--- a/src/plugins/shellcmd/gbp-shellcmd-command-dialog.c
+++ b/src/plugins/shellcmd/gbp-shellcmd-command-dialog.c
@@ -395,6 +395,8 @@ command_save_action (GtkWidget  *widget,
 
   g_assert (GBP_IS_SHELLCMD_COMMAND_DIALOG (self));
 
+  g_object_freeze_notify (G_OBJECT (self->command));
+
   argvstr = gtk_editable_get_text (GTK_EDITABLE (self->argv));
   if (g_shell_parse_argv (argvstr, &argc, &argv, NULL))
     ide_run_command_set_argv (IDE_RUN_COMMAND (self->command), (const char * const *)argv);
@@ -409,6 +411,8 @@ command_save_action (GtkWidget  *widget,
   ide_run_command_set_env (IDE_RUN_COMMAND (self->command),
                            (const char * const *)env);
 
+  g_object_thaw_notify (G_OBJECT (self->command));
+
   gtk_window_destroy (GTK_WINDOW (self));
 
   IDE_EXIT;


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