prepare-for-gtk3: Remove calls to Gtk::Dialog::set_has_separator() (#7)

Originally in Gtk2, by default, dialogs showed a horizontal separator
between the content area and the action area (buttons).  GParted
explicitly called Gtk::Dialog::set_has_separator(false) for all it's
dialogs to remove the separator.

In Gtk2/Gtkmm2 2.22, separators were deprecated [1].  In Gtk3/Gtkmm3
separators in dialogs were removed altogether, including all the related
APIs [2][3][4].  Therefore remove all calls.

References:
[1] Commit - "Document separator-related api in GtkDialog as deprecated"
    6f6650e6cf

[2] Commit - "Remove separators from dialogs"
    d433a60611

[3] GTK+ 3.0.0 NEWS file
    https://gitlab.gnome.org/GNOME/gtk/blob/3.0.0/NEWS#L779
    "
    Overview of Changed from GTK+ 2.90.6 to 2.90.7
    ==============================================

    * Various deprecated APIs have been removed:
    ...
    - GtkDialog separators, including the GtkDialog::has-separator
      property, including setter/getter, the GTK_DIALOG_NO_SEPARATOR
      flag and the GtkMessageDialog::use-separator style property
    "

[4] Gtkmm 3.0.0 NEWS file
    https://gitlab.gnome.org/GNOME/gtkmm/blob/3.0.0/NEWS#406
    "
    * Dialog:
    - Remove get/set_has_separator() and property.
    - Constructors: Remove use_separator parameters.
    "

Closes #7 - Port to Gtk3
This commit is contained in:
Luca Bacci 2018-08-03 18:39:05 +02:00 committed by Mike Fleetwood
parent f86d7548cd
commit 38d9d92013
9 changed files with 0 additions and 9 deletions

View File

@ -27,7 +27,6 @@ namespace GParted
DialogFeatures::DialogFeatures() DialogFeatures::DialogFeatures()
{ {
set_title( _("File System Support") ) ; set_title( _("File System Support") ) ;
set_has_separator( false ) ;
//Set minimum dialog height so it fits on an 800x600 screen //Set minimum dialog height so it fits on an 800x600 screen
set_size_request( -1, 500 ) ; set_size_request( -1, 500 ) ;

View File

@ -30,7 +30,6 @@ DialogManageFlags::DialogManageFlags( const Partition & partition, std::map<Glib
any_change = false ; any_change = false ;
set_title( String::ucompose( _("Manage flags on %1"), partition .get_path() ) ); set_title( String::ucompose( _("Manage flags on %1"), partition .get_path() ) );
set_has_separator( false ) ;
set_resizable( false ) ; set_resizable( false ) ;
Glib::ustring str_temp = "<span weight=\"bold\" size=\"larger\">" ; Glib::ustring str_temp = "<span weight=\"bold\" size=\"larger\">" ;

View File

@ -29,7 +29,6 @@ namespace GParted
DialogPasswordEntry::DialogPasswordEntry( const Partition & partition ) DialogPasswordEntry::DialogPasswordEntry( const Partition & partition )
{ {
this->set_resizable( false ); this->set_resizable( false );
this->set_has_separator( false );
this->set_size_request( 400, -1 ); this->set_size_request( 400, -1 );
/* TO TRANSLATORS: dialog title, looks like LUKS Passphrase /dev/sda1 */ /* TO TRANSLATORS: dialog title, looks like LUKS Passphrase /dev/sda1 */

View File

@ -23,7 +23,6 @@ namespace GParted
Dialog_Base_Partition::Dialog_Base_Partition() Dialog_Base_Partition::Dialog_Base_Partition()
{ {
this ->set_has_separator( false ) ;
frame_resizer_base = NULL; frame_resizer_base = NULL;
GRIP = false ; GRIP = false ;
this ->fixed_start = false ; this ->fixed_start = false ;

View File

@ -28,7 +28,6 @@ Dialog_Disklabel::Dialog_Disklabel( const Device & device )
/*TO TRANSLATORS: dialogtitle, looks like Create partition table on /dev/hda */ /*TO TRANSLATORS: dialogtitle, looks like Create partition table on /dev/hda */
this ->set_title( String::ucompose( _("Create partition table on %1"), device_path ) ); this ->set_title( String::ucompose( _("Create partition table on %1"), device_path ) );
this ->set_has_separator( false ) ;
this ->set_resizable( false ); this ->set_resizable( false );
{ {

View File

@ -28,7 +28,6 @@ namespace GParted
Dialog_FileSystem_Label::Dialog_FileSystem_Label( const Partition & partition ) Dialog_FileSystem_Label::Dialog_FileSystem_Label( const Partition & partition )
{ {
this ->set_resizable( false ) ; this ->set_resizable( false ) ;
this ->set_has_separator( false ) ;
this->set_size_request( 400, -1 ); this->set_size_request( 400, -1 );
/* TO TRANSLATORS: dialog title, looks like Set file system label on /dev/hda3 */ /* TO TRANSLATORS: dialog title, looks like Set file system label on /dev/hda3 */

View File

@ -31,7 +31,6 @@ namespace GParted
Dialog_Partition_Info::Dialog_Partition_Info( const Partition & partition ) : partition( partition ) Dialog_Partition_Info::Dialog_Partition_Info( const Partition & partition ) : partition( partition )
{ {
this ->set_has_separator( false ) ;
// Set minimum dialog height so it fits on an 800x600 screen without too much // Set minimum dialog height so it fits on an 800x600 screen without too much
// whitespace (~500 px max for GNOME desktop). Allow extra space if have any // whitespace (~500 px max for GNOME desktop). Allow extra space if have any
// messages or for LVM2 PV or LUKS encryption. // messages or for LVM2 PV or LUKS encryption.

View File

@ -28,7 +28,6 @@ namespace GParted
Dialog_Partition_Name::Dialog_Partition_Name( const Partition & partition, int max_length ) Dialog_Partition_Name::Dialog_Partition_Name( const Partition & partition, int max_length )
{ {
this->set_resizable( false ); this->set_resizable( false );
this->set_has_separator( false );
this->set_size_request( 400, -1 ); this->set_size_request( 400, -1 );
/* TO TRANSLATORS: dialog title, looks like Set partition name on /dev/hda3 */ /* TO TRANSLATORS: dialog title, looks like Set partition name on /dev/hda3 */

View File

@ -29,7 +29,6 @@ namespace GParted
Dialog_Progress::Dialog_Progress( const std::vector<Operation *> & operations ) Dialog_Progress::Dialog_Progress( const std::vector<Operation *> & operations )
{ {
this ->set_has_separator( false ) ;
this ->set_title( _("Applying pending operations") ) ; this ->set_title( _("Applying pending operations") ) ;
this ->operations = operations ; this ->operations = operations ;
succes = true ; succes = true ;