aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r--c/episodelistview.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c
index 8ca64d5..cf6f392 100644
--- a/c/episodelistview.c
+++ b/c/episodelistview.c
@@ -36,6 +36,18 @@ ElvCreate()
return HElv;
}
+void
+ElvEnter(LPLVITEM lpLvi)
+{
+ fid_t f;
+ term_t t;
+ F(f);
+ t = T(1);
+ PI(t+0, lpLvi->lParam) goto b;
+ P("local_episodes","open_episode",1,t);
+b: Fd(f);
+}
+
LRESULT
ElvHandleNotify(LPARAM lParam)
{
@@ -70,16 +82,8 @@ ElvHandleNotify(LPARAM lParam)
break;
}
case NM_DBLCLK:
- {
- fid_t f;
- term_t t;
- F(f);
- t = T(1);
- PI(t+0, LpLviElvSelection->lParam) goto b;
- P("local_episodes","open_episode",1,t);
-b: Fd(f);
+ ElvEnter(LpLviElvSelection);
break;
- }
case NM_RCLICK:
{
DWORD dwPos;
@@ -94,6 +98,7 @@ b: Fd(f);
return 0;
}
+
void
ElvRedraw()
{