1. 10 Jul, 2009 1 commit
    • Marek Kasik's avatar
      Add paper size combo and orientation combo to print dialog · 0ef74c93
      Marek Kasik authored
      Paper size combo and orientation combo can be added by
      gtk_print_operation_set_embed_page_setup_dialog() to GtkPrinUnixDialog
      now. This function induce calling of
      gtk_print_unix_dailog_set_embed_page_setup_dialog() after creation of
      dialog. These two functions control embed-page-setup-dialog properties
      in GtkPrintOperation and in GtkPrintUnixDialog.
      There is also new function gtk_print_unix_dialog_get_page_setup_set()
      which says whether page setup was set by user.
      Selected page setup is stored as default page setup in
      GtkPrintOperation.
      New class is added, its name is GtkCustomPaperUnixDialog. The class
      manages custom sizes. It is derived from GtkPageSetupUnixDialog's
      CustomPaperDialog structure.
      Page layout preview is modified, so, it shows dimensions of current
      page setup (mm or inch - depends on locale). It also shows the name of
      actual paper if page setup dialog is not embedded (paper size combo is
      not visible).
      gtk-demo is actualized to include this new feature.
      0ef74c93
  2. 21 May, 2008 1 commit
    • Matthias Clasen's avatar
      RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size · 59ae44d0
      Matthias Clasen authored
              was chosen
      
              Patch by Marek Kasik.
      
              * gtk/gtk.symbols:
              * gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.
      
              * gtk/gtkprintbackend.[hc]: Add fallback implementation.
      
              * modules/printbackends/file/gtkprintbackendfile.c:
              * modules/printbackends/cups/gtkprintbackendcups.c: Implement
              get_default_page_size.
      
              * gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
              select its default paper size.
      
              * gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
              use the printer default.
      
              * gtk/gtkprintoperation-unix.c: Don't create an empty page setup
              if we don't have a default page setup.
      
      svn path=/trunk/; revision=20120
      59ae44d0
  3. 06 Jan, 2008 1 commit
  4. 07 Dec, 2007 1 commit
  5. 24 Jul, 2007 1 commit
  6. 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
  7. 30 Apr, 2007 1 commit
    • Matthias Clasen's avatar
      Rename gtk_paper_size_get_builtins() to gtk_paper_size_get_paper_sizes() · 7253a5a2
      Matthias Clasen authored
      2007-04-30  Matthias Clasen <mclasen@redhat.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkpapersize.[hc]: Rename gtk_paper_size_get_builtins()
              to gtk_paper_size_get_paper_sizes() and optionally include
              custom paper sizes.
      
              * gtk/gtkpagesetupunixdialog.c: Internally export a function
              to load custom paper sizes.
      
              * modules/printbackends/file/gtkprintbackendfile.c: Implement
              printer_list_papers, returning all paper sizes.  (#434329,
              Christian Persch)
      
      
      svn path=/trunk/; revision=17728
      7253a5a2
  8. 29 Apr, 2007 3 commits
    • Matthias Clasen's avatar
      Add a new error code · 3c5bd522
      Matthias Clasen authored
      2007-04-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprintoperation.h: Add a new error code
      
              * gtk/gtk.symbols:
              * gtk/gtkpagesetup.[hc]:
              * gtk/gtkpapersize.[hc]:
              * gtk/gtkprintsettings.[hc]: Add functions to serialize
              and deserialize page setups and print settings to files
              and key files.  (#344515, Christian Persch)
      
              * gtk/gtkpagesetupunixdialog.c: Adapt to the new functions.
      
              * tests/print-editor.c: Use the new functions to persist
              page setup and print settings.
      
      
      svn path=/trunk/; revision=17697
      3c5bd522
    • Matthias Clasen's avatar
      Free the custom paper list. (#403267, Felix Riemann) · ea3667c4
      Matthias Clasen authored
      2007-04-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_finalize):
              Free the custom paper list.  (#403267, Felix Riemann)
      
      
      
      svn path=/trunk/; revision=17695
      ea3667c4
    • Matthias Clasen's avatar
      Make gtk_printer_has_details() and gtk_printer_request_details() public. · bcbbbe51
      Matthias Clasen authored
      2007-04-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkprinter-private.h:
              * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
              gtk_printer_request_details() public.
      
              * gtk/gtkpagesetupunixdialog.c:
              * gtk/gtkprintunixdialog.c: Update callers.  (#389203,
              Christian Persch)
      
      
      
      svn path=/trunk/; revision=17690
      bcbbbe51
  9. 25 Dec, 2006 1 commit
    • Christian Persch's avatar
      Fix mem leaks. Bug #389194. · fca708fb
      Christian Persch authored
      2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
      
      	* gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
      	(add_custom_paper): Fix mem leaks. Bug #389194.
      fca708fb
  10. 24 Dec, 2006 2 commits
  11. 03 Oct, 2006 1 commit
  12. 14 Jun, 2006 1 commit
  13. 12 Jun, 2006 1 commit
    • 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
  14. 01 Jun, 2006 1 commit
  15. 31 May, 2006 2 commits
  16. 16 May, 2006 1 commit
    • Matthias Clasen's avatar
      Add labels for page orientations, also add the fourth one. (#339589) · 968149a9
      Matthias Clasen authored
      2006-05-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkpagesetupunixdialog.c (populate_dialog): Add labels
      	for page orientations, also add the fourth one.  (#339589)
      
      	* gtk/stock-icons/24/gtk-orientation-reverse-portrait.png: New
      	icon.
      
      	* gtk/Makefile.am: Add it here.
      
      	* gtk/gtkstock.[hc]: Add stock items for the page orientations.
      968149a9
  17. 14 May, 2006 1 commit
  18. 10 May, 2006 1 commit
  19. 04 May, 2006 1 commit
    • Alexander Larsson's avatar
      Added new symbols · c36d8f3c
      Alexander Larsson authored
      2006-05-04  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	Added new symbols
      
      	* gtk/gtkpagesetupunixdialog.c:
      	* gtk/gtkprintunixdialog.c:
      	Destroy backends when finalizing dialogs.
      	Fix printer leak in selected_printer_changed.
      
      	* gtk/gtkprintbackend.[ch]:
      	Convert from interface to baseclass.
      	Move printer hashtable here so that the baseclass can handle
      	the slightly complicated ownership model.
      	Add gtk_print_backend_destroy which runs the dispose method,
      	causing the ref-cycles between the backend and its printers
      	to be broken.
      	Add gtk_print_backend_unref_at_idle().
      
      	* gtk/gtkprinter.[ch]:
      	GtkPrinter objects now ref their backend so that its always
      	availible, since its needed for the printer object to work.
      	This causes a reference-cycle that is broken using
      	gtk_print_backend_destroy.
      	Add gtk_printer_compare.
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.c:
      	Implement !show_dialog for unix.
      	Make sure the print data is fully spooled before returning
      	from a sync run_dialog.
      
      
      	* modules/printbackends/cups/gtkcupsutils.[ch]:
      	Add gtk_cups_request_ipp_add_strings
      
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	* modules/printbackends/cups/gtkprintercups.c:
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	* modules/printbackends/pdf/gtkprintbackendpdf.c:
      	Convert backends to derive instead of implementing interface.
      	Move common code into baseclass.
      	CUPS:
      	  Remove the printer polling in dispose, not finalize.
      	  In the cups watch, remove the backend at idle instead of
      	  immediately, since the unref can cause the module to be unloaded.
      	  Limit the number of printer attributes requested
      	  Get printer uri in initial printer listing so that we can use
      	  the printer object immediately.
      
      	* tests/Makefile.am:
      	* tests/testnouiprint.c:
      	Add testcase for !show_dialog.
      c36d8f3c
  20. 03 May, 2006 1 commit
  21. 02 May, 2006 1 commit
    • Christian Persch's avatar
      Use a priv variable when accessing priv multiple times in the same · 061f2528
      Christian Persch authored
      2006-05-02  Christian Persch  <chpe@cvs.gnome.org>
      
      	* gtk/gtkpagesetupunixdialog.c:
      	* gtk/gtkprintcontext.c:
      	* gtk/gtkprinter.c:
      	* gtk/gtkprinteroptionwidget.c:
      	* gtk/gtkprintjob.c:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.c:
      	* gtk/gtkprintunixdialog.c: Use a priv variable when accessing priv
      	  multiple times in the same function. Bug #340288.
      061f2528
  22. 24 Apr, 2006 2 commits
    • Alexander Larsson's avatar
      Remove spew. · 5ead07e1
      Alexander Larsson authored
      2006-04-24  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkpagesetupunixdialog.c (update_combo_sensitivity_from_printers):
      	Remove spew.
      5ead07e1
    • Matthias Clasen's avatar
      Remove redundant code. · 16eadc82
      Matthias Clasen authored
      2006-04-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_get_page_setup):
      	Remove redundant code.
      16eadc82
  23. 23 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Add gtkprintutils.[hc] · 935482e3
      Matthias Clasen authored
      2006-04-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/Makefile.am: Add gtkprintutils.[hc]
      
      	* gtk/gtkprintutils.[hc]: New files, move the unit conversion
      	functions here.
      
      	* gtk/gtkpagesetupunixdialog.c:
      	* gtk/gtkprintsettings.c:
      	* gtk/gtkpagesetup.c:
      	* gtk/gtkpapersize.c: Replace all static copies of to_mm/from_mm
      	by the copies in gtkprintutils.c.
      
      	* gtk/gtkpagesetup.[hc]: Use g types, add documentation.
      935482e3
  24. 21 Apr, 2006 1 commit
    • Alexander Larsson's avatar
      Merge the gtk-printing branch. For more detailed ChangeLog entries, see · 27f746fb
      Alexander Larsson authored
      2006-04-21  Alexander Larsson  <alexl@redhat.com>
      
              Merge the gtk-printing branch.
      	For more detailed ChangeLog entries, see the branch.
      
      	* .cvsignore:
      	* Makefile.am:
      	* configure.in:
      	* docs/tools/widgets.c:
      	* gtk+-unix-print-2.0.pc.in:
      	* gtk/Makefile.am:
      	* gtk/gen-paper-names.c:
      	* gtk/gtk.h:
      	* gtk/gtk.symbols:
      	* gtk/gtkenums.h:
      	* gtk/gtkiconfactory.c:
      	* gtk/gtkmarshalers.list:
      	* gtk/gtkpagesetup.[ch]:
      	* gtk/gtkpagesetupunixdialog.[ch]:
      	* gtk/gtkpapersize.[ch]:
      	* gtk/gtkprint-win32.[ch]:
      	* gtk/gtkprintbackend.[ch]:
      	* gtk/gtkprintcontext.[ch]:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.[ch]:
      	* gtk/gtkprinteroption.[ch]:
      	* gtk/gtkprinteroptionset.[ch]:
      	* gtk/gtkprinteroptionwidget.[ch]:
      	* gtk/gtkprintjob.[ch]:
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation-win32.c:
      	* gtk/gtkprintoperation.[ch]:
      	* gtk/gtkprintsettings.[ch]:
      	* gtk/gtkprintunixdialog.[ch]:
      	* gtk/paper_names.c:
      	* gtk/paper_names_offsets.c:
      	Platform independent printing API and implementations
      	for unix and windows.
      
      	* gtk/gtkstock.h:
      	* gtk/stock-icons/24/gtk-orientation-landscape.png:
      	* gtk/stock-icons/24/gtk-orientation-portrait.png:
      	* gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
      	Add stock icons for page orientation.
      
      	* modules/Makefile.am:
      	* modules/printbackends/Makefile.am:
      	* modules/printbackends/cups/Makefile.am:
      	* modules/printbackends/cups/gtkcupsutils.[ch]:
      	* modules/printbackends/cups/gtkprintbackendcups.[ch]:
      	* modules/printbackends/cups/gtkprintercups.[ch]:
      
      	Cups printing backend for unix.
      
      	* modules/printbackends/lpr/Makefile.am:
      	* modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
      	lpr printing backend for unix.
      
      	* modules/printbackends/pdf/Makefile.am:
      	* modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
      	print-to-pdf printing backend for unix.
      
      	* tests/.cvsignore:
      	* tests/Makefile.am:
      	* tests/print-editor.c:
      	Test application for printing.
      
      	* gdk/gdk.symbols:
      	* gdk/win32/gdkevents-win32.c:
      	* gdk/win32/gdkwin32.h:
      	Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
      	mainloop while displaying a win32 common dialog.
      
      	* gdk/directfb/Makefile.am:
      	Whitespace cleanup.
      27f746fb