Module: wine
Branch: refs/heads/master
Commit: 35a92c86d537e4824b8f2da8d50c76f5d205b1d1
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=35a92c86d537e4824b8f2da…
Author: Robert Reif <reif(a)earthlink.net>
Date: Mon Dec 26 12:55:40 2005 +0100
winecfg: Use hourglass cursor when opening audio drivers.
Misbehaving drivers can take a while to open so change to the hour
glass cursor when opening them.
---
programs/winecfg/audio.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c
index 1d0a424..3d78e92 100644
--- a/programs/winecfg/audio.c
+++ b/programs/winecfg/audio.c
@@ -181,6 +181,7 @@ static void initAudioDeviceTree(HWND hDl
HWND tree = NULL;
HIMAGELIST hImageList;
HBITMAP hBitMap;
+ HCURSOR old_cursor;
tree = GetDlgItem(hDlg, IDC_AUDIO_TREE);
@@ -205,6 +206,11 @@ static void initAudioDeviceTree(HWND hDl
insert.u.item.cChildren = 1;
root = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
+ /* change to the wait cursor because this can take a while if there is a
+ * misbehaving driver that takes a long time to open
+ */
+ old_cursor = SetCursor(LoadCursor(0, IDC_WAIT));
+
/* iterate over list of loaded drivers */
for (pAudioDrv = loadedAudioDrv, i = 0; *pAudioDrv->szName; i++, pAudioDrv++) {
HDRVR hdrv;
@@ -433,6 +439,9 @@ static void initAudioDeviceTree(HWND hDl
}
}
+ /* restore the original cursor */
+ SetCursor(old_cursor);
+
SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_SELECTITEM, 0, 0);
SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_EXPAND, TVE_EXPAND, (LPARAM)root);
for (j = 0; j < i; j++)
@@ -444,6 +453,7 @@ static void findAudioDrivers(void)
{
int numFound = 0;
const AUDIO_DRIVER *pAudioDrv = NULL;
+ HCURSOR old_cursor;
/* delete an existing list */
if (loadedAudioDrv)
@@ -452,6 +462,11 @@ static void findAudioDrivers(void)
loadedAudioDrv = 0;
}
+ /* change to the wait cursor because this can take a while if there is a
+ * misbehaving driver that takes a long time to open
+ */
+ old_cursor = SetCursor(LoadCursor(0, IDC_WAIT));
+
for (pAudioDrv = getAudioDrivers(); *pAudioDrv->szName; pAudioDrv++)
{
if (strlen(pAudioDrv->szDriver))
@@ -476,6 +491,9 @@ static void findAudioDrivers(void)
}
}
+ /* restore the original cursor */
+ SetCursor(old_cursor);
+
/* terminate list with empty driver */
loadedAudioDrv = HeapReAlloc(GetProcessHeap(), 0, loadedAudioDrv, (numFound + 1) * sizeof(AUDIO_DRIVER));
CopyMemory(&loadedAudioDrv[numFound], pAudioDrv, sizeof(AUDIO_DRIVER));
ChangeSet ID: 21961
CVSROOT: /opt/cvs-commit
Module name: lostwages
Changes by: wineowner(a)winehq.org 2005/12/24 01:39:43
Modified files:
wwn : wn20051223_302.xml
Log message:
fixups in WWN #302
Patch: http://cvs.winehq.org/patch.py?id=21961
Old revision New revision Changes Path
1.1 1.2 +10 -8 lostwages/wwn/wn20051223_302.xml
Index: lostwages/wwn/wn20051223_302.xml
diff -u -p lostwages/wwn/wn20051223_302.xml:1.1 lostwages/wwn/wn20051223_302.xml:1.2
--- lostwages/wwn/wn20051223_302.xml:1.1 24 Dec 2005 7:39:43 -0000
+++ lostwages/wwn/wn20051223_302.xml 24 Dec 2005 7:39:43 -0000
@@ -168,7 +168,7 @@ going to beta without any real attempt
freeze release cycle is not a good thing. At the very minimum I would
think that we should know when the releases are going to happen but we
do not even know that.
-<Rant>
+</Rant>
</p></quote>
<p>Alexandre replied:</p>
@@ -261,12 +261,12 @@ and <a href="http://bugs.winehq.org">Bug
and report problems.</p>
</section>
<section
- title=""
- subject=""
- archive="http://www.winehq.com/pipermail/wine-devel/2005-October/.html"
- posts=""
+ title="OSDL Desktop Summit"
+ subject="[Desktop_architects] Portland, a w(h)iney comment"
+ archive="http://lists.osdl.org/pipermail/desktop_architects/2005-December/000354.html"
+ posts="1"
>
-<topic></topic>
+<topic>Project Management</topic>
<p>We mentioned a few weeks ago (WWN
<a href="http://www.winehq.com/?issue=299#Desktop%20Summit">#299</a>) there
was a desktop summit being sponsored by OSDL. Well, Jeremy White and Dan
@@ -297,7 +297,7 @@ and PageMaker.
</p><p>
No one seems to care that Wine runs 3 of those 4.
</p><p>
-<Rodney Dangerfield> We get no respect! <Rodney Dangerfield>
+<Rodney Dangerfield> We get no respect! </Rodney Dangerfield>
</p><p>
<grin>
</p><p>
@@ -473,7 +473,9 @@ lines of code.</p></quote>
<p>Aric looked into it and noticed on SpecOps'
<a href="http://www.specopslabs.com/partners-stratigicpartners.htm"><i>Partners</i></a>
-page that IBM and TurboLinux were both listed.</p>
+page that IBM and TurboLinux were both listed. Given their long history with
+the community, presumably both of those companies would want to make sure the
+licensing was followed.</p>
<p>So, anyone out there have TurboLinux FUJI? Do you have the source
code changes to Wine?</p>