[gtk+] placesview: Fix wrong property type when creating a GtkLabel
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] placesview: Fix wrong property type when creating a GtkLabel
- Date: Wed, 5 Aug 2015 15:31:51 +0000 (UTC)
commit 68e00e9e5d9d1213a34b84c8cb8964f9cb15bc97
Author: Ting-Wei Lan <lantw src gnome org>
Date: Wed Aug 5 23:09:03 2015 +0800
placesview: Fix wrong property type when creating a GtkLabel
The type of xalign property of GtkLabel is float, not int. Using wrong type
crashes GtkFileChooser on x86_64 when compiling with clang.
https://bugzilla.gnome.org/show_bug.cgi?id=753284
gtk/gtkplacesview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index bbeb6c2..038ba83 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1663,7 +1663,7 @@ listbox_header_func (GtkListBoxRow *row,
"hexpand", TRUE,
"use_markup", TRUE,
"label", text,
- "xalign", 0,
+ "xalign", 0.0f,
NULL);
g_object_set (label,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]