Mercurial > emacs
comparison src/gtkutil.c @ 67849:e30591b77191
Formatting
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Tue, 27 Dec 2005 13:28:15 +0000 |
parents | 6cf5dc28bd1e |
children | e1dfc5458653 |
comparison
equal
deleted
inserted
replaced
67848:14cc99887d3d | 67849:e30591b77191 |
---|---|
1219 { | 1219 { |
1220 return gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (w)); | 1220 return gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (w)); |
1221 } | 1221 } |
1222 | 1222 |
1223 static void | 1223 static void |
1224 xg_toggle_visibility_cb(widget, data) | 1224 xg_toggle_visibility_cb (widget, data) |
1225 GtkWidget *widget; | 1225 GtkWidget *widget; |
1226 gpointer data; | 1226 gpointer data; |
1227 { | 1227 { |
1228 GtkFileChooser *dialog = GTK_FILE_CHOOSER (data); | 1228 GtkFileChooser *dialog = GTK_FILE_CHOOSER (data); |
1229 gboolean visible; | 1229 gboolean visible; |
1285 g_signal_connect (G_OBJECT (wtoggle), "clicked", | 1285 g_signal_connect (G_OBJECT (wtoggle), "clicked", |
1286 G_CALLBACK (xg_toggle_visibility_cb), G_OBJECT(filewin)); | 1286 G_CALLBACK (xg_toggle_visibility_cb), G_OBJECT(filewin)); |
1287 | 1287 |
1288 #ifdef HAVE_GTK_FILE_SELECTION_NEW | 1288 #ifdef HAVE_GTK_FILE_SELECTION_NEW |
1289 strcpy (message, "If you find this file dialog inconvinient " | 1289 strcpy (message, "If you find this file dialog inconvinient " |
1290 "you can customize x-use-old-gtk-file-dialog\n" | 1290 "you can customize\n" |
1291 "to get the old file dialog, or you can customize " | 1291 "x-use-old-gtk-file-dialog to get the old file dialog,\n" |
1292 "use-file-dialog to disable file dialogs, or just\n" | 1292 "or you can customize use-file-dialog to disable file dialogs,\n" |
1293 "use C-x C-f to open files."); | 1293 "or just use C-x C-f to open files."); |
1294 #else | 1294 #else |
1295 strcpy (message, "If you find this file dialog inconvinient" | 1295 strcpy (message, "If you find this file dialog inconvinient " |
1296 "you can customize use-file-dialog to disable file dialogs,\n" | 1296 "you can customize\n" |
1297 "use-file-dialog to disable file dialogs,\n" | |
1297 "or just use C-x C-f to open files."); | 1298 "or just use C-x C-f to open files."); |
1298 #endif | 1299 #endif |
1299 if (action == GTK_FILE_CHOOSER_ACTION_OPEN) | 1300 if (action == GTK_FILE_CHOOSER_ACTION_OPEN) |
1300 strcat (message, "\nUse C-l to bring up a text input area."); | 1301 strcat (message, "\nUse C-l to bring up a text input area."); |
1301 | 1302 |