diff options
author | Robert Brady <robert@suse.co.uk> | 2000-11-12 22:15:43 +0000 |
---|---|---|
committer | Robert Brady <rbrady@src.gnome.org> | 2000-11-12 22:15:43 +0000 |
commit | b17f1a964afd56fc9e58074cbfe8c83ee4befd07 (patch) | |
tree | 225e9425b27fb618aa327b5e149181922ef10a2a /gtk/gtkfilesel.c | |
parent | 2cb2d33b2086617fcb8d968f08bde3e60e09a9f7 (diff) | |
download | gdk-pixbuf-b17f1a964afd56fc9e58074cbfe8c83ee4befd07.tar.gz |
g_filename_{to,from}_utf8 now takes an extra parameter.
Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
* gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
g_filename_{to,from}_utf8 now takes an extra parameter.
* gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
strftime into UTF-8.
(column_from_x, gtk_calendar_paint_day_names): Support RTL
calendars.
(gtk_calendar_paint_day_names): Draw day names in the right
place.
Diffstat (limited to 'gtk/gtkfilesel.c')
-rw-r--r-- | gtk/gtkfilesel.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index c58c6a167..0536e266f 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -739,7 +739,7 @@ gtk_file_selection_get_filename (GtkFileSelection *filesel) text = gtk_entry_get_text (GTK_ENTRY (filesel->selection_entry)); if (text) { - sys_filename = g_filename_from_utf8 (cmpl_completion_fullname (text, filesel->cmpl_state)); + sys_filename = g_filename_from_utf8 (cmpl_completion_fullname (text, filesel->cmpl_state), NULL); strncpy (something, sys_filename, sizeof (something)); g_free (sys_filename); return something; @@ -890,7 +890,7 @@ gtk_file_selection_create_dir_confirmed (GtkWidget *widget, path = cmpl_reference_position (cmpl_state); full_path = g_strconcat (path, G_DIR_SEPARATOR_S, dirname, NULL); - sys_full_path = g_filename_from_utf8 (full_path); + sys_full_path = g_filename_from_utf8 (full_path, NULL); if (mkdir (sys_full_path, 0755) < 0) { buf = g_strconcat ("Error creating directory \"", dirname, "\": ", @@ -993,7 +993,7 @@ gtk_file_selection_delete_file_confirmed (GtkWidget *widget, path = cmpl_reference_position (cmpl_state); full_path = g_strconcat (path, G_DIR_SEPARATOR_S, fs->fileop_file, NULL); - sys_full_path = g_filename_from_utf8 (full_path); + sys_full_path = g_filename_from_utf8 (full_path, NULL); if (unlink (sys_full_path) < 0) { buf = g_strconcat ("Error deleting file \"", fs->fileop_file, "\": ", @@ -1109,8 +1109,8 @@ gtk_file_selection_rename_file_confirmed (GtkWidget *widget, new_filename = g_strconcat (path, G_DIR_SEPARATOR_S, file, NULL); old_filename = g_strconcat (path, G_DIR_SEPARATOR_S, fs->fileop_file, NULL); - sys_new_filename = g_filename_from_utf8 (new_filename); - sys_old_filename = g_filename_from_utf8 (old_filename); + sys_new_filename = g_filename_from_utf8 (new_filename, NULL); + sys_old_filename = g_filename_from_utf8 (old_filename, NULL); if (rename (sys_old_filename, sys_new_filename) < 0) { @@ -1757,7 +1757,7 @@ cmpl_init_state (void) /* g_get_current_dir() returns a string in the "system" charset */ sys_getcwd_buf = g_get_current_dir (); - utf8_cwd = g_filename_to_utf8 (sys_getcwd_buf); + utf8_cwd = g_filename_to_utf8 (sys_getcwd_buf, NULL); g_free (sys_getcwd_buf); tryagain: @@ -2049,7 +2049,7 @@ open_ref_dir (gchar *text_to_complete, { /* If no possible candidates, use the cwd */ gchar *sys_curdir = g_get_current_dir (); - gchar *utf8_curdir = g_filename_to_utf8 (sys_curdir); + gchar *utf8_curdir = g_filename_to_utf8 (sys_curdir, NULL); g_free (sys_curdir); @@ -2103,7 +2103,7 @@ open_user_dir (gchar *text_to_complete, { /* ~/ */ gchar *homedir = g_get_home_dir (); - gchar *utf8_homedir = g_filename_to_utf8 (homedir); + gchar *utf8_homedir = g_filename_to_utf8 (homedir, NULL); g_free (homedir); @@ -2130,7 +2130,7 @@ open_user_dir (gchar *text_to_complete, cmpl_errno = errno; return NULL; } - utf8_dir = g_filename_to_utf8 (pwd->pw_dir); + utf8_dir = g_filename_to_utf8 (pwd->pw_dir, NULL); result = open_dir (utf8_dir, cmpl_state); g_free (utf8_dir); } @@ -2185,7 +2185,7 @@ open_new_dir (gchar *dir_name, path = g_string_sized_new (2*MAXPATHLEN + 10); - sys_dir_name = g_filename_from_utf8 (dir_name); + sys_dir_name = g_filename_from_utf8 (dir_name, NULL); directory = opendir (sys_dir_name); if (!directory) @@ -2215,7 +2215,7 @@ open_new_dir (gchar *dir_name, return NULL; } - sent->entries[i].entry_name = g_filename_to_utf8 (dirent_ptr->d_name); + sent->entries[i].entry_name = g_filename_to_utf8 (dirent_ptr->d_name, NULL); g_string_assign (path, sys_dir_name); if (path->str[path->len-1] != G_DIR_SEPARATOR) @@ -2283,7 +2283,7 @@ check_dir (gchar *dir_name, } } - sys_dir_name = g_filename_from_utf8 (dir_name); + sys_dir_name = g_filename_from_utf8 (dir_name, NULL); if (stat (sys_dir_name, result) < 0) { g_free (sys_dir_name); @@ -2416,7 +2416,7 @@ correct_dir_fullname (CompletionDir* cmpl_dir) return TRUE; } - sys_filename = g_filename_from_utf8 (cmpl_dir->fullname); + sys_filename = g_filename_from_utf8 (cmpl_dir->fullname, NULL); if (stat (sys_filename, &sbuf) < 0) { g_free (sys_filename); @@ -2444,7 +2444,7 @@ correct_dir_fullname (CompletionDir* cmpl_dir) return TRUE; } - sys_filename = g_filename_from_utf8 (cmpl_dir->fullname); + sys_filename = g_filename_from_utf8 (cmpl_dir->fullname, NULL); if (stat (sys_filename, &sbuf) < 0) { g_free (sys_filename); @@ -2492,7 +2492,7 @@ correct_parent (CompletionDir *cmpl_dir, last_slash[1] = 0; } - sys_filename = g_filename_from_utf8 (cmpl_dir->fullname); + sys_filename = g_filename_from_utf8 (cmpl_dir->fullname, NULL); if (stat (sys_filename, &parbuf) < 0) { g_free (sys_filename); @@ -2539,7 +2539,7 @@ find_parent_dir_fullname (gchar* dirname) gchar *sys_dirname; sys_orig_dir = g_get_current_dir (); - sys_dirname = g_filename_from_utf8 (dirname); + sys_dirname = g_filename_from_utf8 (dirname, NULL); if (chdir (sys_dirname) != 0 || chdir ("..") != 0) { g_free (sys_dirname); @@ -2550,7 +2550,7 @@ find_parent_dir_fullname (gchar* dirname) g_free (sys_dirname); sys_cwd = g_get_current_dir (); - result = g_filename_to_utf8 (sys_cwd); + result = g_filename_to_utf8 (sys_cwd, NULL); g_free (sys_cwd); if (chdir (sys_orig_dir) != 0) @@ -2944,10 +2944,10 @@ get_pwdb (CompletionState* cmpl_state) while ((pwd_ptr = getpwent ()) != NULL) { - utf8 = g_filename_to_utf8 (pwd_ptr->pw_name); + utf8 = g_filename_to_utf8 (pwd_ptr->pw_name, NULL); len += strlen (utf8); g_free (utf8); - utf8 = g_filename_to_utf8 (pwd_ptr->pw_dir); + utf8 = g_filename_to_utf8 (pwd_ptr->pw_dir, NULL); len += strlen (utf8); g_free (utf8); len += 2; @@ -2971,7 +2971,7 @@ get_pwdb (CompletionState* cmpl_state) goto error; } - utf8 = g_filename_to_utf8 (pwd_ptr->pw_name); + utf8 = g_filename_to_utf8 (pwd_ptr->pw_name, NULL); strcpy (buf_ptr, utf8); g_free (utf8); @@ -2980,7 +2980,7 @@ get_pwdb (CompletionState* cmpl_state) buf_ptr += strlen (buf_ptr); buf_ptr += 1; - utf8 = g_filename_to_utf8 (pwd_ptr->pw_dir); + utf8 = g_filename_to_utf8 (pwd_ptr->pw_dir, NULL); strcpy (buf_ptr, utf8); g_free (utf8); |