[gparted] Ensure SpinButtons have space to display 7 digits (#7)
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Ensure SpinButtons have space to display 7 digits (#7)
- Date: Mon, 11 Feb 2019 09:20:30 +0000 (UTC)
commit d626a636d377a4614c53decc2bdb9781098f4b8a
Author: Luca Bacci <luca bacci982 gmail com>
Date: Tue Jan 22 14:27:38 2019 +0100
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 )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]