Mageia Bugzilla – Attachment 6318 Details for
Bug 15728
it is invisible in the doPartitionDisk screen, that the windows partition can be resized there.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Untested patch
0001-Fix-ugly-separator-between-partition-and-make-the-re.patch (text/plain), 2.06 KB, created by
Pascal Terjan
on 2015-04-20 01:39:14 CEST
(
hide
)
Description:
Untested patch
Filename:
MIME Type:
Creator:
Pascal Terjan
Created:
2015-04-20 01:39:14 CEST
Size:
2.06 KB
patch
obsolete
>From 5ead26e0f2de8988b0468b46578751b5578efa92 Mon Sep 17 00:00:00 2001 >From: Pascal Terjan <pterjan@gmail.com> >Date: Sun, 19 Apr 2015 23:37:53 +0000 >Subject: [PATCH] Fix ugly separator between partition and make the resize > handle more visible > >--- > perl-install/fs/partitioning_wizard.pm | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) > >diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm >index 316e2f1..e62231d 100644 >--- a/perl-install/fs/partitioning_wizard.pm >+++ b/perl-install/fs/partitioning_wizard.pm >@@ -305,14 +305,12 @@ sub create_display_box { > > my $display_box = ugtk3::gtkset_size_request(Gtk3::HBox->new(0,0), -1, 26); > >- my $sep_count = @parts - 1; > #- ratio used to compute initial partition pixel width (each partition should be > min_width) > #- though, the pixel/sectors ratio cannot be the same for all the partitions >- my $initial_ratio = $totalsectors ? ($width - @parts * $minwidth - $sep_count) / $totalsectors : 1; >+ my $initial_ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1; > > my $vbox = Gtk3::VBox->new; > >- my $part_sep; > my $desc; > > if ($resize) { >@@ -351,6 +349,7 @@ sub create_display_box { > $hpane->pack1($part_widget, 1, 0); > $hpane->pack2($mdv_widget, 1, 0); > $hpane->set_position(ceil($ratio * $entry->{req_size})); >+ $hpane->set_wide_handle(1); > ugtk3::gtkset_size_request($hpane, $entry->{width}, 0); > ugtk3::gtkpack__($display_box, $hpane); > >@@ -411,12 +410,7 @@ sub create_display_box { > ugtk3::gtkpack($display_box, $part_widget); > } > $part_widget->add($part_info); >- >- $part_sep = gtkadd(Gtk3::EventBox->new, >- gtkset_size_request(Gtk3::Label->new("."), 1, 0)); >- gtkpack__($display_box, $part_sep); > } >- $display_box->remove($part_sep) if $part_sep; > unless ($resize || $fill_empty) { > my @types = (N_("Ext2/3/4"), N_("XFS"), N_("Swap"), N_("Windows"), > N_("Other"), N_("Empty")); >-- >2.3.2 >
From 5ead26e0f2de8988b0468b46578751b5578efa92 Mon Sep 17 00:00:00 2001 From: Pascal Terjan <pterjan@gmail.com> Date: Sun, 19 Apr 2015 23:37:53 +0000 Subject: [PATCH] Fix ugly separator between partition and make the resize handle more visible --- perl-install/fs/partitioning_wizard.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index 316e2f1..e62231d 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -305,14 +305,12 @@ sub create_display_box { my $display_box = ugtk3::gtkset_size_request(Gtk3::HBox->new(0,0), -1, 26); - my $sep_count = @parts - 1; #- ratio used to compute initial partition pixel width (each partition should be > min_width) #- though, the pixel/sectors ratio cannot be the same for all the partitions - my $initial_ratio = $totalsectors ? ($width - @parts * $minwidth - $sep_count) / $totalsectors : 1; + my $initial_ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1; my $vbox = Gtk3::VBox->new; - my $part_sep; my $desc; if ($resize) { @@ -351,6 +349,7 @@ sub create_display_box { $hpane->pack1($part_widget, 1, 0); $hpane->pack2($mdv_widget, 1, 0); $hpane->set_position(ceil($ratio * $entry->{req_size})); + $hpane->set_wide_handle(1); ugtk3::gtkset_size_request($hpane, $entry->{width}, 0); ugtk3::gtkpack__($display_box, $hpane); @@ -411,12 +410,7 @@ sub create_display_box { ugtk3::gtkpack($display_box, $part_widget); } $part_widget->add($part_info); - - $part_sep = gtkadd(Gtk3::EventBox->new, - gtkset_size_request(Gtk3::Label->new("."), 1, 0)); - gtkpack__($display_box, $part_sep); } - $display_box->remove($part_sep) if $part_sep; unless ($resize || $fill_empty) { my @types = (N_("Ext2/3/4"), N_("XFS"), N_("Swap"), N_("Windows"), N_("Other"), N_("Empty")); -- 2.3.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15728
:
6307
| 6318 |
6320
|
6322