comparison src/layout.c @ 725:eda074e91ddd

Use G_DIR_SEPARATOR_S where applicable.
author zas_
date Wed, 21 May 2008 11:00:13 +0000
parents a3218946bd2d
children a1dcef8cd1ae
comparison
equal deleted inserted replaced
724:9973edfd86f6 725:eda074e91ddd
148 { 148 {
149 if ((!lw->path || strcmp(lw->path, buf) != 0) && layout_set_path(lw, buf)) 149 if ((!lw->path || strcmp(lw->path, buf) != 0) && layout_set_path(lw, buf))
150 { 150 {
151 gint pos = -1; 151 gint pos = -1;
152 /* put the '/' back, if we are in tab completion for a dir and result was path change */ 152 /* put the '/' back, if we are in tab completion for a dir and result was path change */
153 gtk_editable_insert_text(GTK_EDITABLE(lw->path_entry), "/", -1, &pos); 153 gtk_editable_insert_text(GTK_EDITABLE(lw->path_entry), G_DIR_SEPARATOR_S, -1, &pos);
154 gtk_editable_set_position(GTK_EDITABLE(lw->path_entry), 154 gtk_editable_set_position(GTK_EDITABLE(lw->path_entry),
155 strlen(gtk_entry_get_text(GTK_ENTRY(lw->path_entry)))); 155 strlen(gtk_entry_get_text(GTK_ENTRY(lw->path_entry))));
156 } 156 }
157 } 157 }
158 else if (lw->path && strcmp(lw->path, base) == 0) 158 else if (lw->path && strcmp(lw->path, base) == 0)