[banshee: 2/12] Move HigMessageDialog to Hyena.Widgets



commit cfe50fc7eb506ee1629062b774b387e1f2d4dfb2
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Jul 22 12:12:00 2009 -0700

    Move HigMessageDialog to Hyena.Widgets

 .../DefaultApplicationHelperDialog.cs              |    2 +-
 .../Banshee.Gui.Widgets/UserJobTile.cs             |    4 +-
 .../Banshee.Gui/GtkBaseClient.cs                   |    2 +-
 .../Banshee.Gui/SourceActions.cs                   |    2 +-
 .../Banshee.Gui/TrackActions.cs                    |    1 +
 src/Core/Banshee.Widgets/Makefile.am               |    1 -
 .../Banshee.Dap.Ipod/UnsupportedDatabaseView.cs    |    2 +
 .../Banshee.Podcasting.Gui/PodcastActions.cs       |    1 +
 .../Hyena.Gui/Hyena.Widgets}/HigMessageDialog.cs   |   54 ++++++++++---------
 src/Libraries/Hyena.Gui/Makefile.am                |    1 +
 10 files changed, 38 insertions(+), 32 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/DefaultApplicationHelperDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/DefaultApplicationHelperDialog.cs
index 0d6385b..8c7479c 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/DefaultApplicationHelperDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/DefaultApplicationHelperDialog.cs
@@ -33,7 +33,7 @@ using Banshee.Configuration;
 
 namespace Banshee.Gui.Dialogs
 {
-    public class DefaultApplicationHelperDialog : Banshee.Widgets.HigMessageDialog
+    public class DefaultApplicationHelperDialog : Hyena.Widgets.HigMessageDialog
     {
         public static void RunIfAppropriate ()
         {
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
index 6319f27..b3724cc 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
@@ -56,7 +56,7 @@ namespace Banshee.Gui.Widgets
         private uint progress_bounce_id;
         private object tooltips;
         
-        Banshee.Widgets.HigMessageDialog cancel_dialog;
+        Hyena.Widgets.HigMessageDialog cancel_dialog;
         
         public UserJobTile (Job job) : base (3, 2, false)
         {
@@ -132,7 +132,7 @@ namespace Banshee.Gui.Widgets
                 parent = ServiceManager.Get<GtkElementsService> ().PrimaryWindow;
             }
             
-            cancel_dialog = new Banshee.Widgets.HigMessageDialog (parent, 
+            cancel_dialog = new Hyena.Widgets.HigMessageDialog (parent, 
                 DialogFlags.Modal, MessageType.Question, ButtonsType.None,
                 job.Title == null
                     ? Catalog.GetString ("Stop Operation")
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
index db6821c..53e6825 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
@@ -209,7 +209,7 @@ namespace Banshee.Gui
                     break;
             }
               
-            Banshee.Widgets.HigMessageDialog dialog = new Banshee.Widgets.HigMessageDialog (
+            Hyena.Widgets.HigMessageDialog dialog = new Hyena.Widgets.HigMessageDialog (
                 window, Gtk.DialogFlags.Modal, mtype, Gtk.ButtonsType.Close, entry.Message, entry.Details);
             
             dialog.Title = String.Empty;
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
index 64baf2d..824c26f 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
@@ -410,7 +410,7 @@ namespace Banshee.Gui
                 return true;
             }
         
-            Banshee.Widgets.HigMessageDialog dialog = new Banshee.Widgets.HigMessageDialog (
+            Hyena.Widgets.HigMessageDialog dialog = new Hyena.Widgets.HigMessageDialog (
                 ServiceManager.Get<GtkElementsService> ("GtkElementsService").PrimaryWindow,
                 Gtk.DialogFlags.Modal,
                 Gtk.MessageType.Question,
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
index d52260f..374e676 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
@@ -32,6 +32,7 @@ using Mono.Unix;
 using Gtk;
 
 using Hyena;
+using Hyena.Widgets;
 
 using Banshee.Query;
 using Banshee.Sources;
diff --git a/src/Core/Banshee.Widgets/Makefile.am b/src/Core/Banshee.Widgets/Makefile.am
index 756b2c5..a752190 100644
--- a/src/Core/Banshee.Widgets/Makefile.am
+++ b/src/Core/Banshee.Widgets/Makefile.am
@@ -7,7 +7,6 @@ SOURCES =  \
 	Banshee.Widgets/DateButton.cs \
 	Banshee.Widgets/DictionaryComboBox.cs \
 	Banshee.Widgets/DiscUsageDisplay.cs \
-	Banshee.Widgets/HigMessageDialog.cs \
 	Banshee.Widgets/HoverImageButton.cs \
 	Banshee.Widgets/LinearProgress.cs \
 	Banshee.Widgets/LinkLabel.cs \
diff --git a/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/UnsupportedDatabaseView.cs b/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/UnsupportedDatabaseView.cs
index e231ef2..6aa60e9 100644
--- a/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/UnsupportedDatabaseView.cs
+++ b/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/UnsupportedDatabaseView.cs
@@ -32,6 +32,8 @@ using Mono.Unix;
 using Gtk;
 using IPod;
 
+using Hyena.Widgets;
+
 using Banshee.Base;
 using Banshee.Gui;
 using Banshee.Widgets;
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
index 0562046..3c99461 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
@@ -33,6 +33,7 @@ using Mono.Unix;
 using Gtk;
 
 using Hyena;
+using Hyena.Widgets;
 using Migo.Syndication;
 
 using Banshee.Base;
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs
similarity index 84%
rename from src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs
rename to src/Libraries/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs
index f7abfdd..15910cc 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs
@@ -1,32 +1,34 @@
-
-/***************************************************************************
- *  HigMessageDialog.cs
- ****************************************************************************/
-
-/*  THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: 
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a
- *  copy of this software and associated documentation files (the "Software"),  
- *  to deal in the Software without restriction, including without limitation  
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense,  
- *  and/or sell copies of the Software, and to permit persons to whom the  
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included in 
- *  all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
- *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
- *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
- *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
- *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
- *  DEALINGS IN THE SOFTWARE.
- */
+//
+// HigMessageDialog.cs
+//
+// Authors:
+//   Aaron Bockover <abockover novell com>
+//
+// Copyright (C) 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
  
 using System;
 
-namespace Banshee.Widgets
+namespace Hyena.Widgets
 {
     public class HigMessageDialog : Gtk.Dialog
     {    
diff --git a/src/Libraries/Hyena.Gui/Makefile.am b/src/Libraries/Hyena.Gui/Makefile.am
index 634ef20..f4fd7d6 100644
--- a/src/Libraries/Hyena.Gui/Makefile.am
+++ b/src/Libraries/Hyena.Gui/Makefile.am
@@ -80,6 +80,7 @@ SOURCES =  \
 	Hyena.Widgets/AnimatedWidget.cs \
 	Hyena.Widgets/ComplexMenuItem.cs \
 	Hyena.Widgets/GenericToolItem.cs \
+	Hyena.Widgets/HigMessageDialog.cs \
 	Hyena.Widgets/ImageButton.cs \
 	Hyena.Widgets/MenuButton.cs \
 	Hyena.Widgets/MessageBar.cs \



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