1. 28 May, 2007 1 commit
    • Carlos Garcia Campos's avatar
      Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP. · eb7f97bb
      Carlos Garcia Campos authored
      2007-05-28  Carlos Garcia Campos  <carlosgc@gnome.org>
      	* gtk/gtkprinter.[ch]: Add new capability
      	GTK_PRINT_CAPABILITY_NUMBER_UP.
      	* docs/reference/gtk/tmpl/gtkprintunixdialog.sgml: 
      	* gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities):
      	* modules/printbackends/file/gtkprintbackendfile.c:
      	(file_printer_get_options), (file_printer_get_settings_from_options):
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	(cups_printer_get_capabilities): Add a new print capability to specify
      	whether print dialog will offer printing multiple pages per sheet. (#398414)
      
      svn path=/trunk/; revision=17963
      eb7f97bb
  2. 23 May, 2007 1 commit
    • Yevgen Muntyan's avatar
      missing #include <ctype.h>. · 1a534510
      Yevgen Muntyan authored
      2007-05-23  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	* gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_paint):
      	* gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
      	* gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
      	* gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
      	* gtk/gtkpreview.c (gtk_preview_finalize):
      	* gtk/gtknotebook.c (gtk_notebook_set_group_id):
      	* tests/testnotebookdnd.c (window_creation_function):
      	* tests/testiconview.c (do_popup_menu):
      	Fixed some compiler warnings (#440689).
      
      svn path=/trunk/; revision=17898
      1a534510
  3. 30 Apr, 2007 2 commits
    • Christian Persch's avatar
      Make gtk_printer_get_capabilities public, and move the · be87e9a8
      Christian Persch authored
      2007-04-30  Christian Persch  <chpe@gnome.org>
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* gtk/gtk.symbols:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: (gtk_printer_get_capabilities),
      	(gtk_print_capabilities_get_type):
      	* gtk/gtkprinter.h:
      	* gtk/gtkprintunixdialog.c: (selected_printer_changed):
      	Make gtk_printer_get_capabilities public, and move the
      	GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
      
      svn path=/trunk/; revision=17746
      be87e9a8
    • Matthias Clasen's avatar
      Fix some compiler warnings. (#433642, Kjartan Maraas) · 6573ed5f
      Matthias Clasen authored
      2007-04-30  Matthias Clasen  <mclasen@redhat.com>
      
              Fix some compiler warnings.  (#433642, Kjartan Maraas)
      
              * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info):
              (gtk_file_system_win32_create_folder):
              * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion.
      
              * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass
              the right type to uri_func.
      
              * gtk/gtktext.c (gtk_text_key_press):
              * gtk/gtkstatusicon.c (gtk_status_icon_get_property):
              * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts.
      
              * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed):
              (gtk_tray_icon_delete):
              * gtk/gtkprintunixdialog.c (create_main_page):
              * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables.
      
              * gtk/gtkliststore.c: Adapt callbacks to GSequence types.
      
      
      svn path=/trunk/; revision=17739
      6573ed5f
  4. 29 Apr, 2007 2 commits
  5. 24 Apr, 2007 1 commit
    • Matthias Clasen's avatar
      Parse half-open ranges like -2 or 3-, and be a bit more liberal about · 8f409578
      Matthias Clasen authored
      2007-04-24  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
              half-open ranges like -2 or 3-, and be a bit more liberal
              about whitespace.
              (dialog_set_page_ranges): Support half-open ranges.
      
              * gtk/gtkprintoperation.c (print_pages_idle): Substitute the
              number of pages in half-open ranges.
              (preview_iface_is_selected): Support half-open ranges here, too.
      
      
      
      svn path=/trunk/; revision=17627
      8f409578
  6. 16 Mar, 2007 1 commit
  7. 26 Feb, 2007 1 commit
  8. 22 Dec, 2006 1 commit
  9. 20 Dec, 2006 1 commit
  10. 06 Dec, 2006 1 commit
  11. 08 Oct, 2006 1 commit
    • Matthias Clasen's avatar
      Fix a typo. (#359542, Ghee Teo) · 192f2ec2
      Matthias Clasen authored
      2006-10-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
      	a typo.  (#359542, Ghee Teo)
      192f2ec2
  12. 17 Aug, 2006 2 commits
  13. 30 Jun, 2006 2 commits
    • Matthias Clasen's avatar
      Documentation updates. · a3bfbe23
      Matthias Clasen authored
      2006-06-30  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
              Documentation updates.
      
              * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings):
              Don't leak the ranges.  (#346237, Carolyn MacLeod)
      a3bfbe23
    • Matthias Clasen's avatar
      Add a preview capability · 86600653
      Matthias Clasen authored
      86600653
  14. 29 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Documentation additions and fixes. · f8f93845
      Matthias Clasen authored
      2006-06-28  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprinter.c:
              * gtk/gtkprintunixdialog.c:
              * gtk/gtkprintoperationpreview.c:
              * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context):
              * gtk/gtklabel.c (gtk_label_set_line_wrap_mode):
              * gtk/gtkentry.c (gtk_entry_new):
              * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label):
              * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
              additions and fixes.
      
              * gtk/gtkaspectframe.h:
              * gtk/gtkaboutdialog.c:
              * gtk/gtkcalendar.c:
              * gtk/gtkinputdialog.c:
              * gtk/gtk.symbols: Remove unnecessary includes.
      
              * gtk/gtkprogress.[hc]:
              * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
              remove unnecessary includes.
      f8f93845
  15. 19 Jun, 2006 2 commits
  16. 17 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      ~ · 9ee7d66f
      Matthias Clasen authored
      2006-06-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintunixdialog.c: Clean up the handling of
      	printer-specific options. There is just one extension point on the
      	main tab now, and all options in the GtkPrintDialogExtension
      	group are put there.
      9ee7d66f
  17. 16 Jun, 2006 2 commits
  18. 12 Jun, 2006 3 commits
    • Matthias Clasen's avatar
      Use gtk_printer_accepts_ps here. · 809c8d56
      Matthias Clasen authored
      2006-06-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintunixdialog.c (is_printer_active): Use
      	gtk_printer_accepts_ps here.
      
      	* modules/printbackends/pdf/gtkprintbackendpdf.c (gtk_print_backend_pdf_init):
      	Mark the virtual "Print to PDF" printer as not accepting PS.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprinter.h:
      	* gtk/gtkprinter.c: Add two new properties accepts-pdf and
      	accepts-ps (with getters) to allow learning supported formats.
      809c8d56
    • Matthias Clasen's avatar
      Add a GTK_PRINT_CAPABILITY_GENERATE_PDF capability. · c6d1d9dd
      Matthias Clasen authored
      2006-06-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintjob.h: Add a GTK_PRINT_CAPABILITY_GENERATE_PDF
      	capability.
      
      	* gtk/gtkprintunixdialog.c: Use it here to hide "Print to PDF"
      	from the printer list.  (#339592, Christian Persch)
      c6d1d9dd
    • Matthias Clasen's avatar
      Cosmetic cleanups. · 01e3463f
      Matthias Clasen authored
      2006-06-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintjob.c:
      	* gtk/gtkprintbackend.c:
      	* gtk/gtkpagesetupunixdialog.c:
      	* gtk/gtkprintunixdialog.c: Cosmetic cleanups.
      01e3463f
  19. 08 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Don't include gtkprinter-private.h here. · 480803d5
      Matthias Clasen authored
      2006-06-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintbackend.h: Don't include gtkprinter-private.h here.
      
      	* gtk/gtkprintunixdialog.c:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintjob.c:
      	* gtk/gtkprintbackend.c: Instead include it here.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintoperation.h:
      	* gtk/gtkprintoperation.c: Rename pdf_target to export_filename.
      480803d5
  20. 02 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded · fad69ba0
      Alexander Larsson authored
      2006-06-02  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/Makefile.am:
      	Add gtkprintoperationpreview.[ch]
      	Set default preview command. Hardcoded for now.
      
      	* gtk/gtkmarshalers.list:
      	Add BOOLEAN:OBJECT,OBJECT,OBJECT
      
      	* gtk/gtkprintbackend.c:
      	Add preview command property.
      
      	* gtk/gtkprintcontext.[ch]:
      	Make less dependent on PrintOperation for output settings
      	Externally set cairo_t and dpi. Resettable.
      	Create fontmap without metrics hinting (so that print preview
      	text layout doesn't depend on zoom level).
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.[ch]:
      	Initial work on print preview API and default implementation
      	using an external preview app.
      
      	* gtk/gtkprintoperation-win32.c:
      	Some needed updates. Not done, needs more work.
      
      	* gtk/gtkprintoperationpreview.[ch]:
      	New interface used in print preview api.
      
      	* gtk/gtkprintunixdialog.c:
      	Add print preview dialog.
      
      	* tests/print-editor.c:
      	Test using an custom print preview widget.
      fad69ba0
  21. 01 Jun, 2006 1 commit
  22. 24 May, 2006 3 commits
    • Matthias Clasen's avatar
      Make collate check button insensitive · d6f2aada
      Matthias Clasen authored
      d6f2aada
    • Matthias Clasen's avatar
      Make the range entry insensitive if another range option is selected. · b86d879e
      Matthias Clasen authored
      2006-05-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintunixdialog.c (create_main_page): Make
      	the range entry insensitive if another range option
      	is selected.  (#342783, Caolan McNamara)
      b86d879e
    • Alexander Larsson's avatar
      Add gtk_print_unix_dialog_set_manual_capabilities that controls what · 70376f28
      Alexander Larsson authored
      2006-05-24  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintunixdialog.[ch]:
      	Add gtk_print_unix_dialog_set_manual_capabilities that controls
      	what widgets to enable in the dialog depending on the apps
      	capabilities.
      
      	* gtk/gtkprintbackend.[ch]:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c:
      	* gtk/gtkprintjob.h:
      	Add printer_get_capabilities to backend.
      	Move some fallback calls to the printbackend base class.
      
      	* gtk/gtkprintoperation-unix.c:
      	Set manual capabilities
      
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	Implement get_capabilities
      
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	* modules/printbackends/pdf/gtkprintbackendpdf.c:
      	Move some methods to baseclass.
      70376f28
  23. 23 May, 2006 1 commit
    • Alexander Larsson's avatar
      Add gtk_print_unix_dialog_add_custom_tab · 07d2dd17
      Alexander Larsson authored
      2006-05-23  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintunixdialog.[ch]:
      	Add gtk_print_unix_dialog_add_custom_tab
      
      	* gtk/gtkprintoperation-unix.c:
      	Implement custom widgets for unix.
      	Fix some warnings by including cairo-ps/pdf.h
      
      	* gtk/gtkprintoperation-win32.c:
      	Mark string for translation.
      07d2dd17
  24. 22 May, 2006 1 commit
  25. 14 May, 2006 1 commit
  26. 13 May, 2006 1 commit
  27. 12 May, 2006 2 commits
    • Alexander Larsson's avatar
      Better handling of the window group on unsetting transient-for, since the · d8f1ce73
      Alexander Larsson authored
      2006-05-12  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkwindow.c:
      	Better handling of the window group on unsetting transient-for, since
      	the transient parent might have changed group.
      
      	* gtk/gtkmenu.c:
      	Combine the handling of transient for the attach-widget and the
      	window group handling by setting transient-to on popup/popdown only.
      
      	See bug #340401
      
      	* gtk/gtkprintunixdialog.c:
      	Remove part of old fix no longer needed.
      d8f1ce73
    • Alexander Larsson's avatar
      Fix build errors. · c459feaa
      Alexander Larsson authored
      2006-05-12  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkrecentmanager.c:
      	Fix build errors.
      
      	* gtk/gtk.symbols:
      	* demos/gtk-demo/printing.c:
      	* gtk/gtkprintoperation-win32.c:
      	* gtk/gtkprintoperation.[ch]:
      	* gtk/gtkprintsettings.[ch]:
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	* modules/printbackends/pdf/gtkprintbackendpdf.c:
      	* tests/print-editor.c:
      	* tests/testnouiprint.c:
      	* tests/testprint.c:
      	* tests/testprintfileoperation.c:
      	Rename functions from nr_of_pages to n_pages, and num_copies to
      	n_copies to match other gtk+ names.
      
      	* gtk/gtkmenu.c: (gtk_menu_popdown):
      	Only re-set window group on popdown if we set it on popup (i.e.
      	if there is a parent menu shell).
      	Fixed part of bug #340401
      
      	* gtk/gtkwindow.c:
      	Add (contruct) property "transient-for" to GtkWindow. This
      	is needed for the fix to bug #340401.
      
      	* gtk/gtkprintunixdialog.c:
      	Use the transient-for property on construction and populate the dialog
      	with widgets after that. This fixes bug #340401.
      	More n_pages renames.
      c459feaa
  28. 08 May, 2006 1 commit
  29. 05 May, 2006 1 commit