[gparted] Rename Win_GParted method to show_help()
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Rename Win_GParted method to show_help()
- Date: Fri, 1 Mar 2019 18:15:53 +0000 (UTC)
commit f5e870d6c4524c49d58ccd3e77dac8236bf234d8
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Thu Feb 28 10:50:26 2019 +0000
Rename Win_GParted method to show_help()
It is not creating a dialog (a pop-up window managed by GParted code
itself). It is launching independent yelp program to display the help,
so remove the "_dialog" from the name to avoid any possible confusion.
include/Win_GParted.h | 2 +-
src/Win_GParted.cc | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/include/Win_GParted.h b/include/Win_GParted.h
index 80341317..49626fd7 100644
--- a/include/Win_GParted.h
+++ b/include/Win_GParted.h
@@ -166,7 +166,7 @@ private:
void menu_view_operations();
void show_disklabel_unrecognized( Glib::ustring device_name );
void show_resize_readonly( const Glib::ustring & path );
- void show_help_dialog( const Glib::ustring & filename, const Glib::ustring & link_id );
+ void show_help(const Glib::ustring & filename, const Glib::ustring & link_id);
void menu_help_contents();
void menu_help_about();
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index bbd0f056..1bf0fb0c 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1770,9 +1770,9 @@ void Win_GParted::show_resize_readonly( const Glib::ustring & path )
dialog.run();
}
-void Win_GParted::show_help_dialog( const Glib::ustring & filename /* E.g., gparted */
- , const Glib::ustring & link_id /* For context sensitive help */
- )
+
+void Win_GParted::show_help(const Glib::ustring & filename /* E.g., "gparted" */,
+ const Glib::ustring & link_id /* For context sensitive help */)
{
GError *error1 = NULL;
GdkScreen *gscreen = NULL ;
@@ -1827,7 +1827,7 @@ void Win_GParted::menu_help_contents()
{
#ifdef ENABLE_HELP_DOC
//GParted was built with help documentation
- show_help_dialog( "gparted", "" );
+ show_help("gparted", "");
#else
//GParted was built *without* help documentation using --disable-doc
Gtk::MessageDialog dialog( *this,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]