summaryrefslogtreecommitdiff
path: root/time/gnotime/patches/patch-ag
blob: 9f84505eb736c8a0d779f15fd278667560aeb615 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$NetBSD: patch-ag,v 1.1 2004/11/24 22:35:25 kristerw Exp $

--- src/menucmd.c.orig	Wed Nov 24 22:31:41 2004
+++ src/menucmd.c	Wed Nov 24 22:33:52 2004
@@ -343,6 +343,7 @@
 cut_project(GtkWidget *w, gpointer data)
 {
 	GttProject *cut_prj;
+	GttProject *prj;
 
 	/* Do NOT cut unless the ctree window actually has focus.
 	 * Otherwise, it will lead to cutting mayhem. 
@@ -364,7 +365,7 @@
 
 	/* Update various subsystems */
 	/* Set the notes are to whatever the new focus project is. */
-	GttProject *prj = ctree_get_focus_project (global_ptw);
+	prj = ctree_get_focus_project (global_ptw);
 	notes_area_set_project (global_na, prj);
 						 
 	menu_set_states();      /* To enable paste menu item */
@@ -424,6 +425,7 @@
 copy_project(GtkWidget *w, gpointer data)
 {
 	GttProject *prj;
+	GList *n;
 	prj = ctree_get_focus_project (global_ptw);
 
 	if (!prj) return;
@@ -434,7 +436,7 @@
 	 * the list of earlier cut projects.  We do this in order
 	 * to allow the most recently copied project to be pasted
 	 * multiple times.  */
-	GList *n = cutted_project_list;
+	n = cutted_project_list;
 	for (n=cutted_project_list; n; n=n->next)
 	{
 		GttProject *p = n->data;
@@ -519,12 +521,12 @@
 menu_howto_edit_times (GtkWidget *w,gpointer data)
 {
 	char * msg;
+	GtkWidget *mb;
 
 	msg = _("To edit the timer interval for this project,\n"
 	        "open the Journal window and click on a link.\n"
 	        "This will bring up a menu of time editing options.\n");
 
-	GtkWidget *mb;
 	mb = gtk_message_dialog_new (NULL,
 	         GTK_DIALOG_MODAL,
 	         GTK_MESSAGE_INFO,