[gtksourceview/wip/gtk-buildable] completion: center the label in the info window



commit 1c9f19693ca9acbe808386c7a8fdd3116999872f
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Sep 10 23:59:42 2014 +0200

    completion: center the label in the info window
    
    But it doesn't work.

 gtksourceview/gtksourcecompletion.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 861e8eb..715f1e7 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2099,6 +2099,11 @@ init_info_window (GtkSourceCompletion *completion)
        completion->priv->default_info = GTK_LABEL (gtk_label_new (NULL));
        g_object_ref_sink (completion->priv->default_info);
 
+       gtk_widget_set_halign (GTK_WIDGET (completion->priv->default_info), GTK_ALIGN_CENTER);
+       gtk_widget_set_valign (GTK_WIDGET (completion->priv->default_info), GTK_ALIGN_CENTER);
+       gtk_widget_set_hexpand (GTK_WIDGET (completion->priv->default_info), TRUE);
+       gtk_widget_set_vexpand (GTK_WIDGET (completion->priv->default_info), TRUE);
+
        gtk_widget_show (GTK_WIDGET (completion->priv->default_info));
 }
 


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