[epiphany] window-commands: Ellipsize URI in web app creation dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] window-commands: Ellipsize URI in web app creation dialog
- Date: Thu, 13 Oct 2016 23:30:29 +0000 (UTC)
commit 911bf48c351920a4a7f0db660f001b3c088264ba
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Oct 13 18:27:30 2016 -0500
window-commands: Ellipsize URI in web app creation dialog
It looks bad if this dialog is too wide
src/window-commands.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index c0db587..e26cd54 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -989,8 +989,11 @@ window_cmd_save_as_application (GSimpleAction *action,
markup = g_strdup_printf ("<small>%s</small>", escaped_address);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), markup);
+ gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_max_width_chars (GTK_LABEL (label), 40);
g_free (markup);
g_free (escaped_address);
+
gtk_box_pack_end (GTK_BOX (box), label, FALSE, FALSE, 0);
context = gtk_widget_get_style_context (label);
gtk_style_context_add_class (context, "dim-label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]