Skip to content

Commit

Permalink
geanylua: Replace deprecated tm_get_real_path().
Browse files Browse the repository at this point in the history
  • Loading branch information
lpaulsen93 committed Oct 2, 2017
1 parent c295977 commit 759f1fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geanylua/glspi_app.c
Expand Up @@ -256,7 +256,7 @@ static gint glspi_fullpath(lua_State* L)
const gchar *fn=NULL;
if (!lua_isstring(L,1)) { return FAIL_STRING_ARG(1); }
fn=lua_tostring(L,1);
rp=tm_get_real_path(fn);
rp=utils_get_real_path(fn);
if (rp) {
lua_pushstring(L,rp);
g_free(rp);
Expand Down
4 changes: 2 additions & 2 deletions geanylua/gsdlg.c
Expand Up @@ -106,7 +106,7 @@ static void file_btn_clicked(GtkButton *button, gpointer user_data)
fn=gtk_entry_get_text(GTK_ENTRY(user_data));
if (fn && *fn) {
if (g_file_test(fn,G_FILE_TEST_IS_REGULAR)) {
gchar *rp=tm_get_real_path(fn);
gchar *rp=utils_get_real_path(fn);
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg), rp);
if (rp) g_free(rp);
} else {
Expand All @@ -115,7 +115,7 @@ static void file_btn_clicked(GtkButton *button, gpointer user_data)
} else {
gchar *dn=g_path_get_dirname(fn);
if (g_file_test(dn,G_FILE_TEST_IS_DIR)) {
gchar *rp=tm_get_real_path(dn);
gchar *rp=utils_get_real_path(dn);
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dlg), rp);
if (rp) g_free(rp);
bn=g_path_get_basename(fn);
Expand Down

0 comments on commit 759f1fe

Please sign in to comment.