Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=7e6e4538cb2072aa49ef43d36ed012c0c43afe72

commit 7e6e4538cb2072aa49ef43d36ed012c0c43afe72
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Wed May 25 22:16:52 2011 +0200

Crypte note to the server

diff --git a/frugal-mono-tools/ChangeLog b/frugal-mono-tools/ChangeLog
index f8fecbf..a99b771 100644
--- a/frugal-mono-tools/ChangeLog
+++ b/frugal-mono-tools/ChangeLog
@@ -1,3 +1,33 @@
+2011-05-25  gaetan gourdin  <bouleet...@frogdev.info>
+
+       * Crypto.cs:
+       * WID_Notes.cs:
+       * generated.cs:
+       * frugal-mono-tools.csproj:
+       * frugalmonotools.splash.cs:
+       * frugalmonotools.WID_Pkg.cs:
+       * frugalmonotools.WID_Logs.cs:
+       * frugalmonotools.WID_Grub.cs:
+       * frugalmonotools.WID_Xorg.cs:
+       * frugalmonotools.WID_News.cs:
+       * frugalmonotools.Fen_Menu.cs:
+       * frugalmonotools.DiagGrub.cs:
+       * frugalmonotools.WID_About.cs:
+       * frugalmonotools.WID_Notes.cs:
+       * frugalmonotools.WID_Users.cs:
+       * frugalmonotools.FEN_Debug.cs:
+       * frugalmonotools.WID_Update.cs:
+       * frugalmonotools.WID_System.cs:
+       * frugalmonotools.WID_Config.cs:
+       * frugalmonotools.MessageBox.cs:
+       * frugalmonotools.WID_Network.cs:
+       * frugalmonotools.WID_Support.cs:
+       * frugalmonotools.WID_DateTime.cs:
+       * frugalmonotools.WID_Hardware.cs:
+       * frugalmonotools.WID_Services.cs:
+       * frugalmonotools.WID_UpdateConf.cs:
+       * frugalmonotools.WID_LoginManager.cs:
+
2011-04-16  gaetan gourdin  <bouleet...@frogdev.info>

* Service.cs:
diff --git a/frugal-mono-tools/Crypto.cs b/frugal-mono-tools/Crypto.cs
new file mode 100644
index 0000000..2f7bc58
--- /dev/null
+++ b/frugal-mono-tools/Crypto.cs
@@ -0,0 +1,144 @@
+// /*
+//  *  Copyright (C) 2010 by Gaetan Gourdin <bouleet...@frogdev.info>
+//  *
+//  *  This program is free software; you can redistribute it and/or modify
+//  *  it under the terms of the GNU General Public License as published by
+//  *  the Free Software Foundation; either version 2 of the License, or
+//  *  (at your option) any later version.
+//  *
+//  *  This program is distributed in the hope that it will be useful,
+//  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  *  GNU General Public License for more details.
+//  *
+//  *  You should have received a copy of the GNU General Public License
+//  *  along with this program; if not, write to the Free Software
+//  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.
+//  */
+using System;
+using System.Security.Cryptography;
+using System.Text;
+using System.IO;
+
+namespace frugalmonotools
+{
+       public static class Crypto
+       {
+           private static  byte[] _salt = 
Encoding.ASCII.GetBytes("o6806642kbM7c5");
+
+           /// <summary>
+           /// Encrypt the given string using AES.  The string can be 
decrypted using
+           /// DecryptStringAES().  The sharedSecret parameters must match.
+           /// </summary>
+           /// <param name="plainText">The text to encrypt.</param>
+           /// <param name="sharedSecret">A password used to generate a key 
for encryption.</param>
+           public static string EncryptStringAES(string plainText, string 
sharedSecret)
+           {
+               if(string.IsNullOrEmpty(plainText))
+                   throw new ArgumentNullException("plainText");
+               if(string.IsNullOrEmpty(sharedSecret))
+                   throw new ArgumentNullException("sharedSecret");
+
+               string outStr = null;                       // Encrypted string 
to return
+               RijndaelManaged aesAlg = null;              // RijndaelManaged 
object used to encrypt the data.
+
+               try
+               {
+                   // generate the key from the shared secret and the salt
+                   Rfc2898DeriveBytes key = new 
Rfc2898DeriveBytes(sharedSecret, _salt);
+
+                   // Create a RijndaelManaged object
+                   // with the specified key and IV.
+                   aesAlg = new RijndaelManaged();
+                   aesAlg.Key = key.GetBytes(aesAlg.KeySize / 8);
+                   aesAlg.IV = key.GetBytes(aesAlg.BlockSize / 8);
+
+                   // Create a decrytor to perform the stream transform.
+                   ICryptoTransform encryptor = 
aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV);
+
+                   // Create the streams used for encryption.
+                   using (MemoryStream msEncrypt = new MemoryStream())
+                   {
+                       using (CryptoStream csEncrypt = new 
CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write))
+                       {
+                           using (StreamWriter swEncrypt = new 
StreamWriter(csEncrypt))
+                           {
+
+                               //Write all data to the stream.
+                               swEncrypt.Write(plainText);
+                           }
+                       }
+                       outStr = Convert.ToBase64String(msEncrypt.ToArray());
+                   }
+               }
+               finally
+               {
+                   // Clear the RijndaelManaged object.
+                   if (aesAlg != null)
+                       aesAlg.Clear();
+               }
+
+               // Return the encrypted bytes from the memory stream.
+               return outStr;
+           }
+
+           /// <summary>
+           /// Decrypt the given string.  Assumes the string was encrypted 
using
+           /// EncryptStringAES(), using an identical sharedSecret.
+           /// </summary>
+           /// <param name="cipherText">The text to decrypt.</param>
+           /// <param name="sharedSecret">A password used to generate a key 
for decryption.</param>
+           public static string DecryptStringAES(string cipherText, string 
sharedSecret)
+           {
+               if (string.IsNullOrEmpty(cipherText))
+                   throw new ArgumentNullException("cipherText");
+               if (string.IsNullOrEmpty(sharedSecret))
+                   throw new ArgumentNullException("sharedSecret");
+
+               // Declare the RijndaelManaged object
+               // used to decrypt the data.
+               RijndaelManaged aesAlg = null;
+
+               // Declare the string used to hold
+               // the decrypted text.
+               string plaintext = null;
+
+               try
+               {
+                   // generate the key from the shared secret and the salt
+                   Rfc2898DeriveBytes key = new 
Rfc2898DeriveBytes(sharedSecret, _salt);
+
+                   // Create a RijndaelManaged object
+                   // with the specified key and IV.
+                   aesAlg = new RijndaelManaged();
+                   aesAlg.Key = key.GetBytes(aesAlg.KeySize / 8);
+                   aesAlg.IV = key.GetBytes(aesAlg.BlockSize / 8);
+
+                   // Create a decrytor to perform the stream transform.
+                   ICryptoTransform decryptor = 
aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV);
+                   // Create the streams used for decryption.
+                   byte[] bytes = Convert.FromBase64String(cipherText);
+                   using (MemoryStream msDecrypt = new MemoryStream(bytes))
+                   {
+                       using (CryptoStream csDecrypt = new 
CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read))
+                       {
+                           using (StreamReader srDecrypt = new 
StreamReader(csDecrypt))
+
+                               // Read the decrypted bytes from the decrypting 
stream
+                               // and place them in a string.
+                               plaintext = srDecrypt.ReadToEnd();
+                       }
+                   }
+               }
+               finally
+               {
+                   // Clear the RijndaelManaged object.
+                   if (aesAlg != null)
+                       aesAlg.Clear();
+               }
+
+               return plaintext;
+           }
+       }
+}
+
diff --git a/frugal-mono-tools/WID_Notes.cs b/frugal-mono-tools/WID_Notes.cs
index 5d5efb5..12ebeef 100644
--- a/frugal-mono-tools/WID_Notes.cs
+++ b/frugal-mono-tools/WID_Notes.cs
@@ -1,80 +1,85 @@
-// /*
-//  *  Copyright (C) 2010 by Gaetan Gourdin <bouleet...@frogdev.info>
-//  *
-//  *  This program is free software; you can redistribute it and/or modify
-//  *  it under the terms of the GNU General Public License as published by
-//  *  the Free Software Foundation; either version 2 of the License, or
-//  *  (at your option) any later version.
-//  *
-//  *  This program is distributed in the hope that it will be useful,
-//  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-//  *  GNU General Public License for more details.
-//  *
-//  *  You should have received a copy of the GNU General Public License
-//  *  along with this program; if not, write to the Free Software
-//  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.
+// /*
+//  *  Copyright (C) 2010 by Gaetan Gourdin <bouleet...@frogdev.info>
+//  *
+//  *  This program is free software; you can redistribute it and/or modify
+//  *  it under the terms of the GNU General Public License as published by
+//  *  the Free Software Foundation; either version 2 of the License, or
+//  *  (at your option) any later version.
+//  *
+//  *  This program is distributed in the hope that it will be useful,
+//  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  *  GNU General Public License for more details.
+//  *
+//  *  You should have received a copy of the GNU General Public License
+//  *  along with this program; if not, write to the Free Software
+//  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.
//  */
-using System;
-using System.IO;
+using System;
+using System.IO;
+using System.Text;
namespace frugalmonotools
{
[System.ComponentModel.ToolboxItem(true)]
public partial class WID_Notes : Gtk.Bin
-       {
-               const string 
cch_UrlWebService="http://dors.frugalware.org/webservices/FrugalNotes.asmx";;
+       {
+               const string 
cch_UrlWebService="http://dors.frugalware.org/webservices/FrugalNotes.asmx";;
const string cch_FileNote= "/notes.txt";
public WID_Notes ()
{
this.Build ();
-               }
-               public void InitNotes()
-               {
-                       TXT_Note.Buffer.Text=Outils.ReadFile( 
DirTweak.GetDirFrugalTweak()+cch_FileNote,false);
-                       SAI_Login.Text=MainClass.configuration.Get_NoteLogin();
-                       SAI_Pass.Text=MainClass.configuration.Get_NotePass();
-                       LIB_Info.Visible=false;
}
-               protected virtual void OnBTNSaveClicked (object sender, 
System.EventArgs e)
-               {
-                       StreamWriter FileNotes = new StreamWriter( 
DirTweak.GetDirFrugalTweak()+cch_FileNote);
-                       FileNotes.Write(TXT_Note.Buffer.Text);
-                       FileNotes.Close();
-               }
-
-               protected virtual void OnBTNSaveOptionsClicked (object sender, 
System.EventArgs e)
-               {
-                       MainClass.configuration.Set_NoteLogin(SAI_Login.Text);
-                       MainClass.configuration.Set_NotePass(SAI_Pass.Text);
-                       MainClass.configuration.ConfSave();
-               }
-
-               protected virtual void OnBTNSendClicked (object sender, 
System.EventArgs e)
-               {
-                       //send to server
-                       FrugalNotes note = new FrugalNotes();
-                       
if(note.SendNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass(),TXT_Note.Buffer.Text))
-                       {
-                               LIB_Info.Text="Note sending to server";
-                       }
-                       else
-                       {
-                               LIB_Info.Text="Error : could not send note to 
the server";
-                       }
-                       LIB_Info.Visible=true;
-               }
-
-               protected virtual void OnBTNDownloadClicked (object sender, 
System.EventArgs e)
-               {
-                       //get from server
+               public void InitNotes()
+               {
+                       TXT_Note.Buffer.Text=Outils.ReadFile( 
DirTweak.GetDirFrugalTweak()+cch_FileNote,false);
+                       SAI_Login.Text=MainClass.configuration.Get_NoteLogin();
+                       SAI_Pass.Text=MainClass.configuration.Get_NotePass();
+                       LIB_Info.Visible=false;
+               }
+               protected virtual void OnBTNSaveClicked (object sender, 
System.EventArgs e)
+               {
+                       StreamWriter FileNotes = new StreamWriter( 
DirTweak.GetDirFrugalTweak()+cch_FileNote);
+                       FileNotes.Write(TXT_Note.Buffer.Text);
+                       FileNotes.Close();
+               }
+
+               protected virtual void OnBTNSaveOptionsClicked (object sender, 
System.EventArgs e)
+               {
+                       MainClass.configuration.Set_NoteLogin(SAI_Login.Text);
+                       MainClass.configuration.Set_NotePass(SAI_Pass.Text);
+                       MainClass.configuration.ConfSave();
+               }
+
+               protected virtual void OnBTNSendClicked (object sender, 
System.EventArgs e)
+               {
+                       //send to server
+                       FrugalNotes note = new FrugalNotes();
+                       string TheNote = TXT_Note.Buffer.Text;
+                       string NoteCrypte = 
frugalmonotools.Crypto.EncryptStringAES(TheNote,MainClass.configuration.Get_NoteLogin()+MainClass.configuration.Get_NotePass());
+                       
if(note.SendNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass(),NoteCrypte))
+                       {
+                               LIB_Info.Text="Note sending to server";
+                       }
+                       else
+                       {
+                               LIB_Info.Text="Error : could not send note to 
the server";
+                       }
+                       LIB_Info.Visible=true;
+               }
+
+               protected virtual void OnBTNDownloadClicked (object sender, 
System.EventArgs e)
+               {
+                       //get from server
FrugalNotes note = new FrugalNotes();
-                       TXT_Note.Buffer.Text = 
note.GetNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass());
-               }
-
-
-
-
-
+                       string NoteCrypte = 
note.GetNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass());
+                       string NoteDecrypte =  
frugalmonotools.Crypto.DecryptStringAES(NoteCrypte,MainClass.configuration.Get_NoteLogin()+MainClass.configuration.Get_NotePass());
+                       TXT_Note.Buffer.Text = NoteDecrypte;
+               }
+
+
+
+
+
}
}

diff --git a/frugal-mono-tools/frugal-mono-tools.csproj 
b/frugal-mono-tools/frugal-mono-tools.csproj
index cd6f5d9..20a524d 100644
--- a/frugal-mono-tools/frugal-mono-tools.csproj
+++ b/frugal-mono-tools/frugal-mono-tools.csproj
@@ -2,7 +2,7 @@
<Project DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"; ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E1F59443-629D-4EB7-A6AA-6ED8821FE6D6}</ProjectGuid>
@@ -38,6 +38,12 @@
<OutputPath>bin\Release</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' 
">
+    <DebugType>none</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug</OutputPath>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, 
PublicKeyToken=35e10195dab3c99f" />
@@ -173,6 +179,7 @@
<Compile Include="Twitter\GUI\TreeMessage.cs" />
<Compile Include="Twitter\GUI\WID_Identi.cs" />
<Compile Include="gtk-gui\frugalmonotools.WID_Identi.cs" />
+    <Compile Include="Crypto.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.DiagGrub.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.DiagGrub.cs
index 14d2728..4fb3429 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.DiagGrub.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.DiagGrub.cs
@@ -11,7 +11,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox1;
private global::Gtk.Button BTN_Cancel;
private global::Gtk.Button BTN_Add;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.FEN_Debug.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.FEN_Debug.cs
index a7955d5..9f992e2 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.FEN_Debug.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.FEN_Debug.cs
@@ -6,7 +6,7 @@ namespace frugalmonotools
{
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.TextView SortieAPPLI;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs
index ab55d1e..31a5d9e 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs
@@ -11,7 +11,7 @@ namespace frugalmonotools
private global::Gtk.HBox HBOX_Details;
private global::Gtk.Statusbar STA_Info;
private global::Gtk.Label LAB_Info;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.MessageBox.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.MessageBox.cs
index e5e6c37..3df215c 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.MessageBox.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.MessageBox.cs
@@ -8,7 +8,7 @@ namespace frugalmonotools
private global::Gtk.Label LIB_Message;
private global::Gtk.Button buttonCancel;
private global::Gtk.Button buttonOk;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs
index a86c061..6d99b50 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs
@@ -8,7 +8,7 @@ namespace frugalmonotools
private global::Gtk.Image image66;
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.TextView textview2;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Config.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Config.cs
index 774c9f9..538c932 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Config.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Config.cs
@@ -11,7 +11,7 @@ namespace frugalmonotools
private global::Gtk.CheckButton INT_ShowSplash;
private global::Gtk.HBox hbox21;
private global::Gtk.Button BTN_SaveConf;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_DateTime.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_DateTime.cs
index 00df40a..00ed843 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_DateTime.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_DateTime.cs
@@ -17,7 +17,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox1;
private global::Gtk.Label LIB_Root;
private global::Gtk.Button BTN_Apply;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs
index d8c9f85..2f9c5cf 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs
@@ -33,7 +33,7 @@ namespace frugalmonotools
private global::Gtk.Button BTN_Save;
private global::Gtk.Button BTN_Apply;
private global::Gtk.Entry SAI_Hdd;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Hardware.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Hardware.cs
index 2a2808c..0ee12e3 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Hardware.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Hardware.cs
@@ -20,7 +20,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox1;
private global::Gtk.Button BTN_Pastbin1;
private global::Gtk.Button BTN_Pastbin;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_LoginManager.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_LoginManager.cs
index 4ba1666..c5933b8 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_LoginManager.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_LoginManager.cs
@@ -28,7 +28,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox8;
private global::Gtk.Label LIB_Root;
private global::Gtk.Button BTN_LoginManager;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs
index 6d5cc3b..d817ee9 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs
@@ -17,7 +17,7 @@ namespace frugalmonotools
private global::Gtk.ScrolledWindow GtkScrolledWindow2;
private global::Gtk.TextView TXT_XsessionErrors;
private global::Gtk.Label label4;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Network.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Network.cs
index 9bb8826..0694b69 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Network.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Network.cs
@@ -19,7 +19,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox4;
private global::Gtk.Label LIB_Root;
private global::Gtk.Button BTN_Network;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_News.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_News.cs
index 424ba5f..22dd08a 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_News.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_News.cs
@@ -8,7 +8,7 @@ namespace frugalmonotools
private global::Gtk.ComboBox CBO_TitleNews;
private global::Gtk.Label LIB_Titre;
private global::Gtk.Button BTN_Link;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs
index a720258..bb21578 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs
@@ -21,7 +21,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox2;
private global::Gtk.Button BTN_SaveOptions;
private global::Gtk.Label label2;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs
index cfd3ede..a44f5bd 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs
@@ -16,7 +16,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox12;
private global::Gtk.Button BTN_Uninstall;
private global::Gtk.Button BTN_Install;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Services.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Services.cs
index 888fa7c..560682c 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Services.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Services.cs
@@ -12,7 +12,7 @@ namespace frugalmonotools
private global::Gtk.Button BTN_ServiceStop;
private global::Gtk.Button BTN_ServiceDelBoot;
private global::Gtk.Button BTN_ServiceAddBoot;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Support.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Support.cs
index dc53a58..07cab13 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Support.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Support.cs
@@ -17,7 +17,7 @@ namespace frugalmonotools
private global::Gtk.Label label8;
private global::Gtk.Button BTN_French;
private global::Gtk.Button BTN_Danish;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_System.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_System.cs
index e441e39..b302a9a 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_System.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_System.cs
@@ -31,7 +31,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox29;
private global::Gtk.Label LIB_Root;
private global::Gtk.Button BTN_System;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs
index edf9492..b8abc8e 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs
@@ -26,7 +26,7 @@ namespace frugalmonotools
private global::Gtk.Button BTN_Install;
private global::Gtk.Button BTN_Optimize;
private global::Gtk.Label label2;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_UpdateConf.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_UpdateConf.cs
index 3957d8c..5a101cc 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_UpdateConf.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_UpdateConf.cs
@@ -11,7 +11,7 @@ namespace frugalmonotools
private global::Gtk.Button BTN_SeeDiff;
private global::Gtk.Button BTN_Replace;
private global::Gtk.Button BTN_Delete;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Users.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Users.cs
index 488d51b..66c7338 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Users.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Users.cs
@@ -34,7 +34,7 @@ namespace frugalmonotools
private global::Gtk.Button BTN_AddGroup;
private global::Gtk.Button BTN_RemoveGroup;
private global::Gtk.Label label2;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs
index 7848f11..c0d45dd 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs
@@ -16,7 +16,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox14;
private global::Gtk.Label LIB_Root;
private global::Gtk.Button BTN_Xorg;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs
index 2e97894..589f36d 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs
@@ -7,7 +7,7 @@ namespace frugalmonotools
private global::Gtk.HBox hbox1;
private global::Gtk.VBox vbox1;
private global::Gtk.Image LOGO;
-
+
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
diff --git a/frugal-mono-tools/gtk-gui/generated.cs 
b/frugal-mono-tools/gtk-gui/generated.cs
index 7c7780c..c172a6d 100644
--- a/frugal-mono-tools/gtk-gui/generated.cs
+++ b/frugal-mono-tools/gtk-gui/generated.cs
@@ -5,7 +5,7 @@ namespace Stetic
internal class Gui
{
private static bool initialized;
-
+
internal static void Initialize (Gtk.Widget iconRenderer)
{
if ((Stetic.Gui.initialized == false)) {
@@ -17,12 +17,12 @@ namespace Stetic
}
}
}
-
+
internal class BinContainer
{
private Gtk.Widget child;
private Gtk.UIManager uimanager;
-
+
public static BinContainer Attach (Gtk.Bin bin)
{
BinContainer bc = new BinContainer ();
@@ -31,32 +31,32 @@ namespace Stetic
bin.Added += new Gtk.AddedHandler (bc.OnAdded);
return bc;
}
-
+
private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
{
if ((this.child != null)) {
args.Requisition = this.child.SizeRequest ();
}
}
-
+
private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
{
if ((this.child != null)) {
this.child.Allocation = args.Allocation;
}
}
-
+
private void OnAdded (object sender, Gtk.AddedArgs args)
{
this.child = args.Widget;
}
-
+
public void SetUiManager (Gtk.UIManager uim)
{
this.uimanager = uim;
this.child.Realized += new System.EventHandler (this.OnRealized);
}
-
+
private void OnRealized (object sender, System.EventArgs args)
{
if ((this.uimanager != null)) {
@@ -69,7 +69,7 @@ namespace Stetic
}
}
}
-
+
internal class IconLoader
{
public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize 
size)
@@ -103,14 +103,14 @@ namespace Stetic
}
}
}
-
+
internal class ActionGroups
{
public static Gtk.ActionGroup GetActionGroup (System.Type type)
{
return Stetic.ActionGroups.GetActionGroup (type.FullName);
}
-
+
public static Gtk.ActionGroup GetActionGroup (string name)
{
return null;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to