[gparted] Add missing window title to Help Contents dialog (!45)



commit 73f9a6f7489ea55430ea64c0c6f72a821cb583c8
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Jun 11 11:06:17 2019 -0600

    Add missing window title to Help Contents dialog (!45)
    
    When GParted is configured with `--disable-doc` the help documentation
    is neither built, nor installed.
    
    With this configuration the Help -> Contents menu displays a message
    dialog indicating the "Documentation is not available".
    
    On GNOME 3 no title is shown; however, on some other graphic toolkits
    / window managers an unspecified title is shown.
    
    For example on GParted Live with Fluxbox the following is displayed:
    
                             Unnamed
                             -------
    
                   Documentation is not available
    
          This build of gparted is configured without documentation.
          Documentation is available at the project web site.
          https://gparted.org
    
                               OK
    
    To address the unspecified title on non-GNOME 3 graphic toolkits, add
    a title that works with and without GNOME 3.
    
    Closes !45 - Add missing window title to Help Contents dialog

 src/Win_GParted.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 10a6418d..0812789f 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1842,6 +1842,7 @@ void Win_GParted::menu_help_contents()
        tmp_msg += "\n" ;
        tmp_msg += "https://gparted.org";;
        dialog .set_secondary_text( tmp_msg ) ;
+       dialog .set_title( _("GParted Manual") );
        dialog .run() ;
 #endif
 }


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