Mercurial > emacs
comparison src/gtkutil.c @ 67875:e1dfc5458653
* gtkutil.c (xg_get_file_with_chooser): Changed message shown
in file chooser.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 28 Dec 2005 10:47:55 +0000 |
parents | e30591b77191 |
children | 606e8e24acfe |
comparison
equal
deleted
inserted
replaced
67874:c1ab9f9a59a7 | 67875:e1dfc5458653 |
---|---|
1283 } | 1283 } |
1284 gtk_widget_show (wtoggle); | 1284 gtk_widget_show (wtoggle); |
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 message[0] = '\0'; |
1289 strcpy (message, "If you find this file dialog inconvinient " | 1289 if (action != GTK_FILE_CHOOSER_ACTION_SAVE) |
1290 "you can customize\n" | 1290 strcat (message, "\nType C-l to display a file name text entry box.\n"); |
1291 "x-use-old-gtk-file-dialog to get the old file dialog,\n" | 1291 strcat (message, "\nIf you don't like this file selector, customize " |
1292 "or you can customize use-file-dialog to disable file dialogs,\n" | 1292 "use-file-dialog\nto turn it off, or type C-x C-f to visit files."); |
1293 "or just use C-x C-f to open files."); | |
1294 #else | |
1295 strcpy (message, "If you find this file dialog inconvinient " | |
1296 "you can customize\n" | |
1297 "use-file-dialog to disable file dialogs,\n" | |
1298 "or just use C-x C-f to open files."); | |
1299 #endif | |
1300 if (action == GTK_FILE_CHOOSER_ACTION_OPEN) | |
1301 strcat (message, "\nUse C-l to bring up a text input area."); | |
1302 | 1293 |
1303 wmessage = gtk_label_new (message); | 1294 wmessage = gtk_label_new (message); |
1304 gtk_widget_show (wmessage); | 1295 gtk_widget_show (wmessage); |
1305 gtk_box_pack_start (GTK_BOX (wbox), wtoggle, FALSE, FALSE, 0); | 1296 gtk_box_pack_start (GTK_BOX (wbox), wtoggle, FALSE, FALSE, 0); |
1306 gtk_box_pack_start (GTK_BOX (wbox), wmessage, FALSE, FALSE, 0); | 1297 gtk_box_pack_start (GTK_BOX (wbox), wmessage, FALSE, FALSE, 0); |