[gtksourceview/gtksourcecompletion] Allow empty label for proposals



commit c28866909d0e03940d1831923bfa0021682696ae
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Sep 20 23:19:06 2009 +0200

    Allow empty label for proposals
    
    Proposals might just have only 'text' and 'markup' nowadays

 gtksourceview/gtksourcecompletionproposal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletionproposal.c b/gtksourceview/gtksourcecompletionproposal.c
index 6f2afe9..f2dafb2 100644
--- a/gtksourceview/gtksourcecompletionproposal.c
+++ b/gtksourceview/gtksourcecompletionproposal.c
@@ -47,7 +47,7 @@ static guint signals[NUM_SIGNALS] = {0,};
 static const gchar *
 gtk_source_completion_proposal_get_label_default (GtkSourceCompletionProposal *proposal)
 {
-	g_return_val_if_reached (NULL);
+	return NULL;
 }
 
 static const gchar *



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