summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesel.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-02-03 01:19:03 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-02-03 01:19:03 +0000
commite57b1afa2b4c91bcfecef26e4bff5280bd3563de (patch)
tree076b0cafc0d859fb263c2cb5f072633849915c94 /gtk/gtkfilesel.h
parente489f9c26c4d41716d09946caa7dbd225b3f2880 (diff)
downloadgtk+-e57b1afa2b4c91bcfecef26e4bff5280bd3563de.tar.gz
Use g_filename_to_utf8 to convert the font names Windows gives us from
2000-02-04 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use g_filename_to_utf8 to convert the font names Windows gives us from whatever is the default codepage to UTF-8. (gdk_font_load_internal) Use g_filename_from_utf8 for conversion in the other direction. * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste error in debugging output. 2000-02-02 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width and height parameters to gdk_window_clear_area(). Not minus one. 2000-02-01 Tor Lillqvist <tml@iki.fi> * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and g_filename_from_utf8 functions (which were added a moment ago to GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed size buffers. * gtk/gtkfilesel.h: Add comment about gtk_file_selection_get_filename returning the filename in the C runtime's encoding. * README.win32 * gdk/gdk.def * gdk/makefile.{cygwin,msc} * gtk/gtk.def: Updates. * gdk/gdkcursor-win32.c: Initialise refcount.
Diffstat (limited to 'gtk/gtkfilesel.h')
-rw-r--r--gtk/gtkfilesel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkfilesel.h b/gtk/gtkfilesel.h
index 64ad3ab6be..24ff5de521 100644
--- a/gtk/gtkfilesel.h
+++ b/gtk/gtkfilesel.h
@@ -86,7 +86,13 @@ GtkType gtk_file_selection_get_type (void);
GtkWidget* gtk_file_selection_new (const gchar *title);
void gtk_file_selection_set_filename (GtkFileSelection *filesel,
const gchar *filename);
+/* This function returns the selected filename in the C runtime's
+ * multibyte string encoding, which may or may not be the same as that
+ * used by GDK (UTF-8). To convert to UTF-8, call g_filename_to_utf8().
+ * The returned string should be deallocated with g_free().
+ */
gchar* gtk_file_selection_get_filename (GtkFileSelection *filesel);
+
void gtk_file_selection_complete (GtkFileSelection *filesel,
const gchar *pattern);
void gtk_file_selection_show_fileop_buttons (GtkFileSelection *filesel);