[blam] Don't use glade for the 'about' dialog



commit 6aaaee817e871626cd8567cc7aaf7996f1784340
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date:   Sat Aug 18 04:08:33 2012 +0200

    Don't use glade for the 'about' dialog

 src/Application.cs |   10 +++++++++-
 src/Dialogs.cs     |   22 ----------------------
 2 files changed, 9 insertions(+), 23 deletions(-)
---
diff --git a/src/Application.cs b/src/Application.cs
index 942a7b1..7181a2c 100644
--- a/src/Application.cs
+++ b/src/Application.cs
@@ -555,7 +555,15 @@ namespace Imendio.Blam {
 
         public void AboutActivated (object obj, EventArgs args)
         {
-            new AboutDialog(mainWindow);
+            var about = new Gtk.AboutDialog();
+            about.TransientFor = TheApp.mainWindow;
+            about.Version = Defines.VERSION + "\n" + Defines.CODENAME;
+            about.LogoIconName = "blam";
+            about.IconName = "blam";
+            about.Copyright = "Copyright 2004-2006 (c) Mikael Hallendal <micke imendio com>\n"
+                + "Copyright 2006-20012 (c) Carlos MartÃn Nieto <cmn dwim me>";
+            about.Run();
+            about.Destroy();
         }
 
         public void AddChannelActivated (object obj, EventArgs args)
diff --git a/src/Dialogs.cs b/src/Dialogs.cs
index 4724cdb..0c99ecb 100644
--- a/src/Dialogs.cs
+++ b/src/Dialogs.cs
@@ -12,28 +12,6 @@ using Mono.Unix;
 using System;
 
 namespace Imendio.Blam {
-
-    class AboutDialog {
-        [Widget] Gtk.AboutDialog aboutDialog = null;
-
-        public AboutDialog(Gtk.Window parent)
-        {
-            Glade.XML gladeXML = Glade.XML.FromAssembly("blam.glade",
-                                                        "aboutDialog", null);
-            gladeXML.Autoconnect(this);
-
-            aboutDialog.TransientFor = parent;
-            aboutDialog.Version = Defines.VERSION + "\n" + Defines.CODENAME;
-            aboutDialog.LogoIconName = "blam";
-            aboutDialog.IconName = "blam";
-            aboutDialog.Copyright = "Copyright 2004-2006 (c) Mikael Hallendal <micke imendio com>\n"
-                + "Copyright 2006-2008 (c) Carlos MartÃn Nieto <carlos cmartin tk>";
-            aboutDialog.Run();
-            aboutDialog.Destroy();
-        }
-        
-    }
-
     class AddGroupDialog
     {
         [Widget] Gtk.Dialog addGroupDialog = null;



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