diff options
| author | Jan Djärv | 2006-09-04 14:47:52 +0000 |
|---|---|---|
| committer | Jan Djärv | 2006-09-04 14:47:52 +0000 |
| commit | ae6c1c19504fac2228f15125cdbcbddc0c67c0bf (patch) | |
| tree | b95472e54b75a5a862c749c1ee8dbcc14d38c17f /src | |
| parent | de4fbbe4ff7be8911738ba397086ff64487713e4 (diff) | |
| download | emacs-ae6c1c19504fac2228f15125cdbcbddc0c67c0bf.tar.gz emacs-ae6c1c19504fac2228f15125cdbcbddc0c67c0bf.zip | |
* gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
the file chooser message. Only call gtk_file_chooser_set_current_name
when action is SAVE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/gtkutil.c | 20 |
2 files changed, 16 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b730c8d9889..e21593fbd45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-09-04 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in | ||
| 4 | the file chooser message. Only call gtk_file_chooser_set_current_name | ||
| 5 | when action is SAVE. | ||
| 6 | |||
| 1 | 2006-09-04 Andreas Schwab <schwab@suse.de> | 7 | 2006-09-04 Andreas Schwab <schwab@suse.de> |
| 2 | 8 | ||
| 3 | * Makefile.in: Double all single and back quotes in C-style | 9 | * Makefile.in: Double all single and back quotes in C-style |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 172c7b94a64..89b0f8b11c6 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1326,12 +1326,9 @@ xg_get_file_with_chooser (f, prompt, default_filename, | |||
| 1326 | message[0] = '\0'; | 1326 | message[0] = '\0'; |
| 1327 | if (action != GTK_FILE_CHOOSER_ACTION_SAVE) | 1327 | if (action != GTK_FILE_CHOOSER_ACTION_SAVE) |
| 1328 | strcat (message, "\nType C-l to display a file name text entry box.\n"); | 1328 | strcat (message, "\nType C-l to display a file name text entry box.\n"); |
| 1329 | strcat (message, "\nIf you don't like this file selector, customize " | 1329 | strcat (message, "\nIf you don't like this file selector, use the " |
| 1330 | "use-file-dialog\nto turn it off, or type "); | 1330 | "corresponding\nkey binding or customize " |
| 1331 | if (action != GTK_FILE_CHOOSER_ACTION_SAVE) | 1331 | "use-file-dialog to turn it off."); |
| 1332 | strcat (message, "C-x C-f to visit files."); | ||
| 1333 | else | ||
| 1334 | strcat (message, "C-x C-w to write files."); | ||
| 1335 | 1332 | ||
| 1336 | wmessage = gtk_label_new (message); | 1333 | wmessage = gtk_label_new (message); |
| 1337 | gtk_widget_show (wmessage); | 1334 | gtk_widget_show (wmessage); |
| @@ -1359,12 +1356,15 @@ xg_get_file_with_chooser (f, prompt, default_filename, | |||
| 1359 | utf8_filename); | 1356 | utf8_filename); |
| 1360 | else | 1357 | else |
| 1361 | { | 1358 | { |
| 1362 | char *cp = strrchr (utf8_filename, '/'); | ||
| 1363 | if (cp) ++cp; | ||
| 1364 | else cp = utf8_filename; | ||
| 1365 | gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (filewin), | 1359 | gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (filewin), |
| 1366 | utf8_filename); | 1360 | utf8_filename); |
| 1367 | gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (filewin), cp); | 1361 | if (action == GTK_FILE_CHOOSER_ACTION_SAVE) |
| 1362 | { | ||
| 1363 | char *cp = strrchr (utf8_filename, '/'); | ||
| 1364 | if (cp) ++cp; | ||
| 1365 | else cp = utf8_filename; | ||
| 1366 | gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (filewin), cp); | ||
| 1367 | } | ||
| 1368 | } | 1368 | } |
| 1369 | 1369 | ||
| 1370 | UNGCPRO; | 1370 | UNGCPRO; |