summaryrefslogtreecommitdiff
path: root/time/gnotime/patches/patch-ac
blob: e4c1ebe70534b66f1320732fe27537deee662787 (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
36
37
38
$NetBSD: patch-ac,v 1.1 2004/11/24 22:35:25 kristerw Exp $

--- src/export.c.orig	Wed Nov 24 18:55:31 2004
+++ src/export.c	Wed Nov 24 18:57:12 2004
@@ -124,12 +124,14 @@
 export_really (GtkWidget *widget, export_format_t *xp)
 {
 	gboolean rc;
+	GnomeVFSURI *parsed_uri;
+	gboolean exists;
+	GnomeVFSResult result;
 
 	xp->uri = gtk_file_selection_get_filename (xp->picker);
 
-	GnomeVFSURI *parsed_uri;
 	parsed_uri = gnome_vfs_uri_new (xp->uri);
-	gboolean exists = gnome_vfs_uri_exists (parsed_uri);
+	exists = gnome_vfs_uri_exists (parsed_uri);
 	if (exists) 
 	{
 		GtkWidget *w;
@@ -144,14 +146,14 @@
 		if (0 == gnome_dialog_run (GNOME_DIALOG (w))) goto done;
 	}
 
-	GnomeVFSResult result;
 	result = gnome_vfs_create (&xp->handle, xp->uri, GNOME_VFS_OPEN_WRITE,
 	                 FALSE, 0644);
 	if (GNOME_VFS_OK != result)
 	{
 		char *s;
+		GtkWidget *w;
 		s = g_strdup_printf (_("File %s dould not be opened"), xp->uri);
-		GtkWidget *w = gnome_error_dialog (s);
+		w = gnome_error_dialog (s);
 		gnome_dialog_set_parent (GNOME_DIALOG (w), GTK_WINDOW (xp->picker));
 		g_free (s);
 		goto done;