Print when Enter pressed in certain GtkEntries of the print dialog

Print when Enter pressed in Name entry or Command Line entry in the
print dialog (#564695).
Add gtk_printer_option_set_activates_default() function and
gtk_printer_option_get_activates_default() function to control
behaviour of GtkPrinterOptionWidget.
This commit is contained in:
Marek Kasik
2009-08-11 09:24:18 +02:00
parent 527e0937a8
commit 70efa73311
6 changed files with 49 additions and 18 deletions

View File

@ -431,6 +431,7 @@ lpr_printer_get_options (GtkPrinter *printer,
g_object_unref (option);
option = gtk_printer_option_new ("gtk-main-page-custom-input", _("Command Line"), GTK_PRINTER_OPTION_TYPE_STRING);
gtk_printer_option_set_activates_default (option, TRUE);
option->group = g_strdup ("GtkPrintDialogExtension");
if (settings != NULL &&
(command = gtk_print_settings_get (settings, "lpr-commandline"))!= NULL)