[gtksourceview] Completion: autosize tree view columns when widget is visible
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: autosize tree view columns when widget is visible
- Date: Mon, 27 Jan 2014 19:53:28 +0000 (UTC)
commit f111ea41075b5a45183b87c1266e30e7461f2d3a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jan 27 20:45:50 2014 +0100
Completion: autosize tree view columns when widget is visible
https://bugzilla.gnome.org/show_bug.cgi?id=723116
gtksourceview/gtksourcecompletion.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 4acdf5b..69879ce 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -566,6 +566,11 @@ gtk_source_completion_show_default (GtkSourceCompletion *completion)
{
gtk_widget_show (GTK_WIDGET (completion->priv->main_window));
+ /* Do the autosize when the widget is visible. It doesn't work if it is
+ * done before.
+ */
+ gtk_tree_view_columns_autosize (completion->priv->tree_view_proposals);
+
if (!completion->priv->remember_info_visibility)
{
gtk_toggle_button_set_active (completion->priv->info_button, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]