summaryrefslogtreecommitdiff
path: root/sysutils/fsviewer/patches/patch-src_FSPanel.c
blob: d08e975ae363dac236d6ec274b57e1f482265f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-src_FSPanel.c,v 1.1 2012/05/04 16:34:48 joerg Exp $

--- src/FSPanel.c.orig	2012-05-04 13:30:20.000000000 +0000
+++ src/FSPanel.c
@@ -748,7 +748,7 @@ FSRunAppInputPanel(FSViewer *app, FileIn
 {
     char *result = NULL;
 
-    if (!(appInput = FSCreateAppInputPanel(app, fileInfo, title))) { return; }
+    if (!(appInput = FSCreateAppInputPanel(app, fileInfo, title))) { return NULL; }
     
     WMMapWidget(appInput->win);
 
@@ -1205,7 +1205,7 @@ FSRunAlertPanel(FSViewer *app,
 
     if( !(alertPanel = FSCreateAlertPanel(app, title, msg, 
 					  defaultButton, alternateButton, 
-					  otherButton) ) ) {return;}
+					  otherButton) ) ) {return -1;}
 
     WMMapWidget(alertPanel->win);
 
@@ -1392,10 +1392,10 @@ FSRunSelectIconPanel(WMWindow *owner, ch
     char *imgStr = NULL;
 
     if(selIcon)
-	return;
+	return NULL;
 
     if (!(selIcon = FSCreateSelectIconPanel(owner, title, str))) 
-	return;
+	return NULL;
     
     WMMapWidget(selIcon->win);