[gnome-control-center] Printers: Make jobs dialog wider
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Printers: Make jobs dialog wider
- Date: Tue, 20 Feb 2018 00:14:17 +0000 (UTC)
commit ee1b9a8729b30ece24a5a9f445fa7bcf5ecb9460
Author: Marek Kasik <mkasik redhat com>
Date: Mon Feb 19 01:07:52 2018 +0100
Printers: Make jobs dialog wider
Request width of 720 pixels for jobs dialog and
constrain maximal number of character in displayed
jobs titles to 40 chars. Ellipsize at the end
if the job title is longer.
https://bugzilla.gnome.org/show_bug.cgi?id=758170
panels/printers/jobs-dialog.ui | 2 +-
panels/printers/pp-jobs-dialog.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/panels/printers/jobs-dialog.ui b/panels/printers/jobs-dialog.ui
index 0542538ad..ca2a1a0be 100644
--- a/panels/printers/jobs-dialog.ui
+++ b/panels/printers/jobs-dialog.ui
@@ -144,7 +144,7 @@
</widgets>
</object>
<object class="GtkDialog" id="jobs-dialog">
- <property name="width_request">600</property>
+ <property name="width_request">720</property>
<property name="height_request">500</property>
<property name="can_focus">False</property>
<property name="border_width">0</property>
diff --git a/panels/printers/pp-jobs-dialog.c b/panels/printers/pp-jobs-dialog.c
index 63120fffc..08e3b7bf2 100644
--- a/panels/printers/pp-jobs-dialog.c
+++ b/panels/printers/pp-jobs-dialog.c
@@ -281,6 +281,8 @@ create_listbox_row (gpointer item,
gtk_container_set_border_width (GTK_CONTAINER (box), 2);
widget = gtk_label_new (title);
+ gtk_label_set_max_width_chars (GTK_LABEL (widget), 40);
+ gtk_label_set_ellipsize (GTK_LABEL (widget), PANGO_ELLIPSIZE_END);
gtk_widget_set_halign (widget, GTK_ALIGN_START);
gtk_box_pack_start (GTK_BOX (box), widget, TRUE, TRUE, 10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]