+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
/* 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.");