| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Replace all uses of gtk_show_uri
with GtkFileLauncher.
|
|
|
|
|
|
|
|
|
| |
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
|
|
|
|
|
| |
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We were sometimes ending printer enumeration prematurely,
and the code was confused about the meaning of found_printer.
The new setup follows these rules:
- We *only* end the search prematurely if found_printer
is set, which indicates that we found the right printer
- We *always* call find_printer_idle exactly once, and
make it return less than perfect matches like the
default printer, or the first printer we found
Fixes: #4439
|
|
|
|
| |
Replace leftover gtk-doc syntax (#Type) with backquotes.
|
|
|
|
|
|
|
|
| |
Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.
This adds a few missing nullable annotations too.
|
|
|
|
|
| |
allow-none has been deprecated for a long time
already. Instead use optional and nullable everywhere.
|
|
|
|
|
| |
Mostly fixing up indentation of continuation lines,
and other small cleanups.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It turns out that finish_print destroys the
PrintResponseData, so we can't access it afterwards.
|
|
|
|
| |
The gtk_window_present() function is not deprecated.
|
|
|
|
| |
We still provide a blocking API, but we should strongly reconsider it.
|
|
|
|
|
| |
Replace calls to gtk_widget_destroy on windows
with gtk_window_destroy.
|
|
|
|
| |
We were only handling the error in one place anyway.
|
|
|
|
| |
Follow the naming convention for private headers.
|
|
|
|
| |
Avoid compilation warnings about internal users of gtk_window_present().
|
|
|
|
|
| |
We want to use it there too, in the future.
Update all callers.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GDK has a lock to mark critical sections inside the backends.
Additionally, code that would re-enter into the GTK main loop was
supposed to hold the lock.
Back in the Good Old Days™ this was guaranteed to kind of work only on
the X11 backend, and would cause a neat explosion on any other GDK
backend.
During GTK+ 3.x we deprecated the API to enter and leave the critical
sections, and now we can remove all the internal uses of the lock, since
external API that uses GTK+ 4.x won't be able to hold the GDK lock.
https://bugzilla.gnome.org/show_bug.cgi?id=793124
|
|
|
|
| |
No deprecated api used in here, it seems.
|
|
|
|
| |
It is not necessary.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes that work using 1 of 2 options:
1. Add all missing enums to the switch statement
or
2. Cast the switch argument to a uint to avoid having to do that (mostly
for GdkEventType).
I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.
The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=778726
|
|
|
|
|
|
|
| |
Make GtkPrintOperation talk to org.freedesktop.portal.Print when
running in a sandbox.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
|
|
|
|
| |
g_logv adds one for us already.
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Instead of Return value:
|
| |
|
|
|
|
|
|
| |
These are just wrappers for the functions, and we want to
deprecate them. Stopping to use them internally is a good
first step.
|
| |
|
|
|
|
|
| |
Now that GLib provides these macros, we should use them
to make the code more readable.
|
| |
|
| |
|
|
|
|
|
|
| |
These functions were trivial g_spawn wrappers in all backends
except for X11, and they can be easily replaced by
g_app_info_create_for_commandline + GdkAppLaunchContext.
|
|
|
|
| |
Replace the sole use of gdk_spawn in GTK+ by GAppInfo.
|
|
|
|
|
|
|
|
|
| |
custom-widget-apply signal
So that custom settings can be added from the custom-widget-apply
callback.
https://bugzilla.gnome.org/show_bug.cgi?id=637069
|
|
|
|
| |
Also add accessors for these members, and use them in print backends.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=623845
|
|
|
|
|
|
|
| |
Remove message dialogs showing an error when printing. Return
GTK_PRINT_OPERATION_RESULT_ERROR and set error in such a case.
Also return GTK_PRINT_OPERATION_RESULT_CANCEL when cancelled.
Do it for synchronous and asynchronous cases (#549127).
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
The problem was reported in bug 606698.
|
|
|
|
|
| |
There's no printer when doing print preview so it's not possible to get
its hard margins.
|
|
|
|
|
|
|
|
| |
The Gtk-custom.c file in gir-repository contained a number of
introspection annotations. Merge those into the GTK source files.
Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
|