diff options
author | Marek Kasik <mkasik@redhat.com> | 2009-08-11 09:24:18 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-08-28 22:25:34 -0400 |
commit | 2e4345ed50e4d715adab5b6660f0a0a2d26b2aeb (patch) | |
tree | 9d35a1866184e03b1baed344ccfb1af496492a54 /modules | |
parent | 8b774172b5d2ca52544abda840a74373eee7abe8 (diff) | |
download | gdk-pixbuf-2e4345ed50e4d715adab5b6660f0a0a2d26b2aeb.tar.gz |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/printbackends/file/gtkprintbackendfile.c | 1 | ||||
-rw-r--r-- | modules/printbackends/lpr/gtkprintbackendlpr.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/printbackends/file/gtkprintbackendfile.c b/modules/printbackends/file/gtkprintbackendfile.c index c44c24cfd..980fdea3b 100644 --- a/modules/printbackends/file/gtkprintbackendfile.c +++ b/modules/printbackends/file/gtkprintbackendfile.c @@ -603,6 +603,7 @@ file_printer_get_options (GtkPrinter *printer, option = gtk_printer_option_new ("gtk-main-page-custom-input", _("File"), GTK_PRINTER_OPTION_TYPE_FILESAVE); + gtk_printer_option_set_activates_default (option, TRUE); gtk_printer_option_set (option, uri); g_free (uri); option->group = g_strdup ("GtkPrintDialogExtension"); diff --git a/modules/printbackends/lpr/gtkprintbackendlpr.c b/modules/printbackends/lpr/gtkprintbackendlpr.c index fa6196df7..aece2b295 100644 --- a/modules/printbackends/lpr/gtkprintbackendlpr.c +++ b/modules/printbackends/lpr/gtkprintbackendlpr.c @@ -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) |