[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 168/473: Remember custom commands.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:55:38 CET 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 2e574172afd8407cd938127b3ad2fde325f62b62
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Oct 8 18:47:10 2013 -0400

    Remember custom commands.
---
 src/panel_plugin.cpp |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/panel_plugin.cpp b/src/panel_plugin.cpp
index fb6a5bb..cbd0b2a 100644
--- a/src/panel_plugin.cpp
+++ b/src/panel_plugin.cpp
@@ -69,6 +69,9 @@ PanelPlugin::PanelPlugin(XfcePanelPlugin* plugin) :
 		LauncherView::set_icon_size(xfce_rc_read_int_entry(settings, "item-icon-size", LauncherView::get_icon_size()));
 		ApplicationsPage::set_load_hierarchy(xfce_rc_read_bool_entry(settings, "load-hierarchy", ApplicationsPage::get_load_hierarchy()));
 		FavoritesPage::set_remember_favorites(xfce_rc_read_bool_entry(settings, "favorites-in-recent", FavoritesPage::get_remember_favorites()));
+		Menu::set_settings_command(xfce_rc_read_entry(settings, "command-settings", Menu::get_settings_command().c_str()));
+		Menu::set_lockscreen_command(xfce_rc_read_entry(settings, "command-lockscreen", Menu::get_lockscreen_command().c_str()));
+		Menu::set_logout_command(xfce_rc_read_entry(settings, "command-logout", Menu::get_logout_command().c_str()));
 		m_menu = new Menu(settings);
 
 		xfce_rc_close(settings);
@@ -315,6 +318,9 @@ void PanelPlugin::save()
 	xfce_rc_write_int_entry(settings, "item-icon-size", LauncherView::get_icon_size());
 	xfce_rc_write_bool_entry(settings, "load-hierarchy", ApplicationsPage::get_load_hierarchy());
 	xfce_rc_write_bool_entry(settings, "favorites-in-recent", FavoritesPage::get_remember_favorites());
+	xfce_rc_write_entry(settings, "command-settings", Menu::get_settings_command().c_str());
+	xfce_rc_write_entry(settings, "command-lockscreen", Menu::get_lockscreen_command().c_str());
+	xfce_rc_write_entry(settings, "command-logout", Menu::get_logout_command().c_str());
 	m_menu->save(settings);
 
 	xfce_rc_close(settings);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list