Mageia Bugzilla – Attachment 4570 Details for
Bug 11858
4_b1: Manage disk partitions (drakdisk) has no text in partition icons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
set labels again but make them ellipsized
0001-set-labels-again-but-make-them-ellipsized.patch (text/plain), 1.01 KB, created by
Thierry Vignaud
on 2013-12-03 12:33:42 CET
(
hide
)
Description:
set labels again but make them ellipsized
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2013-12-03 12:33:42 CET
Size:
1.01 KB
patch
obsolete
>From c5ebe562da00ae1e57eb6971ae0240520bdc899e Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Tue, 3 Dec 2013 12:30:10 +0100 >Subject: [PATCH] set labels again but make them ellipsized > >--- > perl-install/diskdrake/hd_gtk.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm >index 688a476..7558daf 100644 >--- a/perl-install/diskdrake/hd_gtk.pm >+++ b/perl-install/diskdrake/hd_gtk.pm >@@ -346,7 +346,8 @@ sub create_buttons4partitions { > } > my $info = $entry->{mntpoint} || $entry->{device_LABEL} || ''; > $info .= "\n" . ($entry->{size} ? formatXiB($entry->{size}, 512) : N("Unknown")) if $info; >- my $w = Gtk3::ToggleButton->new() or internal_error('new_with_label'); >+ my $w = Gtk3::ToggleButton->new_with_label($info) or internal_error('new_with_label'); >+ $w->get_child->set_ellipsize('end'); > $w->set_tooltip_text($info); > $w->signal_connect(clicked => sub { > $current_button != $w or return; >-- >1.8.4.4 >
From c5ebe562da00ae1e57eb6971ae0240520bdc899e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Tue, 3 Dec 2013 12:30:10 +0100 Subject: [PATCH] set labels again but make them ellipsized --- perl-install/diskdrake/hd_gtk.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index 688a476..7558daf 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -346,7 +346,8 @@ sub create_buttons4partitions { } my $info = $entry->{mntpoint} || $entry->{device_LABEL} || ''; $info .= "\n" . ($entry->{size} ? formatXiB($entry->{size}, 512) : N("Unknown")) if $info; - my $w = Gtk3::ToggleButton->new() or internal_error('new_with_label'); + my $w = Gtk3::ToggleButton->new_with_label($info) or internal_error('new_with_label'); + $w->get_child->set_ellipsize('end'); $w->set_tooltip_text($info); $w->signal_connect(clicked => sub { $current_button != $w or return; -- 1.8.4.4
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11858
:
4568
| 4570