Fix up the example program a bit. (#88814, Johnson Wong)

Mon Jul 29 22:36:06 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/tmpl/gtkfilesel.sgml: Fix up the example program
        a bit. (#88814, Johnson Wong)
This commit is contained in:
Owen Taylor 2002-07-30 02:39:59 +00:00 committed by Owen Taylor
parent 0c87100036
commit 6f2d782624
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Jul 29 22:36:06 2002 Owen Taylor <otaylor@redhat.com>
* gtk/tmpl/gtkfilesel.sgml: Fix up the example program
a bit. (#88814, Johnson Wong)
2002-07-16 Sven Neumann <sven@gimp.org>
* gdk/tmpl/rgb.sgml: fixed the example code (return TRUE from the

View File

@ -34,15 +34,17 @@ Simple file operations; create directory, delete file, and rename file, are avai
/* The file selection widget and the string to store the chosen filename */
GtkWidget *file_selector;
gchar *selected_filename;
void store_filename (GtkFileSelection *file_selector, gpointer user_data) {
const gchar *selected_filename;
void store_filename (GtkFileSelection *selector, gpointer user_data) {
selected_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selector));
g_print ("Selected filename: %s\n", selected_filename);
}
void create_file_selection (void) {
GtkWidget *file_selector;
/* Create the selector */
file_selector = gtk_file_selection_new ("Please select a file for editing.");