summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
Commit message (Collapse)AuthorAgeFilesLines
* print dialog: More baseline alignmentMatthias Clasen2016-02-211-1/+4
| | | | | Some places were missing the right valign setting to make baselines line up properly.
* print dialog: Fix layout preview drawingMatthias Clasen2016-02-031-0/+1
| | | | | Use the CSS name paper for this as well, and make sure Adwaita sets a color that makes the text visible in the dark theme as well.
* print dialog: Set a CSS nameMatthias Clasen2016-01-131-0/+6
| | | | The CSS name for GtkPrintUnixDialog is printdialog.
* Remove an unused variable declarationEmmanuele Bassi2015-11-101-1/+0
| | | | And the compiler warning that comes with it.
* print dialog: Avoid gtk_style_context_saveMatthias Clasen2015-11-101-18/+6
| | | | | | There was one more call to gtk_style_context_save here that I overlooked. We can get rid of it by just setting the element name on the drawing area.
* print dialog: Use an element name for rendering the paperMatthias Clasen2015-11-071-4/+2
| | | | | Use a transient node with name paper instead of a random collection of style classes for rendering the papers.
* Use standard cursor namesMatthias Clasen2015-07-261-5/+1
| | | | | | | This changes GTK+ to use gdk_cursor_new_from_name() with the 'standard' css names, instead of GdkCursorType. https://bugzilla.gnome.org/show_bug.cgi?id=652085
* GtkPrintUnixDialog: Use a better busy cursorMatthias Clasen2015-05-071-1/+5
|
* Remove a redundant constMatthias Clasen2015-03-221-1/+1
| | | | | const gchar const is still just const gchar, unless there's indirections in between.
* gtkprintunixdialog: Fix a potential g_object_unref(NULL) callPhilip Withnall2015-03-101-1/+1
| | | | | | | | | The code above checks whether (printer == NULL), so we’d better do so here as well. Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
* gtkprintcontext: Fix several potential g_object_[un]ref(NULL) callsPhilip Withnall2015-03-091-4/+4
| | | | | | | | | | The page_setup of a GtkPrintContext or GtkPrintUnixDialog is nullable, so all reference count changes to it have to be guarded against NULL values. Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
* Ensure print-related types are registeredMatthias Clasen2015-03-041-1/+6
| | | | | | | | These types are not covered by g_test_register_all_types, and having the types registered when a print dialog is used helps in cases where GTK+ is dlopened. https://bugzilla.gnome.org/show_bug.cgi?id=745065
* printing: Avoid missing iconsMatthias Clasen2014-10-041-2/+10
| | | | | | I've noticed a missing image show up in my print dialog, where the printer reported "printer-paused" as icon. Rearrange things so we always fall back to "printer" for printer icons.
* printing: Another tweak to sheet drawingMatthias Clasen2014-10-041-3/+3
| | | | | After consultation, revisit the vertical centering to center the first 'stack', and put the second one behind it.
* print: Add a .paper style classBenjamin Otte2014-10-041-0/+2
| | | | ... and use it in the print preview.
* printing: Simplify sheet drawingMatthias Clasen2014-10-041-24/+15
| | | | | We don't need the scaling support anymore - icon sizes are no longer settable.
* print: Center sheet drawing horizontallyMatthias Clasen2014-10-041-6/+7
| | | | | Center the page ordering indicator horizontally, relative to the spinbutton above it.
* print: Center sheet drawing verticallyMatthias Clasen2014-10-041-8/+26
| | | | | Center the page ordering indicator vertically, relative to the checkboxes next to it.
* print: Improve sheet drawing a bitBenjamin Otte2014-10-031-18/+6
| | | | | This is only one step in the right direction. Long term this code should probably be replaced by real widgets.
* gtk: Don't use GObjectClass.constructorJasper St. Pierre2014-06-261-12/+5
| | | | Use the newer constructed instead, which has a fast path in GObject.
* GtkPrintUnixDialog: Remove some dead codeMatthias Clasen2014-05-301-3/+0
| | | | | Automatic template children get cleaned up and NULLed out in destroy, the g_clear_pointer() calls in finalize never do anything.
* all: Name more idles and timeoutsBastien Nocera2014-03-261-0/+1
| | | | | | | | | | Following up from 438cd857c49242244dda2923ac447f36464b9e72, name more timeouts and idles. The original grep was missing checking for gdk_threads_add_*() functions (at least for some of the files). https://bugzilla.gnome.org/show_bug.cgi?id=726870
* printing: Fail nicely when /tmp is not writableMarek Kasik2014-03-171-1/+1
| | | | | | | Don't crash when /tmp is not writable when printing to file. Show that getting of printer details failed for CUPS printers. https://bugzilla.gnome.org/show_bug.cgi?id=693200
* printing: Fix sensitivity of the Print buttonMarek Kasik2014-02-211-0/+3
| | | | | | Don't make Print button sensitive until a printer is selected. https://bugzilla.gnome.org/show_bug.cgi?id=724895
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-1/+1
| | | | Instead of Return value:
* Fix a small memory leakMatthias Clasen2014-02-191-1/+5
| | | | | | GtkPrintUnixDialog was leaking a GFile. Spotted by Christian Persch in https://bugzilla.gnome.org/show_bug.cgi?id=724631
* Make print dialog destruction workMatthias Clasen2014-02-171-3/+10
| | | | This was also causing the templates test to fail.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-3/+3
|
* docs: Use markup for linksWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-4/+4
|
* docs: Use "#" for refsect2 instead of ##William Jon McCann2014-02-041-1/+1
|
* docs: Convert to markdownMatthias Clasen2014-02-021-21/+6
| | | | Specifically, switch to using markdown syntax for sections.
* docs: use |[ ]| instead of <programlisting></programlisting>William Jon McCann2014-01-291-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: don't use <emphasis>William Jon McCann2014-01-281-1/+1
| | | | It is a little heavy handed. The text can speak for itself.
* docs: use #*-struct instead of <structname>William Jon McCann2014-01-271-1/+1
|
* printing: Enable search through locations in printers listMarek Kasik2014-01-271-0/+87
| | | | | | | | | | Add printer_compare() function for comparing printers according to their names and locations. It is possible to search by multiple keys separated by space or tabulator using logical conjunction. Based on patch by William Hua. https://bugzilla.gnome.org/show_bug.cgi?id=692931
* printing: Show "Replace" button when printing to existing fileMarek Kasik2014-01-271-17/+5
| | | | | Use gtk_dialog_add_button() which adds the button to the message dialog correctly and uses gtk_widget_show() on it.
* resources: move resources into a subdirectoryWilliam Jon McCann2014-01-231-1/+1
|
* docs: fix links to print apiWilliam Jon McCann2014-01-211-1/+1
|
* print dialog: Use headerbarWilliam Jon McCann2014-01-171-6/+41
| | | | | | Make the print dialog use a headerbar when desired. https://bugzilla.gnome.org/show_bug.cgi?id=720059
* Update all internal users of alternative button orderMatthias Clasen2014-01-171-0/+2
| | | | | We'll keep this code around for now to not regress on Windows, but avoid deprecation warnings.
* gtkprintunixdialog: Remove a redundant (GFile != NULL) checkPhilip Withnall2013-12-021-2/+1
| | | | | | | | g_file_new_for_uri() is guaranteed to return a non-NULL value, so this check was redundant, and was confusing the static analyser into returning a false positive, where it thought the file could be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=712760
* Don't use depeprecated apiMatthias Clasen2013-12-011-1/+1
| | | | | | GtkPrintUnixDialog and testtitlebar were still using gtk_widget_set_margin_left/right. Switch them over to gtk_widget_set_margin_start/end.
* Do not reset the waiting_for_printer on status changeChenthill Palanisamy2013-11-051-0/+2
| | | | | | | | * gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the waiting_for_printer on status change as the default printer might get added later. https://bugzilla.gnome.org/show_bug.cgi?id=577642
* Fix dark theme issues in the print dialogMatthias Clasen2013-10-051-8/+17
| | | | | | | The dimensions in the n-up illustration were not using the color of the style for drawing. https://bugzilla.gnome.org/show_bug.cgi?id=709420
* Another round of template binding api changesMatthias Clasen2013-07-261-59/+59
| | | | | | | | | | | We rename the gtk_widget_class_bind_template_child{_internal} macros by appending a _private to their name. Otherwise, it would be too magic to pass the 'public' names as arguments, but affect a member of the Private struct. At the same time, Add two new macros with the old names, gtk_widget_class_bind_template_child{_internal} that operate on members of the instance struct.
* Rename the widget template APIEmmanuele Bassi2013-07-261-74/+74
| | | | | | | | | | | | | | | | | | | | The macros and functions are inconsistently named, and are not tied to the "template" concept - to the point that it seems plausible to use them without setting the template. The new naming scheme is as follows: gtk_widget_class_bind_template_child_full gtk_widget_class_bind_template_callback_full With the convenience macros: gtk_widget_class_bind_template_child gtk_widget_class_bind_template_child_internal gtk_widget_class_bind_template_callback https://bugzilla.gnome.org/show_bug.cgi?id=700898 https://bugzilla.gnome.org/show_bug.cgi?id=700896
* widget: Use a real offset in gtk_widget_class_automate_childAlexander Larsson2013-07-261-59/+59
| | | | | | | | | | Using an offset from the struct means you can have children in both the public and private (via G_PRIVATE_OFFSET) parts of the instance. It also matches the new private macros nicer. https://bugzilla.gnome.org/show_bug.cgi?id=702563 Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Drop some unnecessary includesMatthias Clasen2013-07-191-1/+0
| | | | | Drop includes of deprecated headers where they are no longer needed.
* Move wholly deprecated classes to gtk/deprecated/Matthias Clasen2013-07-191-1/+1
| | | | | | | | | | | | | | | | | | We've recently a number of classes wholly. For these cases, move the headers and sources to gtk/deprecated/ and adjust Makefiles and includes accordingly. Affected classes: GtkAction GtkActionGroup GtkActivatable GtkIconFactory GtkImageMenuItem GtkRadioAction GtkRecentAction GtkStock GtkToggleAction GtkUIManager