[libgd/wip/rishi/main-box: 10/11] main icon box child
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/rishi/main-box: 10/11] main icon box child
- Date: Fri, 2 Dec 2016 17:56:04 +0000 (UTC)
commit 79a2d0677f722877f2ecb47acf28f8cf6916443e
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 2 18:46:33 2016 +0100
main icon box child
libgd/gd-main-icon-box-child.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-main-icon-box-child.c b/libgd/gd-main-icon-box-child.c
index dfe9e88..421c51a 100644
--- a/libgd/gd-main-icon-box-child.c
+++ b/libgd/gd-main-icon-box-child.c
@@ -152,11 +152,13 @@ gd_main_icon_box_child_constructed (GObject *obj)
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), check_button);
primary_label = gtk_label_new (NULL);
+ gtk_label_set_ellipsize (GTK_LABEL (primary_label), PANGO_ELLIPSIZE_MIDDLE);
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
g_object_bind_property (priv->item, "primary-text", primary_label, "label", G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (grid), primary_label);
secondary_label = gtk_label_new (NULL);
+ gtk_label_set_ellipsize (GTK_LABEL (primary_label), PANGO_ELLIPSIZE_END);
gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE);
context = gtk_widget_get_style_context (secondary_label);
gtk_style_context_add_class (context, "dim-label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]