[Monodevelop-patches-list] r2182 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Gui/Dialogs
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Jan 27 17:14:06 EST 2005
Author: jluke
Date: 2005-01-27 17:14:06 -0500 (Thu, 27 Jan 2005)
New Revision: 2182
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs
Log:
slow your roll
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-01-27 19:21:19 UTC (rev 2181)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-01-27 22:14:06 UTC (rev 2182)
@@ -1,5 +1,10 @@
2005-01-27 John Luke <john.luke at gmail.com>
+ * Gui/Dialogs/CommonAboutDialog.cs: use a timeout
+ to make scrolling a more constant speed
+
+2005-01-27 John Luke <john.luke at gmail.com>
+
* Base.glade: update to newer glade format
* Commands/ToolsCommands.cs:
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs 2005-01-27 19:21:19 UTC (rev 2181)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs 2005-01-27 22:14:06 UTC (rev 2182)
@@ -24,16 +24,12 @@
{
Pixbuf image;
int scroll = -220;
- IdleHandler hndlr;
Pango.Font font;
bool initial = true;
Pango.Layout layout;
-
- internal IdleHandler Handler
- {
- get { return hndlr; }
- }
+ internal uint TimerHandle;
+
string[] authors = new string[]
{
"Todd Berman",
@@ -66,8 +62,7 @@
image = Runtime.Gui.Resources.GetBitmap ("Icons.AboutImage");
- hndlr = new GLib.IdleHandler (ScrollDown);
- GLib.Idle.Add (hndlr);
+ TimerHandle = GLib.Timeout.Add (50, new TimeoutHandler (ScrollDown));
}
string CreditText {
@@ -153,14 +148,9 @@
Notebook nb = new Notebook ();
nb.SetSizeRequest (400, 280);
- //nb.SwitchPage += new SwitchPageHandler (OnPageChanged);
- //aatp = new AuthorAboutTabPage ();
- //changelog = new ChangeLogTabPage ();
VersionInformationTabPage vinfo = new VersionInformationTabPage ();
nb.AppendPage (new AboutMonoDevelopTabPage (), new Label (GettextCatalog.GetString ("About MonoDevelop")));
- //nb.AppendPage (aatp, new Label ("Authors"));
- //nb.AppendPage (changelog, new Label ("ChangeLog"));
nb.AppendPage (vinfo, new Label (GettextCatalog.GetString ("Version Info")));
this.VBox.PackStart (nb, true, true, 0);
@@ -171,7 +161,8 @@
public new int Run ()
{
int tmp = base.Run ();
- GLib.Idle.Remove (aboutPictureScrollBox.Handler);
+ // FIXME: remove?
+ //GLib.Timeout.Remove (timerHandle);
return tmp;
}
}
More information about the Monodevelop-patches-list
mailing list