[gtksourceview/wip/gtk-buildable] completion: center the label in the info window
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/gtk-buildable] completion: center the label in the info window
- Date: Wed, 10 Sep 2014 22:01:39 +0000 (UTC)
commit 2cefb862c6989512569e9a7df2c6b226a65d0f5a
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 | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 861e8eb..5d907b8 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2099,6 +2099,12 @@ 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_show (GTK_WIDGET (completion->priv->default_info));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]