diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-07-08 21:51:44 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-07-08 21:51:44 +0000 |
commit | 4a8650e98b266fbcf6f0ba53b3c8436e7b4e55b4 (patch) | |
tree | d0cc2ce65f8569e899ebffa4802beb374e6cf92b /docs/reference/gtk/tmpl/gtkfilesel.sgml | |
parent | f7657d313ef4dd9d7a6e4c9a955cdfe0262f78cb (diff) | |
download | gtk+-4a8650e98b266fbcf6f0ba53b3c8436e7b4e55b4.tar.gz |
Fix the example. (#116575)
2003-07-08 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkfilesel.sgml: Fix the example. (#116575)
Diffstat (limited to 'docs/reference/gtk/tmpl/gtkfilesel.sgml')
-rw-r--r-- | docs/reference/gtk/tmpl/gtkfilesel.sgml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/reference/gtk/tmpl/gtkfilesel.sgml b/docs/reference/gtk/tmpl/gtkfilesel.sgml index 990cb2cd54..bcf06fdbe4 100644 --- a/docs/reference/gtk/tmpl/gtkfilesel.sgml +++ b/docs/reference/gtk/tmpl/gtkfilesel.sgml @@ -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. */ |