Updating branch refs/heads/devel to a31273ee6b6a042db3a28c4dab7c46f222086c13 (commit) from 73dc7f5c4f81a1d7b6985de67d2b8fd7325a3f03 (commit)
commit a31273ee6b6a042db3a28c4dab7c46f222086c13 Author: Nick Schermer <n...@xfce.org> Date: Wed Jan 20 14:55:21 2010 +0100 Add remote-event in launcher for disabling tooltips. You can now quickly enable or disable the tooltips with the following command: xfce4-panel --plugin-event=launcher:disable-tooltips:bool:true plugins/launcher/launcher.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/plugins/launcher/launcher.c b/plugins/launcher/launcher.c index 1827916..c457041 100644 --- a/plugins/launcher/launcher.c +++ b/plugins/launcher/launcher.c @@ -1040,6 +1040,15 @@ launcher_plugin_remote_event (XfcePanelPlugin *panel_plugin, return TRUE; } + if (exo_str_is_equal (name, "disable-tooltips") + && value != NULL + && G_VALUE_HOLDS_BOOLEAN (value)) + { + g_object_set_property (G_OBJECT (plugin), "disable-tooltips", value); + + return FALSE; + } + return FALSE; } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits