summaryrefslogtreecommitdiffstats
path: root/x11-fm/gnome-commander2/files/patch-src::gnome-cmd-dir-indicator.c
blob: 2f1a4fe28e564315dfc9da009bbcb00c2a4f15c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/gnome-cmd-dir-indicator.c.orig	Tue Jun 22 19:55:28 2004
+++ src/gnome-cmd-dir-indicator.c	Tue Jun 22 19:56:15 2004
@@ -91,11 +91,11 @@
 	if (event->type == GDK_BUTTON_PRESS && event->button == 1) {
 		/* left click - work out the path */
 		gchar *chTo;
+		gint i;
 		const gchar *labelText = gtk_label_get_text (GTK_LABEL (indicator->priv->label));
+		gint x = (gint)event->x;
 		chTo = malloc (strlen (labelText) + 1);
 		strcpy (chTo, labelText);
-		gint x = (gint)event->x;
-		gint i;
 		  
 		for (i = 0; i < indicator->priv->numPositions; i++) {
 			if (x < indicator->priv->slashPixelPosition[i]) {
OpenPOWER on IntegriCloud