Mercurial > emacs
comparison src/gtkutil.c @ 72968:13a9a628ff21
* gtkutil.c (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
x_gtk_file_dialog_help_text.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Mon, 18 Sep 2006 16:47:46 +0000 |
parents | e5e5fcf4397e |
children | 4a83c4a89b5e b5c13d1564a9 |
comparison
equal
deleted
inserted
replaced
72967:448237be4fea | 72968:13a9a628ff21 |
---|---|
1348 GtkWindow *gwin = GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)); | 1348 GtkWindow *gwin = GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)); |
1349 GtkFileChooserAction action = (mustmatch_p ? | 1349 GtkFileChooserAction action = (mustmatch_p ? |
1350 GTK_FILE_CHOOSER_ACTION_OPEN : | 1350 GTK_FILE_CHOOSER_ACTION_OPEN : |
1351 GTK_FILE_CHOOSER_ACTION_SAVE); | 1351 GTK_FILE_CHOOSER_ACTION_SAVE); |
1352 extern int x_gtk_show_hidden_files; | 1352 extern int x_gtk_show_hidden_files; |
1353 extern int x_gtk_show_chooser_help_text; | 1353 extern int x_gtk_file_dialog_help_text; |
1354 | 1354 |
1355 | 1355 |
1356 if (only_dir_p) | 1356 if (only_dir_p) |
1357 action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; | 1357 action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; |
1358 | 1358 |
1377 g_signal_connect (G_OBJECT (wtoggle), "clicked", | 1377 g_signal_connect (G_OBJECT (wtoggle), "clicked", |
1378 G_CALLBACK (xg_toggle_visibility_cb), filewin); | 1378 G_CALLBACK (xg_toggle_visibility_cb), filewin); |
1379 g_signal_connect (G_OBJECT (filewin), "notify", | 1379 g_signal_connect (G_OBJECT (filewin), "notify", |
1380 G_CALLBACK (xg_toggle_notify_cb), wtoggle); | 1380 G_CALLBACK (xg_toggle_notify_cb), wtoggle); |
1381 | 1381 |
1382 if (x_gtk_show_chooser_help_text) | 1382 if (x_gtk_file_dialog_help_text) |
1383 { | 1383 { |
1384 message[0] = '\0'; | 1384 message[0] = '\0'; |
1385 if (action != GTK_FILE_CHOOSER_ACTION_SAVE) | 1385 if (action != GTK_FILE_CHOOSER_ACTION_SAVE) |
1386 strcat (message, "\nType C-l to display a file name text entry box.\n"); | 1386 strcat (message, "\nType C-l to display a file name text entry box.\n"); |
1387 strcat (message, "\nIf you don't like this file selector, use the " | 1387 strcat (message, "\nIf you don't like this file selector, use the " |
1391 wmessage = gtk_label_new (message); | 1391 wmessage = gtk_label_new (message); |
1392 gtk_widget_show (wmessage); | 1392 gtk_widget_show (wmessage); |
1393 } | 1393 } |
1394 | 1394 |
1395 gtk_box_pack_start (GTK_BOX (wbox), wtoggle, FALSE, FALSE, 0); | 1395 gtk_box_pack_start (GTK_BOX (wbox), wtoggle, FALSE, FALSE, 0); |
1396 if (x_gtk_show_chooser_help_text) | 1396 if (x_gtk_file_dialog_help_text) |
1397 gtk_box_pack_start (GTK_BOX (wbox), wmessage, FALSE, FALSE, 0); | 1397 gtk_box_pack_start (GTK_BOX (wbox), wmessage, FALSE, FALSE, 0); |
1398 gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (filewin), wbox); | 1398 gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (filewin), wbox); |
1399 | 1399 |
1400 if (default_filename) | 1400 if (default_filename) |
1401 { | 1401 { |