changeset 35969:73a7d9100fe0

Change variable definitions to const. Additionally, rename fsThatDir fsThisDir.
author ib
date Wed, 27 Mar 2013 18:58:32 +0000
parents 9474726062ef
children 90b6cc0747fb
files gui/dialog/fileselect.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Wed Mar 27 18:57:09 2013 +0000
+++ b/gui/dialog/fileselect.c	Wed Mar 27 18:58:32 2013 +0000
@@ -56,8 +56,8 @@
 char * get_current_dir_name( void );
 #endif
 
-char          * fsSelectedFile = NULL;
-unsigned char * fsThatDir = ".";
+const char    * fsSelectedFile = NULL;
+const char    * fsThisDir = ".";
 const gchar   * fsFilter = "*";
 
 int             fsType    = 0;
@@ -376,7 +376,7 @@
  utf8dir = get_current_dir_name_utf8();
  gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),utf8dir );
  g_free(utf8dir);
- fsSelectedFile=fsThatDir;
+ fsSelectedFile=fsThisDir;
  return;
 }
 
@@ -396,7 +396,7 @@
    gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),utf8dir );
    g_free(utf8dir);
    gtk_widget_grab_focus( fsFNameList );
-   fsSelectedFile=fsThatDir;
+   fsSelectedFile=fsThisDir;
    return;
   }