Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release-src > by-pkgid > 838409f06098f25972c735bffbbada7c > files > 27

gparted-0.33.0-2.mga7.src.rpm

From d626a636d377a4614c53decc2bdb9781098f4b8a Mon Sep 17 00:00:00 2001
From: Luca Bacci <luca.bacci982@gmail.com>
Date: Tue, 22 Jan 2019 14:27:38 +0100
Subject: [PATCH 23/26] Ensure SpinButtons have space to display 7 digits (#7)

In Gtk2 the up and down buttons in a SpinButton were smaller leaving
space for 7 digits before scrolling the entry.  In Gtk3 the up and down
buttons are much larger leaving only space for 4 digits.  This occurs in
the SpinButtons in the Dialog_Base_Partition class as displayed in the
New Partition, Paste and Resize/Move dialogs.

Set width-chars property of all Gtk::SpinButtons to ensure 7 digits can
be displayed before scrolling the entry.

Closes #7 - Port to Gtk3
---
 src/Dialog_Base_Partition.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Dialog_Base_Partition.cc b/src/Dialog_Base_Partition.cc
index bfa278cb..4bf17d92 100644
--- a/src/Dialog_Base_Partition.cc
+++ b/src/Dialog_Base_Partition.cc
@@ -58,6 +58,7 @@ Dialog_Base_Partition::Dialog_Base_Partition()
 		
 	spinbutton_before .set_numeric( true );
 	spinbutton_before .set_increments( 1, 100 );
+	spinbutton_before.set_width_chars(7);
 	table_resize.attach( spinbutton_before, 1, 2, 0, 1, Gtk::FILL );
 	
 	//add spinbutton_size
@@ -65,6 +66,7 @@ Dialog_Base_Partition::Dialog_Base_Partition()
 
 	spinbutton_size .set_numeric( true );
 	spinbutton_size .set_increments( 1, 100 );
+	spinbutton_size.set_width_chars(7);
 	table_resize.attach( spinbutton_size, 1, 2, 1, 2, Gtk::FILL );
 	
 	//add spinbutton_after
@@ -72,6 +74,7 @@ Dialog_Base_Partition::Dialog_Base_Partition()
 	
 	spinbutton_after .set_numeric( true );
 	spinbutton_after .set_increments( 1, 100 );
+	spinbutton_after.set_width_chars(7);
 	table_resize.attach( spinbutton_after, 1, 2, 2, 3, Gtk::FILL );
 	
 	if ( ! fixed_start )
-- 
2.21.0