[gnome-builder] workbench: be nice to GPropertyAction



commit 9323e9f8ab029cc5caf3a71322133b2330327354
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 26 02:11:39 2017 -0700

    workbench: be nice to GPropertyAction
    
    It really wants a valid string for the state of the action, so ensure
    that we have a non-NULL value here.

 src/libide/workbench/ide-workbench.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/workbench/ide-workbench.c b/src/libide/workbench/ide-workbench.c
index 6124d8e..0855919 100644
--- a/src/libide/workbench/ide-workbench.c
+++ b/src/libide/workbench/ide-workbench.c
@@ -921,7 +921,9 @@ ide_workbench_get_visible_perspective_name (IdeWorkbench *self)
       return gtk_stack_get_visible_child_name (GTK_STACK (parent));
     }
 
-  return NULL;
+  /* Return a valid string to be nice to GPropertyAction */
+
+  return "";
 }
 
 void


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