summaryrefslogtreecommitdiff
path: root/gtk/gtkprintbackend.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Stop using gtk_widget_show/hideMatthias Clasen2022-11-281-1/+1
| | | | | | | gtk_widget_set_visible and gtk_window_present are better alternatives, and calling gtk_widget_show on newly created widgets is no longer necessary anyway.
* Deprecate GtkDialogMatthias Clasen2022-10-291-0/+4
| | | | | GtkDialog is too flexible in terms of UI (headerbars vs action bar, etc), and has archaic APIs. It is time to retire it.
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+1
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* gtk: Use the new debug macrosMatthias Clasen2022-09-231-6/+3
|
* Remove all nicks and blurbs from param specsSophie Herold2022-05-111-3/+1
| | | | | | | | Those property features don't seem to be in use anywhere. They are redundant since the docs cover the same information and more. They also created unnecessary translation work. Closes #4904
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-2/+1
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* Clean up uses of gtk_toggle_button_get/set_activeMatthias Clasen2020-08-301-3/+2
| | | | | Replace all uses on check buttons by the corresponding check button api.
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-16/+16
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-13/+13
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-5/+5
|
* print backend: Fix list model handling in disposeMatthias Clasen2020-06-011-2/+14
| | | | | | | | | | | The print backends do some complicated dispose handling where the implementations call gtk_print_backend_destroy(). Our tests (in particular, the templates test) trigger situations where we use print backends after dispose, and they can't handle the printers listmodel being NULL at that time. So just remove the printers in dispose, keep the empty liststore until finalize.
* printbackend: Add a list model getterMatthias Clasen2020-05-311-0/+13
| | | | | Now that we have a list model for printers, we can start using it.
* printbackend: Use a list storeMatthias Clasen2020-05-311-71/+32
|
* Replace most remaining uses of container apiMatthias Clasen2020-05-111-8/+8
| | | | These are all on GtkBox or enumerating children.
* Use gtk_window_destroyMatthias Clasen2020-05-111-1/+1
| | | | | Replace calls to gtk_widget_destroy on windows with gtk_window_destroy.
* Drop the margin propertyMatthias Clasen2020-02-251-1/+4
| | | | Replace it with margin-start, -end, -top, -bottom throughout.
* label: Remove "line" from wrap propertiesTimm Bäder2019-09-091-1/+1
| | | | | The property names are "wrap" and "wrap-mode", so it doesn't make sense that the accessors refer to line_wrap and line_wrap_mode.
* gtk: rely on default marshallersChristian Hergert2019-05-301-3/+3
| | | | | | | | | | Similar to previous removals of g_cclosure_marshal_VOID__VOID we can remove other marshallers for which are a simple G_TYPE_NONE with single parameter. In those cases, GLib will setup both a c_marshaller and va_marshaller for us. Before this commit, we would not get a va_marshaller because the c_marshaller is set. Related to GNOME/Initiatives#10
* marshallers: ensure g_cclosure_marshal_VOID__VOIDv is usedChristian Hergert2019-05-291-2/+2
| | | | | | | If we set c_marshaller manually, then g_signal_newv() will not setup a va_marshaller for us. However, if we provide c_marshaller as NULL, it will setup both the c_marshaller (to g_cclosure_marshal_VOID__VOID) and va_marshaller (to g_cclosure_marshal_VOID__VOIDv) for us.
* Rename gtkprintbackend.h to gtkprintbackendprivate.hMatthias Clasen2019-05-261-2/+2
| | | | Follow the naming convention for private headers.
* entry, spin button: Drop redundant APIMatthias Clasen2019-02-281-2/+2
| | | | Avoid duplicating GtkEditable APIs. Port existing users.
* Stop using gtk_box_pack_endTimm Bäder2019-01-231-8/+8
| | | | It might soon go away!
* Add gtk_printer_get_hard_margins_for_paper_sizeAdrian Johnson2018-04-261-0/+18
| | | | | | | | to retreive paper size specific hard margins and use this to set the hard margins in the print context. (modified by Marek Kasik <mkasik@redhat.com>) https://bugzilla.gnome.org/show_bug.cgi?id=686109
* Add some debug output to print backend loadingMatthias Clasen2018-02-241-0/+14
|
* Convert print backends to use a GIOExtensionPointMatthias Clasen2018-02-181-213/+76
| | | | | | Use GIOModule and GIOExtensionPoint. This is the preferred way to define extensions these days, instead of manually implementing type modules.
* Remove gtkmodules.hMatthias Clasen2018-02-181-1/+0
| | | | | | We don't use these definitions anymore. Also clean up the docs wrt to modules.
* enums: Change GtkIconSize valuesMatthias Clasen2017-11-151-0/+1
| | | | | The new values are the ones we intend to keep. The old ones had duplicated meanings and nobody knew which one to take.
* image: Remove icon-size argument from icon settersMatthias Clasen2017-11-151-1/+1
| | | | | | | | Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size.
* box: Remove fill child propertyTimm Bäder2017-04-251-8/+8
| | | | GtkWidget:halign and GtkWidget:valign are sufficient
* box: Remove expand child propertyTimm Bäder2017-04-251-8/+8
| | | | GtkWidget already has hexpand/vexpand properties.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-1/+1
|
* box: Remove 'padding' child propertyTimm Bäder2016-10-161-10/+14
|
* gtk: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-2/+2
| | | | g_logv adds one for us already.
* Revert "print backend: Remove an unneeded variable"Matthias Clasen2015-09-141-1/+5
| | | | | | | This reverts commit 9ebebd48b00092446cdbeee03b49f149725c9868. This change broke the templates testcase, and I don't have time to poke at why, right now.
* print backend: Remove an unneeded variableMatthias Clasen2015-09-061-5/+1
| | | | The G_DEFINE_TYPE macros automate the parent_class handling.
* Avoid O(n²) walking of string arraysEmmanuele Bassi2015-07-161-11/+14
| | | | | | | | | | | | | | | "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.
* Trivial: Use a convenience macroMatthias Clasen2015-05-301-4/+1
| | | | | g_strstrip is less obscure than the two individual functions, so lets use it here.
* printing: Properly initialize auth_info in gtkprintbackend.cDariusz Gadomski2014-10-071-1/+1
| | | | | | | | auth_info should be a NULL-terminated array as it is used in e.g. g_strdupv invocations iterating over its elements until a NULL element is encountered. https://bugzilla.gnome.org/show_bug.cgi?id=737777
* Use secrets service for cups auth_infoAndre Heinecke2014-09-011-10/+36
| | | | | | | | | | | | | | 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
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Start migrating internals away from GtkStockWilliam Jon McCann2013-06-241-3/+3
|
* gtk: Add get_type() function declarations for private objectsBenjamin Otte2012-10-021-0/+2
| | | | | | | | | I'm adding a bunch of fixes for gcc complaining about -Wmissing-declarations. This set of patches makes private classes in gtk/*.c that use G_DEFINE_TYPE() safe by adding definitions for the get_type() function that can't be made static.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: clean up the private horrorMichael Natterer2011-10-221-0/+1
| | | | | | | | | | | - add gtkmodulesprivate.h and move stuff there from gtkprivate.h - add gtkprivate.c and move stuff there from gtkmain.c - add gtkwin32.c and move stuff there from gtkmain.c - don't redefine GTK_DATADIR and friends in gtkprivate.h - have _gtk_get_datadir() and friends on all platforms - remove the horrid hacks where gtkprivate.h can't be included, or must be included later due to redefinition of the compile-time directories
* gtkprintbackend: gtk_misc_set_alignment replacingDiego Celix2011-06-101-2/+4
| | | | | | | | Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkprintbackend.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
* Replace gtk_misc_set_padding() with GtkWidget:margin propertiesJavier Jardón2011-06-021-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=651605
* Add some missing symbols to the docsMatthias Clasen2011-02-081-1/+1
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-11-021-3/+4
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-3/+3
|