[gimp] app: fix drag'n drop viewable description.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix drag'n drop viewable description.
- Date: Fri, 3 Apr 2020 22:58:46 +0000 (UTC)
commit cb731fd8730b1103526fb3ba6b8ab5bb140229f4
Author: Jehan <jehan girinstud io>
Date: Sat Apr 4 00:57:40 2020 +0200
app: fix drag'n drop viewable description.
In GTK+3 GIMP, without a "width-chars" even short layer names (a few
letters) were always ellipsized to nothingness with the "ellipsize"
property.
So add a reasonable prefered width char (which will be at most 10
characters, less if the layer name is smaller).
Also drop "xpad" property as this is now deprecated.
app/widgets/gimpdnd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpdnd.c b/app/widgets/gimpdnd.c
index b09f590dde..e4d867e824 100644
--- a/app/widgets/gimpdnd.c
+++ b/app/widgets/gimpdnd.c
@@ -1848,10 +1848,10 @@ gimp_dnd_get_viewable_icon (GtkWidget *widget,
label = g_object_new (GTK_TYPE_LABEL,
"label", desc,
- "xpad", 3,
"xalign", 0.0,
"yalign", 0.5,
"max-width-chars", 30,
+ "width-chars", MIN (strlen (desc), 10),
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]