Author: lluis
Date: 2007-12-11 06:07:46 -0500 (Tue, 11 Dec 2007)
New Revision: 91083

Modified:
   trunk/mono-addins/Mono.Addins.Gui/ChangeLog
   trunk/mono-addins/Mono.Addins.Gui/Makefile.am
   trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui.mdp
   trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui/AddinInstallDialog.cs
   
trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs
   trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs
   trunk/mono-addins/Mono.Addins.Gui/gtk-gui/gui.stetic
Log:
* gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs,
  gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs, gtk-gui/gui.stetic,
  Makefile.am, Mono.Addins.Gui.mdp,
  Mono.Addins.Gui/AddinInstallDialog.cs: Properly report warnings
  when installing add-ins.

Modified: trunk/mono-addins/Mono.Addins.Gui/ChangeLog
===================================================================
--- trunk/mono-addins/Mono.Addins.Gui/ChangeLog 2007-12-11 10:36:29 UTC (rev 
91082)
+++ trunk/mono-addins/Mono.Addins.Gui/ChangeLog 2007-12-11 11:07:46 UTC (rev 
91083)
@@ -1,3 +1,10 @@
+2007-12-11  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs,
+         gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs, gtk-gui/gui.stetic,
+         Makefile.am, Mono.Addins.Gui.mdp, 
Mono.Addins.Gui/AddinInstallDialog.cs:
+         Properly report warnings when installing add-ins.
+
 2007-12-05  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * gtk-gui/gui.stetic, Mono.Addins.Gui.mdp: Flush.

Modified: trunk/mono-addins/Mono.Addins.Gui/Makefile.am
===================================================================
--- trunk/mono-addins/Mono.Addins.Gui/Makefile.am       2007-12-11 10:36:29 UTC 
(rev 91082)
+++ trunk/mono-addins/Mono.Addins.Gui/Makefile.am       2007-12-11 11:07:46 UTC 
(rev 91083)
@@ -54,6 +54,7 @@
        ./Makefile.am 
 
 REFERENCES =  \
+       -pkg:glib-sharp-2.0 \
        -pkg:gtk-sharp-2.0 \
        -r:Mono.Posix \
        -r:System

Modified: 
trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui/AddinInstallDialog.cs
===================================================================
--- trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui/AddinInstallDialog.cs     
2007-12-11 10:36:29 UTC (rev 91082)
+++ trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui/AddinInstallDialog.cs     
2007-12-11 11:07:46 UTC (rev 91083)
@@ -431,6 +431,7 @@
                        string txt;
                        string okmessage;
                        string errmessage;
+                       string warnmessage;
                        
                        installMonitor = new InstallMonitor (progressLabel, 
progressBar, mainProgressBar);
                        ThreadStart oper;
@@ -439,10 +440,12 @@
                                oper = new ThreadStart (RunInstall);
                                okmessage = Catalog.GetString ("The 
installation has been successfully completed.");
                                errmessage = Catalog.GetString ("The 
installation failed!");
+                               warnmessage = Catalog.GetString ("The 
installation has completed with warnings.");
                        } else {
                                oper = new ThreadStart (RunUninstall);
                                okmessage = Catalog.GetString ("The 
uninstallation has been successfully completed.");
                                errmessage = Catalog.GetString ("The 
uninstallation failed!");
+                               warnmessage = Catalog.GetString ("The 
uninstallation has completed with warnings.");
                        }
                        
                        Thread t = new Thread (oper);
@@ -454,16 +457,25 @@
                        
                        wizardNotebook.NextPage ();
 
-                       if (installMonitor.Success) {
+                       if (installMonitor.Success && 
installMonitor.Warnings.Count == 0) {
+                               imageWarn.Visible = false;
                                imageError.Visible = false;
                                imageInfo.Visible = true;
                                txt = "<b>" + okmessage + "</b>\n\n";
+                       } else if (installMonitor.Success) {
+                               imageWarn.Visible = true;
+                               imageInfo.Visible = false;
+                               imageError.Visible = false;
+                               txt = "<b>" + warnmessage + "</b>\n\n";
+                               foreach (string s in installMonitor.Warnings)
+                                       txt += GLib.Markup.EscapeText (s) + 
"\n";
                        } else {
+                               imageWarn.Visible = false;
+                               imageInfo.Visible = false;
                                imageError.Visible = true;
-                               imageInfo.Visible = false;
                                txt = "<span foreground=\"red\"><b>" + 
errmessage + "</b></span>\n\n";
                                foreach (string s in installMonitor.Errors)
-                                       txt += s + "\n";
+                                       txt += GLib.Markup.EscapeText (s) + 
"\n";
                        }
                        
                        labelResult.Markup = txt;

Modified: trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui.mdp
===================================================================
--- trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui.mdp       2007-12-11 
10:36:29 UTC (rev 91082)
+++ trunk/mono-addins/Mono.Addins.Gui/Mono.Addins.Gui.mdp       2007-12-11 
11:07:46 UTC (rev 91083)
@@ -46,6 +46,7 @@
     <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
   </References>
   <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" 
RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" 
SyncReferences="True">
     <BuildFilesVar Sync="True" Name="FILES" />

Modified: 
trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs
===================================================================
--- 
trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs 
    2007-12-11 10:36:29 UTC (rev 91082)
+++ 
trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs 
    2007-12-11 11:07:46 UTC (rev 91083)
@@ -81,6 +81,8 @@
         
         private Gtk.Image imageError;
         
+        private Gtk.Image imageWarn;
+        
         private Gtk.Image imageInfo;
         
         private Gtk.HBox hbox71;
@@ -120,7 +122,7 @@
             this.wizardNotebook = new Gtk.Notebook();
             this.wizardNotebook.CanFocus = true;
             this.wizardNotebook.Name = "wizardNotebook";
-            this.wizardNotebook.CurrentPage = 0;
+            this.wizardNotebook.CurrentPage = 3;
             this.wizardNotebook.ShowBorder = false;
             this.wizardNotebook.BorderWidth = ((uint)(6));
             // Container child wizardNotebook.Gtk.Notebook+NotebookChild
@@ -424,15 +426,25 @@
             w32.Fill = false;
             w32.Padding = ((uint)(5));
             // Container child vbox91.Gtk.Box+BoxChild
+            this.imageWarn = new Gtk.Image();
+            this.imageWarn.Name = "imageWarn";
+            this.imageWarn.Yalign = 1F;
+            this.imageWarn.Pixbuf = Stetic.IconLoader.LoadIcon(this, 
"gtk-dialog-warning", Gtk.IconSize.Dialog, 48);
+            this.vbox91.Add(this.imageWarn);
+            Gtk.Box.BoxChild w33 = 
((Gtk.Box.BoxChild)(this.vbox91[this.imageWarn]));
+            w33.Position = 2;
+            w33.Expand = false;
+            w33.Fill = false;
+            // Container child vbox91.Gtk.Box+BoxChild
             this.imageInfo = new Gtk.Image();
             this.imageInfo.Name = "imageInfo";
             this.imageInfo.Yalign = 1F;
             this.imageInfo.Pixbuf = Stetic.IconLoader.LoadIcon(this, 
"gtk-dialog-info", Gtk.IconSize.Dialog, 48);
             this.vbox91.Add(this.imageInfo);
-            Gtk.Box.BoxChild w33 = 
((Gtk.Box.BoxChild)(this.vbox91[this.imageInfo]));
-            w33.Position = 2;
-            w33.Expand = false;
-            w33.Fill = false;
+            Gtk.Box.BoxChild w34 = 
((Gtk.Box.BoxChild)(this.vbox91[this.imageInfo]));
+            w34.Position = 3;
+            w34.Expand = false;
+            w34.Fill = false;
             // Container child vbox91.Gtk.Box+BoxChild
             this.hbox71 = new Gtk.HBox();
             this.hbox71.Name = "hbox71";
@@ -447,27 +459,27 @@
             this.labelResult.Wrap = true;
             this.labelResult.Justify = ((Gtk.Justification)(2));
             this.hbox71.Add(this.labelResult);
-            Gtk.Box.BoxChild w34 = 
((Gtk.Box.BoxChild)(this.hbox71[this.labelResult]));
-            w34.PackType = ((Gtk.PackType)(1));
-            w34.Position = 0;
+            Gtk.Box.BoxChild w35 = 
((Gtk.Box.BoxChild)(this.hbox71[this.labelResult]));
+            w35.PackType = ((Gtk.PackType)(1));
+            w35.Position = 0;
             this.vbox91.Add(this.hbox71);
-            Gtk.Box.BoxChild w35 = 
((Gtk.Box.BoxChild)(this.vbox91[this.hbox71]));
-            w35.Position = 3;
-            w35.Expand = false;
-            w35.Fill = false;
+            Gtk.Box.BoxChild w36 = 
((Gtk.Box.BoxChild)(this.vbox91[this.hbox71]));
+            w36.Position = 4;
+            w36.Expand = false;
+            w36.Fill = false;
             // Container child vbox91.Gtk.Box+BoxChild
             this.label131 = new Gtk.Label();
             this.label131.Name = "label131";
             this.label131.LabelProp = "";
             this.vbox91.Add(this.label131);
-            Gtk.Box.BoxChild w36 = 
((Gtk.Box.BoxChild)(this.vbox91[this.label131]));
-            w36.Position = 4;
+            Gtk.Box.BoxChild w37 = 
((Gtk.Box.BoxChild)(this.vbox91[this.label131]));
+            w37.Position = 5;
             w30.Add(this.vbox91);
             this.scrolledwindow20.Add(w30);
             this.wizardNotebook.Add(this.scrolledwindow20);
-            Gtk.Notebook.NotebookChild w39 = 
((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20]));
-            w39.Position = 3;
-            w39.TabExpand = false;
+            Gtk.Notebook.NotebookChild w40 = 
((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20]));
+            w40.Position = 3;
+            w40.TabExpand = false;
             // Notebook tab
             this.label111 = new Gtk.Label();
             this.label111.Name = "label111";
@@ -475,8 +487,8 @@
             this.wizardNotebook.SetTabLabel(this.scrolledwindow20, 
this.label111);
             this.label111.ShowAll();
             w1.Add(this.wizardNotebook);
-            Gtk.Box.BoxChild w40 = 
((Gtk.Box.BoxChild)(w1[this.wizardNotebook]));
-            w40.Position = 0;
+            Gtk.Box.BoxChild w41 = 
((Gtk.Box.BoxChild)(w1[this.wizardNotebook]));
+            w41.Position = 0;
             // Container child dialog-vbox9.Gtk.Box+BoxChild
             this.dialog_action_area9 = new Gtk.HButtonBox();
             this.dialog_action_area9.Name = "dialog_action_area9";
@@ -501,8 +513,8 @@
             this.btnPrev.UseUnderline = true;
             this.btnPrev.Label = "gtk-go-back";
             this.dialog_action_area9.Add(this.btnPrev);
-            Gtk.ButtonBox.ButtonBoxChild w42 = 
((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev]));
-            w42.Position = 1;
+            Gtk.ButtonBox.ButtonBoxChild w43 = 
((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev]));
+            w43.Position = 1;
             // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild
             this.btnNext = new Gtk.Button();
             this.btnNext.CanDefault = true;
@@ -512,8 +524,8 @@
             this.btnNext.UseUnderline = true;
             this.btnNext.Label = "gtk-go-forward";
             this.dialog_action_area9.Add(this.btnNext);
-            Gtk.ButtonBox.ButtonBoxChild w43 = 
((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext]));
-            w43.Position = 2;
+            Gtk.ButtonBox.ButtonBoxChild w44 = 
((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext]));
+            w44.Position = 2;
             // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild
             this.btnOk = new Gtk.Button();
             this.btnOk.CanDefault = true;
@@ -523,25 +535,25 @@
             this.btnOk.UseUnderline = true;
             this.btnOk.Label = "gtk-ok";
             this.dialog_action_area9.Add(this.btnOk);
-            Gtk.ButtonBox.ButtonBoxChild w44 = 
((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk]));
-            w44.Position = 3;
+            Gtk.ButtonBox.ButtonBoxChild w45 = 
((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk]));
+            w45.Position = 3;
             w1.Add(this.dialog_action_area9);
-            Gtk.Box.BoxChild w45 = 
((Gtk.Box.BoxChild)(w1[this.dialog_action_area9]));
-            w45.PackType = ((Gtk.PackType)(1));
-            w45.Position = 2;
-            w45.Expand = false;
-            w45.Fill = false;
+            Gtk.Box.BoxChild w46 = 
((Gtk.Box.BoxChild)(w1[this.dialog_action_area9]));
+            w46.PackType = ((Gtk.PackType)(1));
+            w46.Position = 2;
+            w46.Expand = false;
+            w46.Fill = false;
             // Internal child Mono.Addins.Gui.AddinInstallDialog.ActionArea
-            Gtk.HButtonBox w46 = this.ActionArea;
-            w46.Name = "hbuttonbox1";
-            w46.Spacing = 10;
-            w46.BorderWidth = ((uint)(5));
-            w46.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
+            Gtk.HButtonBox w47 = this.ActionArea;
+            w47.Name = "hbuttonbox1";
+            w47.Spacing = 10;
+            w47.BorderWidth = ((uint)(5));
+            w47.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
             if ((this.Child != null)) {
                 this.Child.ShowAll();
             }
             this.btnOk.Hide();
-            w46.Hide();
+            w47.Hide();
             this.Show();
             this.repoCombo.Changed += new 
System.EventHandler(this.OnRepoChanged);
             this.button1.Clicked += new System.EventHandler(this.OnUpdateRepo);

Modified: 
trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs
===================================================================
--- trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs  
2007-12-11 10:36:29 UTC (rev 91082)
+++ trunk/mono-addins/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs  
2007-12-11 11:07:46 UTC (rev 91083)
@@ -77,6 +77,7 @@
             this.btnOnlineRep = new 
Gtk.RadioButton(Mono.Unix.Catalog.GetString("Register an on-line repository"));
             this.btnOnlineRep.CanFocus = true;
             this.btnOnlineRep.Name = "btnOnlineRep";
+            this.btnOnlineRep.Active = true;
             this.btnOnlineRep.DrawIndicator = true;
             this.btnOnlineRep.UseUnderline = true;
             this.btnOnlineRep.Group = new GLib.SList(System.IntPtr.Zero);

Modified: trunk/mono-addins/Mono.Addins.Gui/gtk-gui/gui.stetic
===================================================================
--- trunk/mono-addins/Mono.Addins.Gui/gtk-gui/gui.stetic        2007-12-11 
10:36:29 UTC (rev 91082)
+++ trunk/mono-addins/Mono.Addins.Gui/gtk-gui/gui.stetic        2007-12-11 
11:07:46 UTC (rev 91083)
@@ -439,7 +439,7 @@
           <widget class="Gtk.Notebook" id="wizardNotebook">
             <property name="MemberName" />
             <property name="CanFocus">True</property>
-            <property name="CurrentPage">0</property>
+            <property name="CurrentPage">3</property>
             <property name="ShowBorder">False</property>
             <property name="BorderWidth">6</property>
             <child>
@@ -871,13 +871,26 @@
                           </packing>
                         </child>
                         <child>
+                          <widget class="Gtk.Image" id="imageWarn">
+                            <property name="MemberName" />
+                            <property name="Yalign">1</property>
+                            <property name="Pixbuf">stock:gtk-dialog-warning 
Dialog</property>
+                          </widget>
+                          <packing>
+                            <property name="Position">2</property>
+                            <property name="AutoSize">True</property>
+                            <property name="Expand">False</property>
+                            <property name="Fill">False</property>
+                          </packing>
+                        </child>
+                        <child>
                           <widget class="Gtk.Image" id="imageInfo">
                             <property name="MemberName" />
                             <property name="Yalign">1</property>
                             <property name="Pixbuf">stock:gtk-dialog-info 
Dialog</property>
                           </widget>
                           <packing>
-                            <property name="Position">2</property>
+                            <property name="Position">3</property>
                             <property name="AutoSize">False</property>
                             <property name="Expand">False</property>
                             <property name="Fill">False</property>
@@ -905,7 +918,7 @@
                             </child>
                           </widget>
                           <packing>
-                            <property name="Position">3</property>
+                            <property name="Position">4</property>
                             <property name="AutoSize">False</property>
                             <property name="Expand">False</property>
                             <property name="Fill">False</property>
@@ -917,7 +930,7 @@
                             <property name="LabelProp" translatable="yes" />
                           </widget>
                           <packing>
-                            <property name="Position">4</property>
+                            <property name="Position">5</property>
                             <property name="AutoSize">False</property>
                           </packing>
                         </child>
@@ -1186,6 +1199,7 @@
                 <property name="MemberName" />
                 <property name="CanFocus">True</property>
                 <property name="Label" translatable="yes">Register an on-line 
repository</property>
+                <property name="Active">True</property>
                 <property name="DrawIndicator">True</property>
                 <property name="HasLabel">True</property>
                 <property name="UseUnderline">True</property>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to