[gparted] modern-gtk2: Use Gtk::AboutDialog::set_program_name() (!17)



commit 511d5971886c032d80b93348b40d870b62db1510
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Sat Aug 11 10:51:34 2018 +0200

    modern-gtk2: Use Gtk::AboutDialog::set_program_name() (!17)
    
    Gtk::AboutDialog::set_name() was deprecated in gtkmm 2.12.  Replace with
    Gtk::AboutDialog::set_program_name().
    
    References:
    https://developer.gnome.org/gtkmm/2.24/classGtk_1_1AboutDialog.html
    https://gitlab.gnome.org/GNOME/gtkmm/blob/2.20.0/NEWS#L741
    
    Closes !17 - Gtk2 modernisation

 src/Win_GParted.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 9cee9e0d..097b1349 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1728,8 +1728,8 @@ void Win_GParted::menu_help_about()
        
        Gtk::AboutDialog dialog ;
        dialog .set_transient_for( *this ) ;
-       
-       dialog .set_name( _("GParted") ) ;
+
+       dialog.set_program_name(_("GParted"));
        dialog .set_logo_icon_name( "gparted" ) ;
        dialog .set_version( VERSION ) ;
        dialog .set_comments( _( "GNOME Partition Editor" ) ) ;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]