summaryrefslogtreecommitdiff
path: root/gtk/gtkpagesetupunixdialog.c
Commit message (Collapse)AuthorAgeFilesLines
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* GtkPageSetupUnixDialog: replace GtkTable by GtkGridMatthias Clasen2011-08-281-283/+268
|
* gtkpagesetupunixdialog: gtk_misc_set_alignmentDiego Celix2011-06-101-4/+8
| | | | | | | | Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkpagesetupunixdialog.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
* More include cleanupsMatthias Clasen2011-06-071-4/+0
|
* GtkPageSetupUnixPrintDialog: remove an unneeded includeMatthias Clasen2011-06-071-1/+0
|
* Kill one more unused variableMatthias Clasen2011-01-231-2/+0
|
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-2/+2
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-11-021-1/+1
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-1/+1
|
* Assign all g_signal_connect() and friends to gulong variablesAlberto Garcia2010-10-221-1/+1
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
* Remove separators from dialogsMatthias Clasen2010-09-021-1/+0
| | | | | It seems more reasonable to remove this feature than to keep fighting off every separator that pops up by accident in a dialog.
* gtkpagesetupunixdialog: unseal private pointerJavier Jardón2010-07-131-5/+4
|
* Use accessor functions to access GtkDialogJavier Jardón2010-07-131-4/+8
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-5/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Move documentation to inline comments: GtkPageSetupUnixDialogJavier Jardón2010-05-131-0/+15
|
* [annotations] Add allow-noneJohan Dahlin2010-02-191-2/+2
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Fix declaration of gtk_print_job_set_statusMatthias Clasen2010-01-171-1/+0
| | | | The problem was reported in bug 606698.
* g_strdup_print does not exist, the function is g_strdup_printf.Xan Lopez2009-07-201-1/+1
|
* Remove markup from translatable stringsMatthias Clasen2009-07-201-10/+12
| | | | Pointed out in bug 588964. String change !
* Add paper size combo and orientation combo to print dialogMarek Kasik2009-07-101-894/+25
| | | | | | | | | | | | | | | | | | | | | 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.
* RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" sizeMatthias Clasen2008-05-211-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make the labels left-aligned, and remove an obsolete event box. BugChristian Persch2008-01-061-15/+12
| | | | | | | | | 2008-01-06 Christian Persch <chpe@gnome.org> * gtk/gtkpagesetupunixdialog.c: Make the labels left-aligned, and remove an obsolete event box. Bug #506760. svn path=/trunk/; revision=19318
* added alternative button order in Print and Page Setup dialogs.Yevgen Muntyan2007-12-071-0/+4
| | | | | | | | | | | 2007-12-07 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkprintunixdialog.c: * gtk/gtkpagesetupunixdialog.c: added alternative button order in Print and Page Setup dialogs. svn path=/trunk/; revision=19126
* Port to use new tooltips API. (#451397, Jan Arne Petersen)Matthias Clasen2007-07-241-8/+2
| | | | | | | | | | | | | 2007-07-24 Matthias Clasen <mclasen@redhat.com> * gtkcolorsel.c: * gtkfilechooserdefault.c: * gtkpagesetupunixdialog.c: * gtkprintunixdialog.c: Port to use new tooltips API. (#451397, Jan Arne Petersen) svn path=/trunk/; revision=18539
* missing #include <ctype.h>.Yevgen Muntyan2007-05-231-1/+0
| | | | | | | | | | | | | | | | | | | 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
* Rename gtk_paper_size_get_builtins() to gtk_paper_size_get_paper_sizes()Matthias Clasen2007-04-301-6/+26
| | | | | | | | | | | | | | | | | | | 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
* Add a new error codeMatthias Clasen2007-04-291-51/+3
| | | | | | | | | | | | | | | | | | | | | 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
* Free the custom paper list. (#403267, Felix Riemann)Matthias Clasen2007-04-291-0/+6
| | | | | | | | | | | 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
* Make gtk_printer_has_details() and gtk_printer_request_details() public.Matthias Clasen2007-04-291-4/+4
| | | | | | | | | | | | | | | | | 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
* Fix mem leaks. Bug #389194.Christian Persch2006-12-251-0/+2
| | | | | | | 2006-12-25 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkpagesetupunixdialog.c: (printer_status_cb), (add_custom_paper): Fix mem leaks. Bug #389194.
* Make gtk_printer_list_papers public. Bug #345587.Christian Persch2006-12-241-1/+1
| | | | | | | | | | | 2006-12-24 Christian Persch <chpe@cvs.gnome.org> * docs/reference/gtk/gtk-sections.txt: * gtk/gtk.symbols: * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer): * gtk/gtkprinter-private.h: * gtk/gtkprinter.c: (gtk_printer_list_papers): * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
* Don't ignore reverse portrait option when is selected in page setupCarlos Garcia Campos2006-12-241-2/+5
| | | | | | 2006-12-24 Carlos Garcia Campos <carlosgc@gnome.org> * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option when is selected in page setup dialog. Fixes bug #365047.
* Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)Matthias Clasen2006-10-031-1/+1
| | | | | | | 2006-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)
* Fix 344867Matthias Clasen2006-06-141-106/+81
|
* Cosmetic cleanups.Matthias Clasen2006-06-121-3/+6
| | | | | | | | | 2006-06-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c: * gtk/gtkprintbackend.c: * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintunixdialog.c: Cosmetic cleanups.
* Add docsMatthias Clasen2006-06-011-72/+136
|
* Remove request_details_tag with g_signal_handler_disconnect, notAlexander Larsson2006-05-311-4/+28
| | | | | | | | 2006-05-31 Alexander Larsson <alexl@redhat.com> * gtk/gtkpagesetupunixdialog.c: Remove request_details_tag with g_signal_handler_disconnect, not g_source_remove. (#343475)
* Don't run the custom page size dialog. (#340444, Christian Persch)Matthias Clasen2006-05-311-43/+56
| | | | | | | 2006-05-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpagesetupunixdialog.c: Don't run the custom page size dialog. (#340444, Christian Persch)
* Add labels for page orientations, also add the fourth one. (#339589)Matthias Clasen2006-05-161-24/+41
| | | | | | | | | | | | | | 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.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Don't include langinfo.h unconditionally. (#341217)Matthias Clasen2006-05-101-0/+3
| | | | | | | 2006-05-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpagesetupunixdialog.c: Don't include langinfo.h unconditionally. (#341217)
* Added new symbolsAlexander Larsson2006-05-041-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Beautify the custom paper size dialog. (#339590, patch by ChristianMatthias Clasen2006-05-031-141/+104
| | | | | | | 2006-05-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpagesetupunixdialog.c: Beautify the custom paper size dialog. (#339590, patch by Christian Persch)
* Use a priv variable when accessing priv multiple times in the sameChristian Persch2006-05-021-128/+146
| | | | | | | | | | | | | | 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.
* Remove spew.Alexander Larsson2006-04-241-1/+0
| | | | | | | 2006-04-24 Alexander Larsson <alexl@redhat.com> * gtk/gtkpagesetupunixdialog.c (update_combo_sensitivity_from_printers): Remove spew.
* Remove redundant code.Matthias Clasen2006-04-241-2/+0
| | | | | | | 2006-04-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_get_page_setup): Remove redundant code.
* Add gtkprintutils.[hc]Matthias Clasen2006-04-231-47/+7
| | | | | | | | | | | | | | | | | 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.
* Merge the gtk-printing branch. For more detailed ChangeLog entries, seeAlexander Larsson2006-04-211-0/+2016
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.