Re: Rebase package in Base category?

2007-03-30 Thread Corinna Vinschen
On Mar 29 14:54, Dave Korn wrote:
 On 29 March 2007 10:38, Corinna Vinschen wrote:
 
  Shouldn't we put the rebase package into the Base category finally?
  The rebase problem is so common that it's worth to have it available
  in every standard installation, IMHO.
 
   Seems a sound idea to me, it's only a tiny extra download after all.

I'm glad that my suggestion got this amazingly unambiguous reaction
from all of you.  So I added the rebase package to the Base category
now.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat


Re: [PATCH] Setup Re: Installation finished

2007-03-30 Thread Igor Peshansky
Ping?  I'd like to apply this.  Corinna, is that what you were
envisioning?  Would you like me to make a pre-compiled version available
on the web to let people test without having to build?
Igor

On Wed, 28 Mar 2007, Igor Peshansky wrote:

 On Thu, 22 Mar 2007, Brian Dessent wrote:

  Corinna Vinschen wrote:
 
   Question to the setup.exe maintainers:
  
   Do we really need the Installation finished. message box at the end?
   I find it increasingly annoying that I have to confirm the end of the
   installation on a centered button when all the rest of the OK buttons
   were at the bottom right of the prevous dialogs.
  
   Wouldn't it suffice to rename the OK button in the last dialog to
   Finish?
 
  You're right, I hate that too and it's been on the todo list to remove
  this for a long time.

 And here is a patch.  It does a bit more than remove the final mbox -- it
 also moves the status information into the Create Icons dialog.  It
 should handle the resizing of that dialog correctly, but please test it
 anyway.  ChangeLog is below.  Comments welcome.
   Igor
 ==
 ChangeLog:
 2007-03-28  Igor Peshansky  [EMAIL PROTECTED]

   * LogFile.cc (LogFile::exit): Write exit_msg directly to log, without
   the message box.
   * resource.h (IDC_DESKTOP_SEPARATOR,IDC_STATUS_HEADER,IDC_STATUS): New
   control ids.
   * res.rc (IDD_DESKTOP): Change the caption.  Add status information.
   * desktop.h (DesktopSetupPage::DesktopSetupPage): Define constructor
   in the implementation.
   * desktop.cc (DesktopControlsInfo): Position specifiers for status
   information items.
   (DesktopSetupPage::DesktopSetupPage): Register position specifiers.
   (set_status): New static method.
   (load_dialog): Set status information, if available.
   (DesktopSetupPage::OnInit): Set status header font.

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for nothing left to lose...  -- Janis JoplinIndex: LogFile.cc
===
RCS file: /cvs/cygwin-apps/setup/LogFile.cc,v
retrieving revision 2.15
diff -u -p -r2.15 LogFile.cc
--- LogFile.cc  15 Apr 2006 21:21:25 -  2.15
+++ LogFile.cc  28 Mar 2007 14:50:38 -
@@ -24,6 +24,7 @@ static const char *cvsid =
 #include io_stream.h
 #include win32.h
 #include msg.h
+#include dialog.h
 #include resource.h
 #include iostream
 #include sstream
@@ -126,7 +127,14 @@ LogFile::exit (int const exit_code)
   been_here = 1;
   
   if (exit_msg)
-note (NULL, exit_msg, backslash(getFileName(LOG_BABBLE)).c_str());
+{
+  char buf[1000], fmt[1000];
+  if (LoadString (hinstance, exit_msg, fmt, sizeof (fmt))  0)
+{
+  snprintf (buf, 1000, fmt, 
backslash(getFileName(LOG_BABBLE)).c_str());
+  log (LOG_PLAIN)  note:   buf  endLog;
+}
+}
   
   log (LOG_TIMESTAMP)  Ending cygwin install  endLog;
 
Index: desktop.cc
===
RCS file: /cvs/cygwin-apps/setup/desktop.cc,v
retrieving revision 2.46
diff -u -p -r2.46 desktop.cc
--- desktop.cc  28 Feb 2007 00:55:04 -  2.46
+++ desktop.cc  28 Mar 2007 14:50:38 -
@@ -45,6 +45,7 @@ static const char *cvsid =
 #include io_stream.h
 #include getopt++/BoolOption.h
 #include PackageSpecification.h
+#include LogFile.h
 
 static BoolOption NoShortcutsOption (false, 'n', no-shortcuts, Disable 
creation of desktop and start menu shortcuts);
 static BoolOption NoStartMenuOption (false, 'N', no-startmenu, Disable 
creation of start menu shortcut);
@@ -61,6 +62,18 @@ static BoolOption NoDesktopOption (false
 static std::string batname;
 static std::string iconname;
 
+static ControlAdjuster::ControlInfo DesktopControlsInfo[] = {
+  {IDC_DESKTOP_SEPARATOR,  CP_STRETCH, CP_BOTTOM},
+  {IDC_STATUS, CP_LEFT, CP_BOTTOM},
+  {IDC_STATUS_HEADER,  CP_LEFT, CP_BOTTOM},
+  {0, CP_LEFT, CP_TOP}
+};
+
+DesktopSetupPage::DesktopSetupPage ()
+{
+  sizeProcessor.AddControlInfo (DesktopControlsInfo);
+}
+
 static void
 make_link (const std::string linkpath,
const std::string title,
@@ -223,12 +236,26 @@ check_if_enable_next (HWND h)
   EnableWindow (GetDlgItem (h, IDOK), 1);
 }
 
+extern LogFile * theLog;
+
+static void
+set_status (HWND h)
+{
+  char buf[1000], fmt[1000];
+  if (LoadString (hinstance, exit_msg, fmt, sizeof (fmt))  0)
+{
+  snprintf (buf, 1000, fmt, 
backslash(theLog-getFileName(LOG_BABBLE)).c_str());
+  ::SetWindowText (GetDlgItem (h, IDC_STATUS), buf);
+}
+}
+
 

Re: [PATCH] Setup Re: Installation finished

2007-03-30 Thread Brian Dessent
Igor Peshansky wrote:

 Ping?  I'd like to apply this.  Corinna, is that what you were
 envisioning?  Would you like me to make a pre-compiled version available
 on the web to let people test without having to build?

I like it.  Please install, and I'll update the snapshot.

Brian


Re: [PATCH] Setup Re: Installation finished

2007-03-30 Thread Igor Peshansky
On Fri, 30 Mar 2007, Brian Dessent wrote:

 Igor Peshansky wrote:

  Ping?  I'd like to apply this.  Corinna, is that what you were
  envisioning?  Would you like me to make a pre-compiled version
  available on the web to let people test without having to build?

 I like it.  Please install, and I'll update the snapshot.

Thanks.  Committed.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for nothing left to lose...  -- Janis Joplin