summaryrefslogtreecommitdiff
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Use upstream gettextJavier Jardón2016-05-161-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=373745
* Add a comment to explain numbers hereMatthias Clasen2016-04-191-0/+1
| | | | This explains the change in the previous commit.
* cups: Fix duplicate stringPiotr Drąg2016-04-191-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=765122
* cups: Fix gettext usageBastien Nocera2016-04-161-13/+8
| | | | | | | | | | | The previous patches didn't mark some strings as to be translated, and tried to translate strings with a variable part already inside the string, which isn't going to work. Mark the strings as translatable with context, and also make sure to translate static strings when getting them out of their structure. https://bugzilla.gnome.org/show_bug.cgi?id=764585
* cups: make string non-literals translatable againFelipe Borges2016-04-141-1/+1
| | | | | | Notice that C_ just takes string literals as arguments. https://bugzilla.gnome.org/show_bug.cgi?id=764585
* cups: Fix more "format not a string literal" errorFelipe Borges2016-04-131-13/+48
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=764585
* cups: Fix "format not a string literal" errorBastien Nocera2016-04-051-22/+68
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=764585
* printing: Add message contextsMatthias Clasen2016-02-161-49/+72
| | | | | | Some of the translated strings in the cups printbackend are short and generic and might occur in other contexts. Give them disambiguating message contexts to avoid translation problems.
* CJK Windows: Silence gtk_style_context_set_state() warningsChun-wei Fan2016-01-081-1/+8
| | | | | | | | | | | | | | | | | We need to update calls to gtk_style_context_set_state() in gtkimcontextime.c, so that the state passed into that function would be in line with what GtkStyleContext expects, due to updates in the CSS machinery, as outlined in this link[1], which is based on information in in Matthias' blog[2]. Doing so will silence the gtk_style_context_set_state() warnings, which is emitted when a widget uses gtkimcontext on Windows with CJK IME, which will in turn call gtkimcontextime. [1]: http://feaneron.com/2016/01/04/quick-guide-to-port-an-app-for-gtk-3-20/ [2]: https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ https://bugzilla.gnome.org/show_bug.cgi?id=760314
* printing: always propagate Collate valueFelipe Borges2016-01-061-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=728344
* Bug 753992 - im-quartz discard_preedit segmentation faultJohn Ralls2015-10-031-12/+7
| | | | | | Replace checking if the NSView is really a GdkWindow, which will crash in the likely event it's not a GObject, with ensuring that the parent GdkWindow is really a GdkWindowQuartz.
* Don't mix in user options of printer instancesMichael Weghorn2015-09-241-3/+0
| | | | | | | | | | GTK+ currently does not support printer instances in the printing dialog. This commit avoids user options set for specific instances of a printer being accidently applied to the printer with the same name but no specific instance defined. https://bugzilla.gnome.org/show_bug.cgi?id=753628 https://bugzilla.gnome.org/show_bug.cgi?id=582747
* Improve printer distinction for option retrievalMichael Weghorn2015-09-111-1/+1
| | | | | | | | | | | In order to retrieve the user options for a printer, the respective printer name is used. This fixes the comparison of printer names to avoid that the options of another printer are accidently read whose name starts with the same letters, but is longer (e.g. "myprinterlongername" instead of "myprinter"). This fixes Bug 753628.
* multipress: Only emit preedit signals if neededMatthias Clasen2015-08-181-3/+6
| | | | | | | | When clearing the compose buffer, don't emit preedit-changed unconditionally. This triggers a recursion which leads to a crash. https://bugzilla.gnome.org/show_bug.cgi?id=753644
* cups: Annotate a call whose return value we don't care aboutMatthias Clasen2015-07-171-1/+1
| | | | | We're closing this fd, but we're not going to do anything else if that fails. Annotate to let coverity see this.
* Avoid O(n²) walking of string arraysEmmanuele Bassi2015-07-161-2/+3
| | | | | | | | | | | | | | | "Yo, we heard you like traversing NULL-terminated arrays to operate on them, so we called g_strv_length() as the for condition, so you can iterate the array while iterating the array." Instead of making famed rapper and television producer Xzibit proud, we should avoid calling g_strv_length() on an array while looping on the array, to avoid quadratic complexity. We do this in various places that deal with arrays of strings that we cannot really guess are short enough not to matter — e.g. the list of CSS selectors in the inspector, or the required authentication information for printing.
* printing: Get output bin via IPPMarek Kasik2015-06-233-11/+135
| | | | | | | | | Request "output-bin-supported" and "output-bin-default" attributes through IPP if there is no PPD for selected printer. Pass "output-bin" option with other options in printer_get_options(). Translate standard IPP values of "output-bin" option. https://bugzilla.gnome.org/show_bug.cgi?id=725441
* printing: Fix compiler warningsMatthias Clasen2015-06-023-47/+32
| | | | Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
* printing: Check connection to remote CUPS server on correct portMarek Kasik2015-05-133-6/+13
| | | | | | | Add parameter for specification of port to gtk_cups_connection_cups_new(). Use default port returned by ippPort() if the given port is lower than 0. https://bugzilla.gnome.org/show_bug.cgi?id=693738
* Prevent empty password request popup for kerberosAndre Heinecke2015-03-091-2/+18
| | | | | | | | | If auth_info_required is only set to "negotiate" the request password dialog is shown anyway for each print job without any input fields. As the request_password dialog only handles username, password and domain. https://bugzilla.gnome.org/show_bug.cgi?id=669008
* printing: Set printer state correctlyMarek Kasik2015-03-021-2/+5
| | | | | | | Consider NULL printer state message as empty too. Printer state IPP_PRINTER_STOPPED can be considered as paused state. https://bugzilla.gnome.org/show_bug.cgi?id=743323
* printing: Always get details of Avahi printers via IPPMarek Kasik2015-02-251-30/+33
| | | | | | | | Request details of Avahi browsed printers even when we've got their PPDs already. Some options are not present in PPD. https://bugzilla.gnome.org/show_bug.cgi?id=743323
* printing: Get covers for each printer individuallyMarek Kasik2015-02-253-26/+31
| | | | | | | | Since we combine Avahi browsed printers and printers of local CUPS in one backend we need to get covers for each printer separately. https://bugzilla.gnome.org/show_bug.cgi?id=743323
* Make gtk-im-context-none workMatthias Clasen2015-02-2314-15/+15
| | | | | | | | | This was added a few years ago, as a way to have _no_ im context at all. But it didn't actually work. Make it work, and streamline the handling of none by moving it all to gtkimmodule.c. As part of this, add context to the translated names of all im modules we ship.
* printing: Use correct units for margins taken via IPPMarek Kasik2015-02-201-4/+4
| | | | | cups_printer_get_hard_margins() returned margins in millimeters for margins taken via IPP request instead of Units used before.
* Properly check result of g_utf8_get_char_validated()Maks Naumov2015-01-111-1/+1
| | | | | | | | | | | | g_utf8_get_char_validated() may return -1 or -2 return type is gunichar(guint32) Therefore such checks like 'gunichar < 0' or 'gunichar > 0' are always 'false' or 'true'(except when gunichar == 0). Signed-off-by: Maks Naumov <maksqwe1@ukr.net> https://bugzilla.gnome.org/show_bug.cgi?id=742774
* Prevent double-free after 8b5d30d43.John Ralls2014-12-241-3/+0
|
* printing: Fix build with CUPS older than 1.6Marek Kasik2014-11-271-0/+19
| | | | | | | Define missing functions ippFirstAttribute(), ippNextAttribute() and macro ippGetCollection(). These were added in CUPS 1.6. https://bugzilla.gnome.org/show_bug.cgi?id=740358
* Remove overzealous validity check for secretsAndre Heinecke2014-11-251-3/+2
| | | | | | | | | | We directly get the length of the secret from the g_variant and use it in a following g_strndup which ensures that the resulting string is terminated. This fixes reading secrets which were stored by system-config-printer. https://bugzilla.gnome.org/show_bug.cgi?id=740612
* Get media-col-default attribute correctlyMarek Kasik2014-10-161-1/+1
| | | | | | | Fix a typo which caused that "number-up-supported" and "media-col-default" IPP attributes were not requested correctly. https://bugzilla.gnome.org/show_bug.cgi?id=725441
* Get duplex option via IPPMarek Kasik2014-10-133-21/+276
| | | | | | | | | | | | Request "sides-supported" and "sides-default" attributes through IPP if there is no PPD for selected printer. Pass "sides" option with other options in printer_get_options(). Add function setup_ipp_option() for creating of IPP option of given name with passed choices and default value. Mark such an option as "is-ipp-option" so we can distinguish it later. https://bugzilla.gnome.org/show_bug.cgi?id=725441
* Get paper sizes from IPP queryMarek Kasik2014-10-103-65/+360
| | | | | | | | | | Query printer via IPP for paper sizes if there is no or empty PPD file. Parse "media-supported" and "media-size-supported" attributes for list of paper sizes. Parse "media-default" and "media-col-default" attributes for default settings. https://bugzilla.gnome.org/show_bug.cgi?id=725441
* Remove dead code from CUPS backendMarek Kasik2014-10-101-133/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=725441
* imcontextxim: Remove broken custom drawing codeBenjamin Otte2014-10-031-32/+0
| | | | Just use regular GtkWindow styling instead.
* Remove redundant checks for NULLMarek Kasik2014-10-021-2/+1
| | | | | | | | Remove checks for NULL before g_free() and g_clear_object(). Merge check for NULL, freeing of pointer and its setting to NULL by g_clear_pointer(). https://bugzilla.gnome.org/show_bug.cgi?id=733157
* printing: Better typographyMatthias Clasen2014-09-291-16/+16
| | | | | | Use U+201C/U+201D for quoting. https://bugzilla.gnome.org/show_bug.cgi?id=735192
* Printing: Better typographyMatthias Clasen2014-09-291-1/+1
| | | | | | Use U+007D MULTPLICATION SIGN for dimensions. https://bugzilla.gnome.org/show_bug.cgi?id=735192
* build: Set no_undefined in Makefile.declРуслан Ижбулатов2014-09-157-27/+1
| | | | | | | This simplifies the code and - more importantly - fixes the cases like in testsuite/reftests where the no_undefined definition was missing. https://bugzilla.gnome.org/show_bug.cgi?id=736382
* Use secrets service for cups auth_infoAndre Heinecke2014-09-014-10/+1250
| | | | | | | | | | | | | | When a printer requires auth_info (e.g. a printer connected over the samba protocol) it is now possible to save the credentials necessary for printing if a secrets service is available over dbus. The auth_info is then stored / loaded from the default collection of that secrets service. If no such service is available the user is not shown the option to remember the password and the behavior remains the same as before. https://bugzilla.gnome.org/show_bug.cgi?id=674264
* Use AC_USE_SYSTEM_EXTENSIONS to get _GNU_SOURCE, _XOPEN_SOURCE etc.Simon McVittie2014-08-211-4/+0
| | | | | | | | Similar to Bug #684123 in GLib. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=641638 Bug-Debian: https://bugs.debian.org/756476 Reviewed-by: Matthias Clasen
* Fix various warnings about unused thingsРуслан Ижбулатов2014-08-131-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=734735
* Bug 729924 - Crash trying to print in OSXJohn Ralls2014-08-031-21/+28
| | | | | We should only use the PageSize option from the ppd if it actually exists.
* docs: Change documentation to consistenly use "Returns:"Javier Jardón2014-07-103-3/+3
| | | | Instead "Return value:" or "Return:"
* inspector: stop being a moduleMatthias Clasen2014-05-1444-6132/+1
| | | | | | | | Moving the inspector into libgtk lets use reuse internals without having to add public API for everything or inventing awkward private call conventions. https://bugzilla.gnome.org/show_bug.cgi?id=730095
* inspector: Show text view subobjects in the treeMatthias Clasen2014-05-131-3/+47
|
* Inspector: Fix make distRico Tzschichholz2014-05-131-2/+4
|
* inspector: Fix button path placementMatthias Clasen2014-05-101-0/+1
|
* inspector: Add a visual tabMatthias Clasen2014-05-108-85/+326
| | | | | Move the show updates and flip text direction controls here, and add controls for baseline and pixel cache debugging.
* Add data-list.ui to list of templatesMatthias Clasen2014-05-101-9/+10
|
* inspector: Add minimal signal tracingMatthias Clasen2014-05-103-51/+312
| | | | | Add rudimentary signal tracing. The signals tab can now count signal emissions for all signals of the current object.