banshee r4439 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4439 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui
- Date: Thu, 28 Aug 2008 16:53:01 +0000 (UTC)
Author: gburt
Date: Thu Aug 28 16:53:01 2008
New Revision: 4439
URL: http://svn.gnome.org/viewvc/banshee?rev=4439&view=rev
Log:
2008-08-28 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs: Add
Register and UnRegister methods that Add/Remove the ActionGroup from the
InterfaceActionService.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs Thu Aug 28 16:53:01 2008
@@ -65,9 +65,19 @@
ui_merge_ids.Add (Actions.AddUiFromFileInCurrentAssembly (ui_file));
}
- public override void Dispose ()
+ public void Register ()
+ {
+ Actions.AddActionGroup (this);
+ }
+
+ public void UnRegister ()
{
Actions.RemoveActionGroup (this);
+ }
+
+ public override void Dispose ()
+ {
+ UnRegister ();
foreach (uint merge_id in ui_merge_ids) {
if (merge_id > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]