Fix the example. (#116575)

2003-07-08  Matthias Clasen  <maclas@gmx.de>

	* gtk/tmpl/gtkfilesel.sgml: Fix the example.  (#116575)
This commit is contained in:
Matthias Clasen 2003-07-08 21:51:44 +00:00 committed by Matthias Clasen
parent f7657d313e
commit 4a8650e98b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-07-08 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkfilesel.sgml: Fix the example. (#116575)
Wed Jul 2 18:15:21 2003 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am gtk/gtk-docs.sgml gtk/gtksections.txt

View File

@ -34,7 +34,8 @@ Simple file operations; create directory, delete file, and rename file, are avai
/* The file selection widget and the string to store the chosen filename */
void store_filename (GtkWidget *file_selector, gpointer user_data) {
void store_filename (GtkWidget *widget, gpointer user_data) {
GtkWidget *file_selector = (GtkWidget *)user_data;
const gchar *selected_filename;
selected_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selector));
@ -52,7 +53,7 @@ void create_file_selection (void) {
g_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (file_selector)->ok_button),
"clicked",
G_CALLBACK (store_filename),
NULL);
(gpointer) file_selector);
/* Ensure that the dialog box is destroyed when the user clicks a button. */