mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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:
parent
0c87100036
commit
6f2d782624
@ -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
|
||||
|
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user