diff options
author | vs <vs@FreeBSD.org> | 2004-06-23 14:31:13 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-06-23 14:31:13 +0800 |
commit | 650183e93fbc9ce720e6ab16877b734965c7a027 (patch) | |
tree | ec133c4d5b2dabf0705ea329ce06be8c815a7d9b | |
parent | ea052248b505748f47a9eae34ed87af0bb2a1381 (diff) | |
download | freebsd-ports-gnome-650183e93fbc9ce720e6ab16877b734965c7a027.tar.gz freebsd-ports-gnome-650183e93fbc9ce720e6ab16877b734965c7a027.tar.zst freebsd-ports-gnome-650183e93fbc9ce720e6ab16877b734965c7a027.zip |
Fix build with gcc 2.x
-rw-r--r-- | x11-fm/gnome-commander2/files/patch-src::gnome-cmd-dir-indicator.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/x11-fm/gnome-commander2/files/patch-src::gnome-cmd-dir-indicator.c b/x11-fm/gnome-commander2/files/patch-src::gnome-cmd-dir-indicator.c new file mode 100644 index 000000000000..2f1a4fe28e56 --- /dev/null +++ b/x11-fm/gnome-commander2/files/patch-src::gnome-cmd-dir-indicator.c @@ -0,0 +1,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]) { |