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:53:05 +00:00
committed by Matthias Clasen
parent 531a062dbe
commit dd2137f2ed
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)
2003-06-22 Matthias Clasen <matthias@localhost.localdomain>
* gdk-pixbuf/tmpl/gdk-pixbuf.sgml: Fix a typo.

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. */