[gtksourceview] CompletionContainer: add FIXME comment
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] CompletionContainer: add FIXME comment
- Date: Sun, 7 Jul 2013 11:00:17 +0000 (UTC)
commit 6587e6969c87b548aa713220d96a1f29364d3b8c
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jul 7 12:51:56 2013 +0200
CompletionContainer: add FIXME comment
gtksourceview/gtksourcecompletioncontainer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletioncontainer.c b/gtksourceview/gtksourcecompletioncontainer.c
index 07efb3d..28bfad2 100644
--- a/gtksourceview/gtksourcecompletioncontainer.c
+++ b/gtksourceview/gtksourcecompletioncontainer.c
@@ -155,6 +155,11 @@ _gtk_source_completion_container_get_preferred_width (GtkWidget *widget,
GtkRequisition nat_size;
gint width;
+ /* FIXME sometimes the returned height (nat_size.height) is 0. Maybe a
+ * bug in GtkTreeView. If there are sizing problems, or if there are
+ * problems with the scrolled window, a workaround would be to compute
+ * the height manually, like it is done in get_preferred_height() below.
+ */
gtk_widget_get_preferred_size (GTK_WIDGET (container->priv->tree_view),
NULL,
&nat_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]