Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c0ea568364 | |||
| fc7bd3870d | |||
|
|
438b19a0d6 | ||
|
|
e363bff72c | ||
|
|
cc6e67e99d | ||
|
|
4f5613207a | ||
|
|
4b739a2900 | ||
|
|
dba798cc14 | ||
|
|
0ca196eb01 | ||
|
|
9ab1378b32 | ||
|
|
4ffcb9ba06 | ||
|
|
5aff3601fe | ||
|
|
d128c9efde | ||
|
|
7c83c8ec9c | ||
|
|
5194f8580e | ||
|
|
4bc15d8993 | ||
| 59bb0f4bc3 | |||
| 8811f9398a | |||
| 779ff372ec | |||
| ebfa96e7b0 | |||
| 545cc8e109 | |||
|
|
b54e2e6150 | ||
|
|
278bfcecd4 | ||
| 50c1160403 | |||
| 48d463fc63 | |||
| 5e0672af7d | |||
|
|
3ec9341d19 | ||
| d666b46c9e | |||
| a02c3d7a0e | |||
| 325c1bd6c9 | |||
| 62b890820c | |||
| f15a4c6160 | |||
| f8ba1ea507 | |||
| 67ca31e04d | |||
| fa307cbc3d | |||
| de062c3034 | |||
| e289f105ae | |||
| 2bb67cb1db | |||
| 81b3cb9331 | |||
| f1737316ef | |||
| 71e0fbadc5 | |||
| 1261be3bb9 | |||
| 0c7c29afd2 | |||
| 536ba57b78 | |||
| fdaa60375e | |||
| 13c769d061 | |||
| 2635ef3607 | |||
| 096d05ce30 | |||
| af6636eb99 | |||
| 15572c97b4 | |||
| d5f3df6c62 | |||
| 1a34671a55 | |||
| cfedad83f3 | |||
| 118f0599cd | |||
| 560f16f57a | |||
| 5497f8b930 | |||
| 2182e32fbe | |||
| 5535aae7dd | |||
| 199d518891 | |||
| 0efb4ad12b | |||
| 1129874931 | |||
| 7af5e1c56a | |||
| 2a54f6b728 | |||
| a2a8d06463 | |||
| ae3b69e999 | |||
| 1bd6505c33 | |||
| 595b501f5c | |||
| cf6fe11eaa | |||
| 89715a244f | |||
| ba225c4fd5 | |||
| 1ccd4766cb | |||
| 7dfbedc95a | |||
| 497516e048 | |||
| e775ab6988 | |||
| aa4a49d64d | |||
| b351f01199 | |||
| ca7612ee56 | |||
| 49859a06e4 | |||
| d1e1f860b4 | |||
| 83efcd3028 | |||
| a43e618bcc | |||
| 8a7d7d63af | |||
| 96967d992d | |||
| 3868d3fda1 | |||
| 745eeb1e75 | |||
| 4db7ecd05a | |||
| 18adfbcd8e | |||
| 2f437f6303 | |||
| 336e85d4dc | |||
| 208454a88b | |||
| 74e1de5781 | |||
| eff8d4e701 | |||
| 6f8f38be6e | |||
| c891dc254b | |||
| 73d1d41dd5 | |||
| ccf41dea90 | |||
| f94ee6bf74 | |||
| 0949de1f43 | |||
| 203a840474 | |||
| e85dcbd9d7 | |||
| 2843df4163 | |||
| 3c14d09004 | |||
| 9a19eb099b | |||
| 622733c215 | |||
| 620daefb53 | |||
| 95b61f9f5a | |||
| c5ba66cd42 | |||
| d07415153d | |||
| 1123c0e3a2 | |||
| b33e3dafb0 | |||
| 500436f324 | |||
| 9b8b68ec1c | |||
| 59f69e07d9 | |||
| a42887b04c | |||
| 1c3178ba15 | |||
| 1ced167a6a | |||
| bfc6b64c70 | |||
| 9f9b95621f | |||
| 12c51e6d9d | |||
| ee94edd0dc | |||
| efb5d7ea2b | |||
| 21de53f40c | |||
| b94401f53e | |||
| 919afa280d | |||
| 35cf32e0c5 | |||
| 248ee64289 | |||
| 4d067bbd72 | |||
| dd687e7c71 | |||
| 5a82ada8c5 | |||
| c8338505ae | |||
| 4b5872298e | |||
| 7e9fb7ce53 | |||
| 00a6b9955b | |||
| b751584a81 | |||
| feeacb33bc | |||
| 1a553bb48d | |||
| c3147531d9 | |||
| 7c42e6ae0f |
122 changed files with 818 additions and 1563 deletions
89
HACKING
89
HACKING
|
|
@ -1,64 +1,45 @@
|
|||
If you want to hack on the GTK+ project, you'll need to have
|
||||
the following packages installed:
|
||||
**Hacking gtk2-ng**
|
||||
|
||||
- GNU autoconf 2.54
|
||||
- GNU automake 1.7
|
||||
- GNU libtool 1.4
|
||||
- indent (GNU indent 1.9.1 is known good)
|
||||
- GNU gettext 10.40
|
||||
Note:
|
||||
When this document was first created back in the day, "hacking" meant to
|
||||
modify code to do new and interesting things, not quite the same as the
|
||||
more sinister meaning it has taken on today. It is in the spirit of the
|
||||
original meaning that this newly revised document has been updated.
|
||||
|
||||
These should be available by ftp from ftp.gnu.org or any of the
|
||||
fine GNU mirrors. Beta software can be found at alpha.gnu.org.
|
||||
Full list of Daemonratte's projects:
|
||||
https://git.devuan.org/Daemonratte
|
||||
|
||||
Up-to-date instructions about developing GNOME applications and libraries
|
||||
can be found here:
|
||||
We welcome all contributions to the project! And the best way to make that
|
||||
happen is to first clone the main gtk2-ng repo at :
|
||||
https://git.devuan.org/Daemonratte/gtk2-ng
|
||||
|
||||
http://developer.gnome.org
|
||||
To make a pull request or report a bug, you'll need to register an account
|
||||
at: https://git.devuan.org
|
||||
|
||||
Information about using git with GNOME can be found here:
|
||||
Got some ideas or a feature request? You can also make an account at:
|
||||
https://devuanusers.com and join in the discussions here:
|
||||
https://devuanusers.com/forum-gtk2-revival-project--12
|
||||
|
||||
http://live.gnome.org/Git
|
||||
Cloning the git repo to your local computer is a great way to experiment
|
||||
and test results, you'll need to be familiar with git commands and first
|
||||
need to install the build dependencies:
|
||||
|
||||
In order to get GIT gtk+ installed on your system, you need to have
|
||||
the most recent GIT versions of glib, pango, and atk installed as well.
|
||||
The installation process of these libraries is similar to that of gtk+, but
|
||||
needs to be fulfilled prior to installation of gtk+.
|
||||
# yad build-essential git libcups2-dev gettext autopoint
|
||||
# autoconf automake libtool pkg-config gtk-doc-tools gobject-introspection
|
||||
# libglib2.0-dev libpango1.0-dev libatk1.0-dev libcairo2-dev libgdk-pixbuf-2.0-dev
|
||||
# libfontconfig1-dev libfreetype-dev libharfbuzz-dev libfribidi-dev libpng-dev
|
||||
# libx11-dev libxext-dev libxrender-dev libxrandr-dev libxcursor-dev
|
||||
# libxinerama-dev libxi-dev libxfixes-dev libxcomposite-dev libxdamage-dev
|
||||
|
||||
If at all possible, please use GIT to get the latest development version of
|
||||
gtk+ and glib. You can do the following to get glib and gtk+ from GIT:
|
||||
There are build scripts (Linux) to help automate the process and do local testing
|
||||
side-by-side against current versions of gtk2, you can find them here:
|
||||
https://git.devuan.org/greenjeans/gtk2-ng-test-scripts
|
||||
|
||||
$ git clone git://git.gnome.org/glib
|
||||
$ git clone git://git.gnome.org/pango
|
||||
$ git clone git://git.gnome.org/atk
|
||||
$ git clone git://git.gnome.org/gtk+
|
||||
And if you just want to do some simple testing there's an easy way to do
|
||||
that without having to do a lot of building/installing, a special test-iso
|
||||
with the above scripts already installed to automate everything, that you
|
||||
can run in a live-session or a VM, or also install if you have a partition
|
||||
to spare:
|
||||
https://sourceforge.net/projects/vuu-do/files/Vuu-do-5.03/5.03-gtk2ng-testing/
|
||||
|
||||
Note: if you plan to push changes to back to the master repository and
|
||||
have a gnome account, you want to use the following instead:
|
||||
|
||||
$ git clone ssh://<username>@git.gnome.org/git/gtk+
|
||||
|
||||
To compile the GIT version of gtk+ on your system, you will need to take
|
||||
several steps to setup the tree for compilation. You can do all these
|
||||
steps at once by running:
|
||||
|
||||
gtk+$ ./autogen.sh
|
||||
|
||||
Basically this does the following for you:
|
||||
|
||||
gtk+$ aclocal; automake; autoconf
|
||||
|
||||
The above commands create the `configure' script. Now you
|
||||
run the `configure' script in `gtk+/' to create all Makefiles.
|
||||
More information about that in `INSTALL'.
|
||||
|
||||
Before running `autogen.sh' or `configure', make sure you have libtool
|
||||
in your path.
|
||||
|
||||
Note that autogen.sh runs configure for you. If you wish to pass
|
||||
options like `--prefix=/usr' to `configure' you can give those options
|
||||
to `autogen.sh' and they will be passed on to `configure'.
|
||||
|
||||
For information about submitting patches and pushing changes
|
||||
to GIT, see the `README' and `README.commits' files. In particular,
|
||||
don't, under any circumstances, push anything to GIT before
|
||||
reading and understanding `README.commmits'.
|
||||
~greenjeans June 2026
|
||||
|
|
|
|||
21
MAINTAINERS
21
MAINTAINERS
|
|
@ -1,12 +1,13 @@
|
|||
Matthias Clasen
|
||||
E-mail: mclasen@redhat.com
|
||||
Userid: matthiasc
|
||||
Daemonratte - lead developer
|
||||
https://git.devuan.org/Daemonratte
|
||||
|
||||
Tim Janik
|
||||
E-mail: timj@gtk.org
|
||||
Userid: timj
|
||||
greenjeans - collaborator
|
||||
https://git.devuan.org/greenjeans
|
||||
|
||||
Note that a lot of people are contributing to GTK+, and some parts of it
|
||||
are technically maintained by other people. The people listed above are
|
||||
meant as contacts for administrative questions such as cvs accounts. Other
|
||||
questions are best directed to the mailing list gtk-devel-list@gnome.org.
|
||||
Note that a LOT of people are contributing to gtk2-ng, and some parts of it
|
||||
like the .deb packages are being maintained by other people. The people listed
|
||||
above are meant as contacts for administrative questions. The best way to get
|
||||
involved is by registering an account at : https://git.devuan.org/ for any
|
||||
feature requests or issues. You can also register an account on the Devuan
|
||||
users forum : https://devuanusers.com/index.php and post or message/email
|
||||
any one of us.
|
||||
|
|
@ -1,72 +1,35 @@
|
|||
GTK+ is part of the GNOME git repository. At the current time, any
|
||||
person with write access to the GNOME repository, can make changes to
|
||||
GTK+. This is a good thing, in that it encourages many people to work
|
||||
on GTK+, and progress can be made quickly. However, GTK+ is a fairly
|
||||
large and complicated package that many other things depend on, so to
|
||||
avoid unnecessary breakage, and to take advantage of the knowledge
|
||||
about GTK+ that has been built up over the years, we'd like to ask
|
||||
people committing to GTK+ to follow a few rules:
|
||||
The gtk2-ng project is part of Daemonratte's git repository. At the current
|
||||
time, only the project owner and collaborators are allowed to make commits,
|
||||
gtk2-ng is a fairly large and complicated package that many other things
|
||||
depend on, so to avoid unnecessary breakage, but to take advantage of the
|
||||
knowledge about GTK that has been built up over the years, we'd like to ask
|
||||
people to feel free to submit pull requests after modding and testing. It
|
||||
will all get reviewed though sometimes that may take some time!
|
||||
|
||||
0) Ask first. If your changes are major, or could possibly break existing
|
||||
code, you should always ask. If your change is minor and you've
|
||||
been working on GTK+ for a while it probably isn't necessary
|
||||
to ask. But when in doubt, ask. Even if your change is correct,
|
||||
somebody may know a better way to do things.
|
||||
|
||||
If you are making changes to GTK+, you should be subscribed
|
||||
to gtk-devel-list@gnome.org. (Subscription address:
|
||||
gtk-devel-list-request@gnome.org.) This is a good place to ask
|
||||
about intended changes.
|
||||
|
||||
#gtk+ on GIMPNet (irc.gimp.org, irc.us.gimp.org, irc.eu.gimp.org, ...)
|
||||
is also a good place to find GTK+ developers to discuss changes with,
|
||||
however, email to gtk-devel-list is the most certain and preferred
|
||||
method.
|
||||
|
||||
1) Ask _first_.
|
||||
|
||||
2) With git, we no longer maintain a ChangeLog file, but you are expected
|
||||
to produce a meaningful commit message. Changes without a sufficient
|
||||
commit message will be reverted. See below for the expected format
|
||||
of commit messages.
|
||||
If you would like to submit pull requests, you will need to have an account
|
||||
at: https://git.devuan.org
|
||||
It's also a good idea to sign up at the devuanusers.com forum and join the
|
||||
discussion here: https://devuanusers.com/forum-gtk2-revival-project--12
|
||||
|
||||
Notes:
|
||||
|
||||
* When developing larger features or complicated bug fixes, it is
|
||||
advisable to work in a branch in your own cloned GTK+ repository.
|
||||
advisable to work in a branch in your own cloned gtk2-ng repository.
|
||||
You may even consider making your repository publically available
|
||||
so that others can easily test and review your changes.
|
||||
|
||||
* The expected format for git commit messages is as follows:
|
||||
|
||||
=== begin example commit ===
|
||||
Short explanation of the commit
|
||||
Title: Short explanation of the commit, i.e "Update foo.c"
|
||||
|
||||
Optional extended description: Longer explanation about what's changed,
|
||||
whether any external or private interfaces changed, what bugs were fixed
|
||||
(with bug tracker reference if applicable) and so on. Be concise but complete,
|
||||
i.e. "Added new spin-buttons, deleted some trailing whitespace, fixed bug #8"
|
||||
|
||||
~greenjeans June 2026
|
||||
|
||||
Longer explanation explaining exactly what's changed, whether any
|
||||
external or private interfaces changed, what bugs were fixed (with bug
|
||||
tracker reference if applicable) and so forth. Be concise but not too brief.
|
||||
=== end example commit ===
|
||||
|
||||
- Always add a brief description of the commit to the _first_ line of
|
||||
the commit and terminate by two newlines (it will work without the
|
||||
second newline, but that is not nice for the interfaces).
|
||||
|
||||
- First line (the brief description) must only be one sentence and
|
||||
should start with a capital letter unless it starts with a lowercase
|
||||
symbol or identifier. Don't use a trailing period either. Don't exceed
|
||||
72 characters.
|
||||
|
||||
- The main description (the body) is normal prose and should use normal
|
||||
punctuation and capital letters where appropriate. Normally, for patches
|
||||
sent to a mailing list it's copied from there.
|
||||
|
||||
- When committing code on behalf of others use the --author option, e.g.
|
||||
git commit -a --author "Joe Coder <joe@coder.org>" and --signoff.
|
||||
|
||||
|
||||
Owen Taylor
|
||||
13 Aug 1998
|
||||
17 Apr 2001
|
||||
|
||||
Matthias Clasen
|
||||
31 Mar 2009
|
||||
|
|
|
|||
31
README.in
31
README.in
|
|
@ -1,25 +1,20 @@
|
|||
General Information
|
||||
===================
|
||||
|
||||
This is GTK+ version @GTK_VERSION@. GTK+ is a multi-platform toolkit for
|
||||
creating graphical user interfaces. Offering a complete set of widgets,
|
||||
GTK+ is suitable for projects ranging from small one-off projects to
|
||||
complete application suites.
|
||||
This is gtk2-ng, a multi-platform toolkit for creating graphical user interfaces.
|
||||
Offering a complete set of widgets, gtk2-ng is suitable for projects ranging from
|
||||
small one-off projects to complete application suites.
|
||||
|
||||
GTK+ is free software and part of the GNU Project. However, the
|
||||
licensing terms for GTK+, the GNU LGPL, allow it to be used by all
|
||||
This is free software and part of the gtk2 revival project. However, the
|
||||
licensing terms for gtk2-ng, the GNU LGPL, allow it to be used by all
|
||||
developers, including those developing proprietary software, without any
|
||||
license fees or royalties.
|
||||
|
||||
The official ftp site is:
|
||||
ftp://ftp.gtk.org/pub/gtk
|
||||
The official source code site is:
|
||||
https://git.devuan.org/Daemonratte/gtk2-ng
|
||||
|
||||
The official web site is:
|
||||
http://www.gtk.org/
|
||||
|
||||
Information about mailing lists can be found at
|
||||
http://www.gtk.org/mailinglists.html
|
||||
|
||||
https://devuanusers.com/index.php
|
||||
|
||||
Installation
|
||||
============
|
||||
|
|
@ -420,9 +415,9 @@ Release notes for 2.6
|
|||
How to report bugs
|
||||
==================
|
||||
|
||||
Bugs should be reported to the GNOME bug tracking system.
|
||||
(http://bugzilla.gnome.org, product gtk+.) You will need to create an
|
||||
account for yourself.
|
||||
Bugs should be reported to the gtk2-ng bug tracking system.
|
||||
(https://git.devuan.org/Daemonratte/gtk2-ng)
|
||||
You will need to create an account for yourself.
|
||||
|
||||
In the bug report please include:
|
||||
|
||||
|
|
@ -454,8 +449,8 @@ In the bug report please include:
|
|||
Patches
|
||||
=======
|
||||
|
||||
Patches should also be submitted to bugzilla.gnome.org. If the patch
|
||||
fixes an existing bug, add the patch as an attachment to that bug
|
||||
Patches should also be submitted to https://git.devuan.org/Daemonratte/gtk2-ng.
|
||||
If the patch fixes an existing bug, add the patch as an attachment to that bug
|
||||
report.
|
||||
|
||||
Otherwise, enter a new bug report that describes the patch, and attach
|
||||
|
|
|
|||
17
README.md
17
README.md
|
|
@ -4,7 +4,18 @@
|
|||
|
||||
This fork focuses on modern compatibility while preserving stability, performance, ABI compatibility, and original behavior as much as possible. X11-first, no forced Wayland migration.
|
||||
|
||||
Backed by the **devuanusers.com** community.
|
||||
Backed by the **devuanusers.com** community and **The Lateral Tech Foundation**.
|
||||
|
||||
## Recent Development News
|
||||
|
||||
- Build scripts to automate local testing - https://git.devuan.org/greenjeans/gtk2-ng-test-scripts
|
||||
- Testing iso (Daedalus) - https://sourceforge.net/projects/vuu-do/files/Vuu-do-5.03/5.03-gtk2ng-testing/
|
||||
- Deb packages (Daedalus, Excalibur) - https://git.devuan.org/SteveM/gtk2-ng_debs
|
||||
- Win32 build scripts - https://git.devuan.org/lmemsm/bldgtk
|
||||
- Successfully built for EasyOS and KLV-Airedale - https://forum.puppylinux.com/viewtopic.php?p=171842#p171842
|
||||
- EasyOS 7.4 released featuring gtk2-ng - https://distrowatch.com/?newsid=12874
|
||||
- Available in the AUR for Archlinux - https://aur.archlinux.org/packages/gtk2-ng-git
|
||||
- The Lateral Tech Foundation formed - https://lateraltechfoundation.com/
|
||||
|
||||
## Highlights
|
||||
|
||||
|
|
@ -23,7 +34,7 @@ Backed by the **devuanusers.com** community.
|
|||
- Preserved GTK2 theming, theme engines, input modules and print backends
|
||||
- Preserved legacy configuration and module lookup behaviour
|
||||
- Continued focus on performance, low overhead and responsiveness
|
||||
- Community-driven maintenance backed by devuanusers.com
|
||||
- Community-driven maintenance backed by devuanusers.com and lateraltechfoundation.com
|
||||
|
||||
## Roadmap
|
||||
|
||||
|
|
@ -78,7 +89,7 @@ sudo apt install \
|
|||
libfontconfig1-dev libfreetype-dev libharfbuzz-dev libfribidi-dev libpng-dev \
|
||||
libx11-dev libxext-dev libxrender-dev libxrandr-dev libxcursor-dev \
|
||||
libxinerama-dev libxi-dev libxfixes-dev libxcomposite-dev libxdamage-dev \
|
||||
libcups2-dev
|
||||
libcups2-dev gettext autopoint
|
||||
```
|
||||
|
||||
## Dependencies (Arch/Artix/Manjaro)
|
||||
|
|
|
|||
BIN
demos/gtk-demo/gtk2-ng-256.png
Normal file
BIN
demos/gtk-demo/gtk2-ng-256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
27
demos/gtk-demo/gtk2-ng.svg
Normal file
27
demos/gtk-demo/gtk2-ng.svg
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="260" height="270" version="1.1">
|
||||
<defs>
|
||||
<linearGradient id="L0">
|
||||
<stop style="stop-color:#fe798e"/>
|
||||
<stop style="stop-color:#9c2219" offset="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="L1">
|
||||
<stop style="stop-color:#bff872"/>
|
||||
<stop style="stop-color:#7de567" offset="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="L2">
|
||||
<stop style="stop-color:#92cbe2"/>
|
||||
<stop style="stop-color:#7f95fe" offset="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient xlink:href="#L2" id="L3" gradientUnits="userSpaceOnUse" gradientTransform="translate(92.2254,-.313709)" x1="-143" y1="207.36218" x2="-129.5" y2="108.86218"/>
|
||||
<linearGradient xlink:href="#L1" id="L4" gradientUnits="userSpaceOnUse" gradientTransform="translate(92.2254,-.313709)" x1="-133.5" y1="221.86218" x2="-50" y2="279.36218"/>
|
||||
<linearGradient xlink:href="#L0" id="L5" gradientUnits="userSpaceOnUse" gradientTransform="translate(92.2254,-.313709)" x1="-157.5" y1="222.86218" x2="-247.5" y2="276.86218"/>
|
||||
</defs>
|
||||
<g transform="translate(178.992551,-88.576718)">
|
||||
<path style="fill:url(#L3)" d="M-58.11348,213.41831L -162.26826,151.37974L -37.01785,100.04846L 68.1307,158.15264L -58.11348,213.41831z "/>
|
||||
<path style="fill:url(#L4)" d="M-51.56037,213.5916L 72.03976,159.30293L 54.30386,283.51375L -62.14067,350.24024L -51.56037,213.5916z "/>
|
||||
<path style="fill:url(#L5)" d="M-59.56037,347.18826L -164.06037,282.96566L -163.61166,159.3255L -55.18554,215.49255L -59.56037,347.18826z "/>
|
||||
<path style="fill:#000" d="M-66.27108,352.00632C -69.30467,350.22909 -85.32501,339.74485 -101.87184,328.708C -141.06516,302.56578 -152.91684,294.99749 -161.22644,290.80508C -172.47362,285.13057 -171.42166,291.71277 -171.76785,224.84661C -172.09132,162.36876 -172.8819,151.51349 -166.98072,153.09872C -171.59657,148.70486 -149.89048,141.93362 -115.91158,126.8062C -82.71848,112.02862 -46.04303,97.12968 -37.99045,95.151731C -35.80415,94.614711 -30.58575,96.813551 -10.91381,106.56083C 32.31874,127.98218 67.99593,147.7319 72.54924,152.76325C 73.58759,153.91062 75.03553,154.84937 75.76688,154.84937C 77.84679,154.84937 78.37332,158.95768 77.25844,166.48751C 76.69538,170.29042 72.64193,195.0632 68.25078,221.53813C 63.85962,248.01307 59.96508,272.38204 59.59625,275.69141C 58.29011,287.41076 58.65986,286.97385 40.74281,297.9691C 31.80145,303.4562 9.14236,316.66419 -9.61071,327.3202C -28.36378,337.97622 -47.03613,348.65729 -51.10479,351.05592C -55.17346,353.45455 -59.00931,355.3767 -59.62892,355.32736C -60.24852,355.27802 -63.23749,353.78356 -66.27108,352.00632z M-61.87106,326.08404C -61.53987,317.12117 -60.90739,291.51119 -60.46556,269.17296C -59.4846,219.57813 -59.22374,221.12454 -69.76193,214.06246C -82.68227,205.404 -96.65592,197.35576 -120.42436,184.88302C -133.38604,178.08124 -147.58846,170.35597 -151.98528,167.71576C -157.4594,164.42865 -160.30462,163.24026 -161.01083,163.94598C -162.29568,165.22992 -162.39159,217.12625 -161.17615,253.40053L -160.31016,279.24588L -153.15345,283.38712C -146.97571,286.96188 -111.07469,311.08894 -76.29946,335.03636C -70.50807,339.02452 -65.02796,342.30839 -64.12144,342.33386C -62.68203,342.3743 -62.39695,340.31581 -61.87106,326.08404z M-123.45447,281.63953L -121.92862,231.56652L -140.98255,221.52843L -138.49408,200.85313L -78.16426,229.52961L -79.29283,248.93423L -101.23414,239.89866C -104.02169,251.08704 -104.55187,273.56224 -106.14867,290.70437L -123.45447,281.63953z M-9.61071,316.77116C 34.17351,291.73098 48.95974,282.50651 49.5137,279.88608C 49.76822,278.68213 50.70639,272.73304 51.59851,266.66586C 52.49065,260.59869 56.34489,236.69937 60.1635,213.55627C 66.55191,174.8386 67.87919,164.87776 66.64985,164.87776C 65.35309,164.87776 41.87183,175.43096 11.95031,189.46143C -6.52698,198.1256 -27.06009,207.7061 -33.67883,210.75142C -40.29756,213.79674 -46.27431,216.80609 -46.96048,217.43886C -49.01471,219.33318 -53.67591,334.1607 -51.88774,338.82058C -51.3077,340.33214 -50.58188,340.15475 -45.46483,337.25078C -42.2919,335.45011 -26.15754,326.23429 -9.61071,316.77116z M-31.52427,299.57413C -31.87775,272.99487 -33.95338,246.76003 -28.00983,218.92136L -15.53109,218.69485L -14.46997,256.84948L 28.82336,204.1205L 49.21858,198.81459L 11.17117,250.94644L 46.4177,267.81063L 31.8401,277.19567L -4.08659,261.22054L -17.12774,267.67154L -17.55651,293.33323L -31.52427,299.57413z M-44.98935,205.62376C -42.07793,204.31693 -20.74221,194.22819 2.42335,183.20435C 25.58892,172.18051 47.47586,161.89162 51.06101,160.34015C 60.54302,156.23684 60.93348,155.67356 56.37503,152.674C 49.35425,148.05414 13.69688,129.08139 -11.32169,116.65357L -36.09795,104.34612L -44.41536,107.15536C -56.14763,111.11798 -89.54973,125.04344 -118.35237,137.97996C -148.44864,151.49752 -152.51519,153.54112 -152.51519,155.14816C -152.51519,155.84547 -145.85885,160.0994 -137.72332,164.60135C -111.60287,179.05557 -54.81147,207.96913 -52.51064,207.98472C -51.28536,207.99302 -47.90078,206.93059 -44.98935,205.62376z M-60.75547,189.54567C -75.28072,185.96717 -91.81229,177.57594 -96.0911,171.6097C -99.47879,166.88602 -102.37326,159.22994 -102.37326,154.99297C -102.37326,149.88393 -99.16092,142.63741 -94.96571,138.28271C -89.64934,132.76424 -82.2461,130.42562 -63.03287,128.19542C -43.93665,125.97879 -27.42575,126.6637 -17.57474,130.08117C -8.29082,133.30188 -4.52834,135.30727 -2.61559,138.05436C 2.38083,145.2301 5.93328,151.2196 5.93328,152.46787C 5.93328,154.32106 1.29355,156.06801 -2.01293,155.45979C -3.4339,155.1984 -6.26937,154.71168 -8.31397,154.3782C -11.32445,153.88717 -12.45855,153.01191 -14.27723,149.776C -16.85292,145.19318 -23.60657,140.51818 -30.15247,138.78687C -40.15132,136.14228 -67.5992,138.35316 -76.05306,142.48406C -80.82949,144.81802 -83.39709,149.93235 -84.08312,158.47883C -84.55072,164.304 -84.36299,165.20843 -82.20604,167.52215C -79.28527,170.65521 -71.09215,174.87312 -62.00697,177.92089C -56.94497,179.61901 -54.0594,180.03115 -50.5755,179.55363C -42.46315,178.44171 -41.49161,176.3237 -46.32188,170.28055C -50.48755,165.06888 -51.4992,162.24318 -50.12122,159.66839C -49.15472,157.86249 -48.34815,157.66756 -43.78911,158.13809C -37.32875,158.80486 -23.72903,163.98325 -20.5194,166.99854C -17.69425,169.65263 -17.2471,175.88082 -19.70523,178.33895C -22.5073,181.14102 -34.94771,188.0685 -39.80016,189.52887C -45.45811,191.23166 -53.88454,191.23841 -60.75547,189.54567z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.5 KiB |
20
demos/gtk-demo/gtk2-ng.svg.license
Normal file
20
demos/gtk-demo/gtk2-ng.svg.license
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
gtk2-ng.svg is based on File:GTK.svg from Wikimedia Commons.
|
||||
|
||||
Source:
|
||||
https://commons.wikimedia.org/wiki/File:GTK.svg
|
||||
|
||||
Original source:
|
||||
Conversion of Image:GTK.png to SVG using Inkscape.
|
||||
|
||||
Author:
|
||||
Jose Hevia, vectorised by DTR at English Wikipedia.
|
||||
Commons cleanup by Tene~commonswiki.
|
||||
|
||||
License:
|
||||
Creative Commons Attribution-ShareAlike 3.0 Unported or
|
||||
GNU Free Documentation License 1.2 or later.
|
||||
|
||||
This copy is included under the Creative Commons Attribution-ShareAlike
|
||||
3.0 Unported license.
|
||||
|
||||
No endorsement by the original authors or Wikimedia Commons is implied.
|
||||
|
|
@ -154,3 +154,9 @@ include $(top_srcdir)/gtk-doc.make
|
|||
EXTRA_DIST += version.xml.in
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
|
||||
# This directory has no runtime tests. Keep recursive `make test`
|
||||
# working when the top-level test target descends into the documentation
|
||||
# reference directories.
|
||||
test:
|
||||
|
||||
|
|
|
|||
|
|
@ -386,3 +386,9 @@ dist-hook-local: $(BUILT_EXTRA_DIST)
|
|||
cp $$d/$$f $(distdir) || exit 1; done
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
|
||||
# This directory has no runtime tests. Keep recursive `make test`
|
||||
# working when the top-level test target descends into the documentation
|
||||
# reference directories.
|
||||
test:
|
||||
|
||||
|
|
|
|||
|
|
@ -34,3 +34,9 @@ HTML_IMAGES =
|
|||
include $(top_srcdir)/gtk-doc.make
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
|
||||
# This directory has no runtime tests. Keep recursive `make test`
|
||||
# working when the top-level test target descends into the documentation
|
||||
# reference directories.
|
||||
test:
|
||||
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ x11_introspection_files = \
|
|||
x11/gdkx.h
|
||||
|
||||
GdkX11-2.0.gir: $(gdktargetlib) Gdk-2.0.gir Makefile
|
||||
GdkX11_2_0_gir_SCANNERFLAGS = --identifier-prefix=Gdk --include-uninstalled=Gdk-2.0.gir
|
||||
GdkX11_2_0_gir_SCANNERFLAGS = --identifier-prefix=Gdk --symbol-prefix=gdk --symbol-prefix=gdkx --include-uninstalled=Gdk-2.0.gir
|
||||
GdkX11_2_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0 xlib-2.0
|
||||
|
||||
GdkX11_2_0_gir_LIBS = $(gdktargetlib)
|
||||
|
|
|
|||
37
gdk/gdk.c
37
gdk/gdk.c
|
|
@ -305,7 +305,7 @@ gdk_get_display_arg_name (void)
|
|||
* display has previously been set, simply returns that. An internal
|
||||
* function that should not be used by applications.
|
||||
*
|
||||
* Return value: the default display, if it could be opened,
|
||||
* Return value: (nullable) (transfer none): the default display, if it could be opened,
|
||||
* otherwise %NULL.
|
||||
**/
|
||||
GdkDisplay *
|
||||
|
|
@ -481,8 +481,8 @@ gdk_threads_init (void)
|
|||
|
||||
/**
|
||||
* gdk_threads_set_lock_functions:
|
||||
* @enter_fn: function called to guard GDK
|
||||
* @leave_fn: function called to release the guard
|
||||
* @enter_fn: (scope forever): function called to guard GDK
|
||||
* @leave_fn: (scope forever): function called to release the guard
|
||||
*
|
||||
* Allows the application to replace the standard method that
|
||||
* GDK uses to protect its data structures. Normally, GDK
|
||||
|
|
@ -624,7 +624,7 @@ gdk_threads_add_idle_full (gint priority,
|
|||
|
||||
/**
|
||||
* gdk_threads_add_idle:
|
||||
* @function: function to call
|
||||
* @function: (scope async): function to call
|
||||
* @data: data to pass to @function
|
||||
*
|
||||
* A wrapper for the common usage of gdk_threads_add_idle_full()
|
||||
|
|
@ -730,7 +730,7 @@ gdk_threads_add_timeout_full (gint priority,
|
|||
* gdk_threads_add_timeout:
|
||||
* @interval: the time between calls to the function, in milliseconds
|
||||
* (1/1000ths of a second)
|
||||
* @function: function to call
|
||||
* @function: (scope async): function to call
|
||||
* @data: data to pass to @function
|
||||
*
|
||||
* A wrapper for the common usage of gdk_threads_add_timeout_full()
|
||||
|
|
@ -795,7 +795,7 @@ gdk_threads_add_timeout_seconds_full (gint priority,
|
|||
/**
|
||||
* gdk_threads_add_timeout_seconds:
|
||||
* @interval: the time between calls to the function, in seconds
|
||||
* @function: function to call
|
||||
* @function: (scope async): function to call
|
||||
* @data: data to pass to @function
|
||||
*
|
||||
* A wrapper for the common usage of gdk_threads_add_timeout_seconds_full()
|
||||
|
|
@ -817,6 +817,31 @@ gdk_threads_add_timeout_seconds (guint interval,
|
|||
}
|
||||
|
||||
|
||||
static gpointer
|
||||
gdk_atom_copy (gpointer atom)
|
||||
{
|
||||
return atom;
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_atom_free (gpointer atom)
|
||||
{
|
||||
/* GdkAtom values are interned and must not be freed. */
|
||||
}
|
||||
|
||||
GType
|
||||
gdk_atom_get_type (void)
|
||||
{
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkAtom"),
|
||||
(GBoxedCopyFunc) gdk_atom_copy,
|
||||
(GBoxedFreeFunc) gdk_atom_free);
|
||||
|
||||
return our_type;
|
||||
}
|
||||
|
||||
const char *
|
||||
gdk_get_program_class (void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -184,6 +184,12 @@ gdk_utf8_to_compound_text
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if IN_HEADER(__GDK_PROPERTY_H__)
|
||||
#if IN_FILE(__GDK_C__)
|
||||
gdk_atom_get_type G_GNUC_CONST
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IN_HEADER(__GDK_PROPERTY_H__)
|
||||
#if IN_FILE(__GDK_PROPERTY_X11_C__)
|
||||
gdk_atom_intern
|
||||
|
|
@ -1086,6 +1092,8 @@ gdk_region_polygon
|
|||
#if IN_HEADER(__GDK_RGB_H__)
|
||||
#if IN_FILE(__GDK_RGB_C__)
|
||||
gdk_rgb_cmap_free
|
||||
gdk_rgb_cmap_copy
|
||||
gdk_rgb_cmap_get_type G_GNUC_CONST
|
||||
gdk_rgb_cmap_new
|
||||
gdk_rgb_colormap_ditherable
|
||||
gdk_rgb_ditherable
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
*
|
||||
* Deprecated function; use g_object_ref() instead.
|
||||
*
|
||||
* Return value: the colormap
|
||||
* Return value: (transfer full): the colormap
|
||||
*
|
||||
* Deprecated: 2.0: Use g_object_ref() instead.
|
||||
**/
|
||||
|
|
@ -69,7 +69,7 @@ gdk_colormap_unref (GdkColormap *cmap)
|
|||
*
|
||||
* Returns the visual for which a given colormap was created.
|
||||
*
|
||||
* Return value: the visual of the colormap.
|
||||
* Return value: (transfer none): the visual of the colormap.
|
||||
**/
|
||||
GdkVisual *
|
||||
gdk_colormap_get_visual (GdkColormap *colormap)
|
||||
|
|
@ -386,7 +386,7 @@ gdk_color_to_string (const GdkColor *color)
|
|||
* Gets the system's default colormap for the default screen. (See
|
||||
* gdk_colormap_get_system_for_screen ())
|
||||
*
|
||||
* Return value: the default colormap.
|
||||
* Return value: (transfer none): the default colormap.
|
||||
**/
|
||||
GdkColormap*
|
||||
gdk_colormap_get_system (void)
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ gdk_event_send_clientmessage_toall (GdkEvent *event)
|
|||
*
|
||||
* Returns the core pointer device for the default display.
|
||||
*
|
||||
* Return value: the core pointer device; this is owned by the
|
||||
* Return value: (transfer none): the core pointer device; this is owned by the
|
||||
* display and should not be freed.
|
||||
**/
|
||||
GdkDevice *
|
||||
|
|
@ -408,7 +408,7 @@ gdk_device_get_core_pointer (void)
|
|||
*
|
||||
* Returns the core pointer device for the given display
|
||||
*
|
||||
* Return value: the core pointer device; this is owned by the
|
||||
* Return value: (transfer none): the core pointer device; this is owned by the
|
||||
* display and should not be freed.
|
||||
*
|
||||
* Since: 2.2
|
||||
|
|
@ -634,7 +634,7 @@ gdk_display_get_window_at_pointer (GdkDisplay *display,
|
|||
* event recorder. Applications should never have any
|
||||
* reason to use this facility.
|
||||
*
|
||||
* Return value: the previous pointer hook table
|
||||
* Return value: (transfer none) (type gpointer): the previous pointer hook table
|
||||
*
|
||||
* Since: 2.2
|
||||
*
|
||||
|
|
@ -727,7 +727,7 @@ singlehead_default_window_at_pointer (GdkScreen *screen,
|
|||
* This function is not multihead safe. For multihead operation,
|
||||
* see gdk_display_set_pointer_hooks().
|
||||
*
|
||||
* Return value: the previous pointer hook table
|
||||
* Return value: (transfer none) (type gpointer): the previous pointer hook table
|
||||
*
|
||||
* Deprecated: 2.24: This function will go away in GTK 3 for lack of use cases.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -166,6 +166,15 @@ GdkEvent* gdk_display_peek_event (GdkDisplay *display);
|
|||
void gdk_display_put_event (GdkDisplay *display,
|
||||
const GdkEvent *event);
|
||||
|
||||
/**
|
||||
* gdk_display_add_client_message_filter:
|
||||
* @display: a #GdkDisplay for which this message filter applies.
|
||||
* @message_type: the type of ClientMessage events to receive.
|
||||
* @func: (scope forever): the function to call to process the event.
|
||||
* @data: user data to pass to @func.
|
||||
*
|
||||
* Adds a filter to be called when X ClientMessage events are received.
|
||||
*/
|
||||
void gdk_display_add_client_message_filter (GdkDisplay *display,
|
||||
GdkAtom message_type,
|
||||
GdkFilterFunc func,
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ gdk_drawable_get_size (GdkDrawable *drawable,
|
|||
*
|
||||
* Gets the #GdkVisual describing the pixel format of @drawable.
|
||||
*
|
||||
* Return value: a #GdkVisual
|
||||
* Return value: (transfer none): a #GdkVisual
|
||||
*
|
||||
* Deprecated: 2.24: Use gdk_window_get_visual()
|
||||
*/
|
||||
|
|
@ -206,7 +206,7 @@ gdk_drawable_get_depth (GdkDrawable *drawable)
|
|||
*
|
||||
* Gets the #GdkScreen associated with a #GdkDrawable.
|
||||
*
|
||||
* Return value: the #GdkScreen associated with @drawable
|
||||
* Return value: (transfer none): the #GdkScreen associated with @drawable
|
||||
*
|
||||
* Since: 2.2
|
||||
*
|
||||
|
|
@ -226,7 +226,7 @@ gdk_drawable_get_screen (GdkDrawable *drawable)
|
|||
*
|
||||
* Gets the #GdkDisplay associated with a #GdkDrawable.
|
||||
*
|
||||
* Return value: the #GdkDisplay associated with @drawable
|
||||
* Return value: (transfer none): the #GdkDisplay associated with @drawable
|
||||
*
|
||||
* Since: 2.2
|
||||
*
|
||||
|
|
@ -257,13 +257,13 @@ gdk_drawable_get_display (GdkDrawable *drawable)
|
|||
**/
|
||||
void
|
||||
gdk_drawable_set_colormap (GdkDrawable *drawable,
|
||||
GdkColormap *cmap)
|
||||
GdkColormap *colormap)
|
||||
{
|
||||
g_return_if_fail (GDK_IS_DRAWABLE (drawable));
|
||||
g_return_if_fail (cmap == NULL || gdk_drawable_get_depth (drawable)
|
||||
== cmap->visual->depth);
|
||||
g_return_if_fail (colormap == NULL || gdk_drawable_get_depth (drawable)
|
||||
== colormap->visual->depth);
|
||||
|
||||
GDK_DRAWABLE_GET_CLASS (drawable)->set_colormap (drawable, cmap);
|
||||
GDK_DRAWABLE_GET_CLASS (drawable)->set_colormap (drawable, colormap);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -273,7 +273,7 @@ gdk_drawable_set_colormap (GdkDrawable *drawable,
|
|||
* Gets the colormap for @drawable, if one is set; returns
|
||||
* %NULL otherwise.
|
||||
*
|
||||
* Return value: the colormap, or %NULL
|
||||
* Return value: (transfer none): the colormap, or %NULL
|
||||
**/
|
||||
GdkColormap*
|
||||
gdk_drawable_get_colormap (GdkDrawable *drawable)
|
||||
|
|
@ -290,7 +290,7 @@ gdk_drawable_get_colormap (GdkDrawable *drawable)
|
|||
* Deprecated equivalent of calling g_object_ref() on @drawable.
|
||||
* (Drawables were not objects in previous versions of GDK.)
|
||||
*
|
||||
* Return value: the same @drawable passed in
|
||||
* Return value: (transfer full): the same @drawable passed in
|
||||
*
|
||||
* Deprecated: 2.0: Use g_object_ref() instead.
|
||||
**/
|
||||
|
|
@ -1097,7 +1097,7 @@ gdk_draw_trapezoids (GdkDrawable *drawable,
|
|||
/**
|
||||
* gdk_drawable_copy_to_image:
|
||||
* @drawable: a #GdkDrawable
|
||||
* @image: (allow-none): a #GdkDrawable, or %NULL if a new @image should be created.
|
||||
* @image: (allow-none): a #GdkImage, or %NULL if a new @image should be created.
|
||||
* @src_x: x coordinate on @drawable
|
||||
* @src_y: y coordinate on @drawable
|
||||
* @dest_x: x coordinate within @image. Must be 0 if @image is %NULL
|
||||
|
|
@ -1109,7 +1109,7 @@ gdk_draw_trapezoids (GdkDrawable *drawable,
|
|||
* @image. If @image is %NULL, creates a new image of size @width x @height
|
||||
* and copies into that. See gdk_drawable_get_image() for further details.
|
||||
*
|
||||
* Return value: @image, or a new a #GdkImage containing the contents
|
||||
* Return value: (nullable) (transfer full): @image, or a new #GdkImage containing the contents
|
||||
* of @drawable
|
||||
*
|
||||
* Since: 2.4
|
||||
|
|
@ -1211,7 +1211,7 @@ gdk_drawable_copy_to_image (GdkDrawable *drawable,
|
|||
* or obscured, then the obscured portions of the returned image
|
||||
* will contain undefined data.
|
||||
*
|
||||
* Return value: a #GdkImage containing the contents of @drawable
|
||||
* Return value: (transfer full): a #GdkImage containing the contents of @drawable
|
||||
*
|
||||
* Deprecated: 2.22: Use @drawable as the source and draw to a Cairo image
|
||||
* surface if you want to download contents to the client.
|
||||
|
|
@ -1302,7 +1302,7 @@ gdk_drawable_real_get_composite_drawable (GdkDrawable *drawable,
|
|||
* but no area outside of this region will be affected by drawing
|
||||
* primitives.
|
||||
*
|
||||
* Returns: a #GdkRegion. This must be freed with gdk_region_destroy()
|
||||
* Returns: (transfer full): a #GdkRegion. This must be freed with gdk_region_destroy()
|
||||
* when you are done.
|
||||
**/
|
||||
GdkRegion *
|
||||
|
|
@ -1322,7 +1322,7 @@ gdk_drawable_get_clip_region (GdkDrawable *drawable)
|
|||
* obscured by other windows, but no area outside of this region
|
||||
* is visible.
|
||||
*
|
||||
* Returns: a #GdkRegion. This must be freed with gdk_region_destroy()
|
||||
* Returns: (transfer full): a #GdkRegion. This must be freed with gdk_region_destroy()
|
||||
* when you are done.
|
||||
**/
|
||||
GdkRegion *
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ struct _GdkDrawableClass
|
|||
gint *height);
|
||||
|
||||
void (*set_colormap) (GdkDrawable *drawable,
|
||||
GdkColormap *cmap);
|
||||
GdkColormap *colormap);
|
||||
|
||||
GdkColormap* (*get_colormap) (GdkDrawable *drawable);
|
||||
GdkVisual* (*get_visual) (GdkDrawable *drawable);
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ _gdk_event_queue_insert_after (GdkDisplay *display,
|
|||
}
|
||||
|
||||
/**
|
||||
* _gdk_event_queue_insert_after:
|
||||
* _gdk_event_queue_insert_before:
|
||||
* @display: a #GdkDisplay
|
||||
* @sibling: Append after this event.
|
||||
* @event: Event to append.
|
||||
|
|
@ -1013,7 +1013,7 @@ gdk_event_set_screen (GdkEvent *event,
|
|||
* to which <literal>event->motion.x_root</literal> and
|
||||
* <literal>event->motion.y_root</literal> are relative.
|
||||
*
|
||||
* Return value: the screen for the event
|
||||
* Return value: (transfer none): the screen for the event
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
@ -1157,7 +1157,7 @@ gdk_input_add_full (gint source,
|
|||
* gdk_input_add:
|
||||
* @source: a file descriptor.
|
||||
* @condition: the condition.
|
||||
* @function: the callback function.
|
||||
* @function: (scope forever): the callback function.
|
||||
* @data: callback data passed to @function.
|
||||
*
|
||||
* Establish a callback when a condition becomes true on
|
||||
|
|
|
|||
|
|
@ -553,6 +553,15 @@ void gdk_set_show_events (gboolean show_events);
|
|||
gboolean gdk_get_show_events (void);
|
||||
|
||||
#ifndef GDK_MULTIHEAD_SAFE
|
||||
/**
|
||||
* gdk_add_client_message_filter:
|
||||
* @message_type: the type of ClientMessage events to receive.
|
||||
* @func: (scope forever): the function to call to process the event.
|
||||
* @data: user data to pass to @func.
|
||||
*
|
||||
* Adds a filter to the default display to be called when X ClientMessage
|
||||
* events are received. See gdk_display_add_client_message_filter().
|
||||
*/
|
||||
void gdk_add_client_message_filter (GdkAtom message_type,
|
||||
GdkFilterFunc func,
|
||||
gpointer data);
|
||||
|
|
|
|||
|
|
@ -127,6 +127,16 @@ void gdk_string_extents (GdkFont *font,
|
|||
gint *ascent,
|
||||
gint *descent);
|
||||
|
||||
/**
|
||||
* gdk_font_get_display:
|
||||
* @font: the #GdkFont.
|
||||
*
|
||||
* Returns the #GdkDisplay for @font.
|
||||
*
|
||||
* Returns: (transfer none): the corresponding #GdkDisplay.
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
GdkDisplay * gdk_font_get_display (GdkFont *font);
|
||||
|
||||
#endif /* GDK_DISABLE_DEPRECATED */
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ gdk_gc_finalize (GObject *object)
|
|||
*
|
||||
* Deprecated function; use g_object_ref() instead.
|
||||
*
|
||||
* Return value: the gc.
|
||||
* Return value: (transfer full): the gc.
|
||||
*
|
||||
* Deprecated: 2.0: Use g_object_ref() instead.
|
||||
**/
|
||||
|
|
@ -1272,7 +1272,7 @@ gdk_gc_set_colormap (GdkGC *gc,
|
|||
* has a colormap, or if a colormap was set explicitely with
|
||||
* gdk_gc_set_colormap.
|
||||
*
|
||||
* Return value: the colormap of @gc, or %NULL if @gc doesn't have one.
|
||||
* Return value: (nullable) (transfer none): the colormap of @gc, or %NULL if @gc doesn't have one.
|
||||
*
|
||||
* Deprecated: 2.22: There is no replacement. Cairo handles colormaps
|
||||
* automatically, so there is no need to care about them.
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ struct _GdkGCClass
|
|||
GdkGCValues *values);
|
||||
void (*set_values) (GdkGC *gc,
|
||||
GdkGCValues *values,
|
||||
GdkGCValuesMask mask);
|
||||
GdkGCValuesMask values_mask);
|
||||
void (*set_dashes) (GdkGC *gc,
|
||||
gint dash_offset,
|
||||
gint8 dash_list[],
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
*
|
||||
* Deprecated function; use g_object_ref() instead.
|
||||
*
|
||||
* Return value: the image
|
||||
* Return value: (transfer full): the image
|
||||
*
|
||||
* Deprecated: 2.0: Use g_object_ref() instead.
|
||||
**/
|
||||
|
|
@ -81,7 +81,7 @@ gdk_image_unref (GdkImage *image)
|
|||
* most cases gdk_pixbuf_get_from_drawable() is the most convenient
|
||||
* choice.
|
||||
*
|
||||
* Return value: a new #GdkImage or %NULL
|
||||
* Return value: (transfer full): a new #GdkImage or %NULL
|
||||
**/
|
||||
GdkImage*
|
||||
gdk_image_get (GdkWindow *drawable,
|
||||
|
|
@ -138,7 +138,7 @@ gdk_image_set_colormap (GdkImage *image,
|
|||
* a colormap, or if a colormap was set explicitely with
|
||||
* gdk_image_set_colormap().
|
||||
*
|
||||
* Return value: colormap for the image
|
||||
* Return value: (transfer none): colormap for the image
|
||||
*
|
||||
* Deprecated: 2.22: #GdkImage should not be used anymore.
|
||||
**/
|
||||
|
|
@ -176,7 +176,7 @@ gdk_image_get_image_type (GdkImage *image)
|
|||
*
|
||||
* Determines the visual that was used to create the image.
|
||||
*
|
||||
* Return value: a #GdkVisual
|
||||
* Return value: (transfer none): a #GdkVisual
|
||||
*
|
||||
* Since: 2.22
|
||||
*
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ gdk_keyval_is_lower (guint keyval)
|
|||
|
||||
/**
|
||||
* gdk_keymap_get_default:
|
||||
* @returns: the #GdkKeymap attached to the default display.
|
||||
* Returns: (transfer none): the #GdkKeymap attached to the default display.
|
||||
*
|
||||
* Returns the #GdkKeymap attached to the default display.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -856,7 +856,7 @@ _gdk_offscreen_window_get_real_drawable (GdkOffscreenWindow *offscreen)
|
|||
* If you need to keep this around over window resizes, you need to
|
||||
* add a reference to it.
|
||||
*
|
||||
* Returns: The offscreen pixmap, or %NULL if not offscreen
|
||||
* Returns: (transfer none): The offscreen pixmap, or %NULL if not offscreen
|
||||
*
|
||||
* Since: 2.18
|
||||
*/
|
||||
|
|
@ -1205,7 +1205,7 @@ gdk_offscreen_window_set_embedder (GdkWindow *window,
|
|||
*
|
||||
* Gets the window that @window is embedded in.
|
||||
*
|
||||
* Returns: the embedding #GdkWindow, or %NULL if @window is not an
|
||||
* Returns: (transfer none): the embedding #GdkWindow, or %NULL if @window is not an
|
||||
* embedded offscreen window
|
||||
*
|
||||
* Since: 2.18
|
||||
|
|
|
|||
|
|
@ -589,7 +589,7 @@ on_renderer_display_closed (GdkDisplay *display,
|
|||
* and gdk_pango_renderer_set_gc() to set the drawable and graphics context
|
||||
* to use for drawing.
|
||||
*
|
||||
* Return value: the default #PangoRenderer for @screen. The
|
||||
* Return value: (transfer none): the default #PangoRenderer for @screen. The
|
||||
* renderer is owned by GTK+ and will be kept around until the
|
||||
* screen is closed.
|
||||
*
|
||||
|
|
@ -1336,7 +1336,7 @@ layout_iter_get_line_clip_region (PangoLayoutIter *iter,
|
|||
* the clip region. The clip region is mainly useful for highlightling parts
|
||||
* of text, such as when text is selected.
|
||||
*
|
||||
* Return value: a clip region containing the given ranges
|
||||
* Return value: (transfer full): a clip region containing the given ranges
|
||||
**/
|
||||
GdkRegion*
|
||||
gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line,
|
||||
|
|
@ -1380,7 +1380,7 @@ gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line,
|
|||
* the clip region. The clip region is mainly useful for highlightling parts
|
||||
* of text, such as when text is selected.
|
||||
*
|
||||
* Return value: a clip region containing the given ranges
|
||||
* Return value: (transfer full): a clip region containing the given ranges
|
||||
**/
|
||||
GdkRegion*
|
||||
gdk_pango_layout_get_clip_region (PangoLayout *layout,
|
||||
|
|
@ -1441,7 +1441,7 @@ gdk_pango_layout_get_clip_region (PangoLayout *layout,
|
|||
* is more convenient if you want to keep a context around and track
|
||||
* changes to the screen's font rendering settings.
|
||||
*
|
||||
* Return value: a new #PangoContext for the default display
|
||||
* Return value: (transfer full): a new #PangoContext for the default display
|
||||
**/
|
||||
PangoContext *
|
||||
gdk_pango_context_get (void)
|
||||
|
|
@ -1467,7 +1467,7 @@ gdk_pango_context_get (void)
|
|||
* is more convenient if you want to keep a context around and track
|
||||
* changes to the screen's font rendering settings.
|
||||
*
|
||||
* Return value: a new #PangoContext for @screen
|
||||
* Return value: (transfer full): a new #PangoContext for @screen
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -1199,7 +1199,7 @@ rgbconvert (GdkImage *image,
|
|||
* converts the resulting image to a #GdkPixbuf, so the
|
||||
* documentation for gdk_drawable_get_image() may also be relevant.
|
||||
*
|
||||
* Return value: The same pixbuf as @dest if it was non-%NULL, or a newly-created
|
||||
* Return value: (transfer full): The same pixbuf as @dest if it was non-%NULL, or a newly-created
|
||||
* pixbuf with a reference count of 1 if no destination pixbuf was specified, or %NULL on error
|
||||
**/
|
||||
GdkPixbuf *
|
||||
|
|
@ -1327,7 +1327,7 @@ gdk_pixbuf_get_from_drawable (GdkPixbuf *dest,
|
|||
* Same as gdk_pixbuf_get_from_drawable() but gets the pixbuf from
|
||||
* an image.
|
||||
*
|
||||
* Return value: @dest, newly-created pixbuf if @dest was %NULL, %NULL on error
|
||||
* Return value: (transfer full): @dest, newly-created pixbuf if @dest was %NULL, %NULL on error
|
||||
**/
|
||||
GdkPixbuf*
|
||||
gdk_pixbuf_get_from_image (GdkPixbuf *dest,
|
||||
|
|
|
|||
|
|
@ -249,6 +249,17 @@ gdk_pixmap_new (GdkDrawable *drawable,
|
|||
return _gdk_pixmap_new (source_drawable, width, height, depth);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_bitmap_create_from_data:
|
||||
* @drawable: a #GdkDrawable, used to determine default values for the new bitmap
|
||||
* @data: a pointer to the data
|
||||
* @width: width of the new bitmap in pixels
|
||||
* @height: height of the new bitmap in pixels
|
||||
*
|
||||
* Creates a new bitmap from data in XBM format.
|
||||
*
|
||||
* Returns: (type GdkPixmap) (transfer full): the newly-created bitmap
|
||||
*/
|
||||
GdkPixmap *
|
||||
gdk_bitmap_create_from_data (GdkDrawable *drawable,
|
||||
const gchar *data,
|
||||
|
|
@ -264,6 +275,23 @@ gdk_bitmap_create_from_data (GdkDrawable *drawable,
|
|||
return _gdk_bitmap_create_from_data (source_drawable, data, width, height);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_pixmap_create_from_data:
|
||||
* @drawable: a #GdkDrawable, used to determine default values
|
||||
* for the new pixmap.
|
||||
* @data: a string containing the bitmap data.
|
||||
* @width: width of the pixmap in pixels.
|
||||
* @height: height of the pixmap in pixels.
|
||||
* @depth: depth of the pixmap.
|
||||
* @fg: the foreground color.
|
||||
* @bg: the background color.
|
||||
*
|
||||
* Creates a new pixmap from data in XBM format.
|
||||
*
|
||||
* Returns: (transfer full): a new #GdkPixmap.
|
||||
*
|
||||
* Deprecated: 2.22: Use a #GdkPixbuf instead.
|
||||
*/
|
||||
GdkPixmap*
|
||||
gdk_pixmap_create_from_data (GdkDrawable *drawable,
|
||||
const gchar *data,
|
||||
|
|
@ -726,13 +754,13 @@ gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable,
|
|||
/**
|
||||
* gdk_pixmap_create_from_xpm:
|
||||
* @drawable: a #GdkDrawable, used to determine default values
|
||||
* for the new pixmap.
|
||||
* @mask: (out) a pointer to a place to store a bitmap representing
|
||||
* the transparency mask of the XPM file. Can be %NULL,
|
||||
* in which case transparency will be ignored.
|
||||
* for the new pixmap.
|
||||
* @mask: (out): a pointer to a place to store a bitmap representing
|
||||
* the transparency mask of the XPM file. Can be %NULL,
|
||||
* in which case transparency will be ignored.
|
||||
* @transparent_color: the color to be used for the pixels
|
||||
* that are transparent in the input file. Can be %NULL,
|
||||
* in which case a default color will be used.
|
||||
* that are transparent in the input file. Can be %NULL,
|
||||
* in which case a default color will be used.
|
||||
* @filename: the filename of a file containing XPM data.
|
||||
*
|
||||
* Create a pixmap from a XPM file.
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ PtsToRegion (int numFullPtBlocks,
|
|||
* Creates a new #GdkRegion using the polygon defined by a
|
||||
* number of points.
|
||||
*
|
||||
* Returns: a new #GdkRegion based on the given polygon
|
||||
* Returns: (transfer full): a new #GdkRegion based on the given polygon
|
||||
*
|
||||
* Deprecated: 2.22: There is no replacement. For working with paths, please
|
||||
* use Cairo.
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ typedef enum
|
|||
GDK_PROP_MODE_APPEND
|
||||
} GdkPropMode;
|
||||
|
||||
GType gdk_atom_get_type (void) G_GNUC_CONST;
|
||||
GdkAtom gdk_atom_intern (const gchar *atom_name,
|
||||
gboolean only_if_exists);
|
||||
GdkAtom gdk_atom_intern_static_string (const gchar *atom_name);
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ static void miSetExtents (GdkRegion *pReg);
|
|||
*
|
||||
* Creates a new empty #GdkRegion.
|
||||
*
|
||||
* Returns: a new empty #GdkRegion
|
||||
* Returns: (transfer full): a new empty #GdkRegion
|
||||
*/
|
||||
GdkRegion *
|
||||
gdk_region_new (void)
|
||||
|
|
@ -148,13 +148,19 @@ _gdk_region_new_from_yxbanded_rects (GdkRectangle *rects,
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* GdkRegion: (copy-func gdk_region_copy) (free-func gdk_region_destroy)
|
||||
*
|
||||
* An opaque region type.
|
||||
*/
|
||||
|
||||
/**
|
||||
* gdk_region_rectangle:
|
||||
* @rectangle: a #GdkRectangle
|
||||
*
|
||||
* Creates a new region containing the area @rectangle.
|
||||
*
|
||||
* Return value: a new region
|
||||
* Return value: (transfer full): a new region
|
||||
**/
|
||||
GdkRegion *
|
||||
gdk_region_rectangle (const GdkRectangle *rectangle)
|
||||
|
|
@ -185,7 +191,7 @@ gdk_region_rectangle (const GdkRectangle *rectangle)
|
|||
*
|
||||
* Copies @region, creating an identical new region.
|
||||
*
|
||||
* Return value: a new region identical to @region
|
||||
* Return value: (transfer full): a new region identical to @region
|
||||
**/
|
||||
GdkRegion *
|
||||
gdk_region_copy (const GdkRegion *region)
|
||||
|
|
@ -1805,7 +1811,7 @@ gdk_region_unsorted_spans_intersect_foreach (GdkRegion *region,
|
|||
* @spans: an array of #GdkSpans
|
||||
* @n_spans: the length of @spans
|
||||
* @sorted: %TRUE if @spans is sorted wrt. the y coordinate
|
||||
* @function: function to call on each span in the intersection
|
||||
* @function: (scope call): function to call on each span in the intersection
|
||||
* @data: data to pass to @function
|
||||
*
|
||||
* Calls a function on each span in the intersection of @region and @spans.
|
||||
|
|
|
|||
28
gdk/gdkrgb.c
28
gdk/gdkrgb.c
|
|
@ -3587,6 +3587,34 @@ gdk_rgb_cmap_get_info (GdkRgbCmap *cmap,
|
|||
return cmap_info;
|
||||
}
|
||||
|
||||
GdkRgbCmap *
|
||||
gdk_rgb_cmap_copy (const GdkRgbCmap *cmap)
|
||||
{
|
||||
GdkRgbCmap *copy;
|
||||
|
||||
g_return_val_if_fail (cmap != NULL, NULL);
|
||||
|
||||
copy = g_new (GdkRgbCmap, 1);
|
||||
copy->n_colors = cmap->n_colors;
|
||||
memcpy (copy->colors, cmap->colors, sizeof (copy->colors));
|
||||
copy->info_list = NULL;
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
||||
GType
|
||||
gdk_rgb_cmap_get_type (void)
|
||||
{
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkRgbCmap"),
|
||||
(GBoxedCopyFunc) gdk_rgb_cmap_copy,
|
||||
(GBoxedFreeFunc) gdk_rgb_cmap_free);
|
||||
|
||||
return our_type;
|
||||
}
|
||||
|
||||
GdkRgbCmap *
|
||||
gdk_rgb_cmap_new (guint32 *colors, gint n_colors)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GDK_TYPE_RGB_CMAP (gdk_rgb_cmap_get_type ())
|
||||
|
||||
typedef struct _GdkRgbCmap GdkRgbCmap;
|
||||
|
||||
typedef enum
|
||||
|
|
@ -125,6 +127,8 @@ void gdk_draw_indexed_image (GdkDrawable *drawable,
|
|||
const guchar *buf,
|
||||
gint rowstride,
|
||||
GdkRgbCmap *cmap);
|
||||
GType gdk_rgb_cmap_get_type (void) G_GNUC_CONST;
|
||||
GdkRgbCmap *gdk_rgb_cmap_copy (const GdkRgbCmap *cmap);
|
||||
GdkRgbCmap *gdk_rgb_cmap_new (guint32 *colors,
|
||||
gint n_colors);
|
||||
void gdk_rgb_cmap_free (GdkRgbCmap *cmap);
|
||||
|
|
|
|||
|
|
@ -71,6 +71,16 @@ gboolean gdk_selection_owner_set (GdkWindow *owner,
|
|||
GdkAtom selection,
|
||||
guint32 time_,
|
||||
gboolean send_event);
|
||||
/**
|
||||
* gdk_selection_owner_get:
|
||||
* @selection: an atom identifying a selection.
|
||||
*
|
||||
* Determines the owner of the given selection.
|
||||
*
|
||||
* Returns: (transfer none): if there is a selection owner for this window,
|
||||
* and it is a window known to the current process, the #GdkWindow that
|
||||
* owns the selection, otherwise %NULL.
|
||||
*/
|
||||
GdkWindow* gdk_selection_owner_get (GdkAtom selection);
|
||||
#endif/* GDK_MULTIHEAD_SAFE */
|
||||
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ typedef struct _GdkSpan GdkSpan;
|
|||
*/
|
||||
typedef guint32 GdkWChar;
|
||||
|
||||
#define GDK_TYPE_ATOM (gdk_atom_get_type ())
|
||||
|
||||
typedef struct _GdkAtom *GdkAtom;
|
||||
|
||||
#define GDK_ATOM_TO_POINTER(atom) (atom)
|
||||
|
|
|
|||
|
|
@ -2390,7 +2390,7 @@ gdk_window_get_position (GdkWindow *window,
|
|||
* gdk_window_get_parent() will most likely not do what you expect if
|
||||
* there are offscreen windows in the hierarchy.
|
||||
*
|
||||
* Return value: parent of @window
|
||||
* Return value: (transfer none): parent of @window
|
||||
**/
|
||||
GdkWindow*
|
||||
gdk_window_get_parent (GdkWindow *window)
|
||||
|
|
@ -2410,7 +2410,7 @@ gdk_window_get_parent (GdkWindow *window)
|
|||
*
|
||||
* See also: gdk_offscreen_window_get_embedder()
|
||||
*
|
||||
* Return value: effective parent of @window
|
||||
* Return value: (transfer none): effective parent of @window
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
|
|
@ -2444,7 +2444,7 @@ gdk_window_get_effective_parent (GdkWindow *window)
|
|||
* gdk_window_get_toplevel() will most likely not do what you expect
|
||||
* if there are offscreen windows in the hierarchy.
|
||||
*
|
||||
* Return value: the toplevel window containing @window
|
||||
* Return value: (transfer none): the toplevel window containing @window
|
||||
**/
|
||||
GdkWindow *
|
||||
gdk_window_get_toplevel (GdkWindow *window)
|
||||
|
|
@ -2476,7 +2476,7 @@ gdk_window_get_toplevel (GdkWindow *window)
|
|||
*
|
||||
* See also: gdk_offscreen_window_get_embedder()
|
||||
*
|
||||
* Return value: the effective toplevel window containing @window
|
||||
* Return value: (transfer none): the effective toplevel window containing @window
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
|
|
@ -2544,7 +2544,7 @@ gdk_window_peek_children (GdkWindow *window)
|
|||
/**
|
||||
* gdk_window_add_filter:
|
||||
* @window: a #GdkWindow
|
||||
* @function: filter callback
|
||||
* @function: (scope forever): filter callback
|
||||
* @data: data to pass to filter callback
|
||||
*
|
||||
* Adds an event filter to @window, allowing you to intercept events
|
||||
|
|
@ -2607,7 +2607,7 @@ gdk_window_add_filter (GdkWindow *window,
|
|||
/**
|
||||
* gdk_window_remove_filter:
|
||||
* @window: a #GdkWindow
|
||||
* @function: previously-added filter function
|
||||
* @function: (scope call): previously-added filter function
|
||||
* @data: user data for previously-added filter function
|
||||
*
|
||||
* Remove a filter previously added with gdk_window_add_filter().
|
||||
|
|
@ -2697,7 +2697,8 @@ gdk_screen_get_toplevel_windows (GdkScreen *screen)
|
|||
* The returned list should be freed with g_list_free(), but
|
||||
* its elements need not be freed.
|
||||
*
|
||||
* Return value: list of toplevel windows, free with g_list_free()
|
||||
* Return value: (transfer container) (element-type GdkWindow):
|
||||
* list of toplevel windows, free with g_list_free()
|
||||
*
|
||||
* Deprecated: 2.16: Use gdk_screen_get_toplevel_windows() instead.
|
||||
*/
|
||||
|
|
@ -6201,7 +6202,7 @@ _gdk_window_invalidate_for_expose (GdkWindow *window,
|
|||
* gdk_window_get_update_area() returns %NULL. You are responsible for
|
||||
* calling gdk_region_destroy() on the returned region if it's non-%NULL.
|
||||
*
|
||||
* Return value: the update area for @window
|
||||
* Return value: (nullable) (transfer full): the update area for @window
|
||||
**/
|
||||
GdkRegion *
|
||||
gdk_window_get_update_area (GdkWindow *window)
|
||||
|
|
@ -6616,7 +6617,7 @@ gdk_window_at_pointer (gint *win_x,
|
|||
* Obtains the root window (parent all other windows are inside)
|
||||
* for the default display and screen.
|
||||
*
|
||||
* Return value: the default root window
|
||||
* Return value: (transfer none): the default root window
|
||||
**/
|
||||
GdkWindow *
|
||||
gdk_get_default_root_window (void)
|
||||
|
|
@ -6634,7 +6635,7 @@ gdk_get_default_root_window (void)
|
|||
* For example in the X backend, a native window handle is an Xlib
|
||||
* <type>XID</type>.
|
||||
*
|
||||
* Return value: the newly-created #GdkWindow wrapper for the
|
||||
* Return value: (transfer full): the newly-created #GdkWindow wrapper for the
|
||||
* native window or %NULL if the window has been destroyed.
|
||||
**/
|
||||
GdkWindow *
|
||||
|
|
@ -11277,7 +11278,7 @@ gdk_window_create_similar_surface (GdkWindow * window,
|
|||
*
|
||||
* Gets the #GdkScreen associated with a #GdkWindow.
|
||||
*
|
||||
* Return value: the #GdkScreen associated with @window
|
||||
* Return value: (transfer none): the #GdkScreen associated with @window
|
||||
*
|
||||
* Since: 2.24
|
||||
*/
|
||||
|
|
@ -11295,7 +11296,7 @@ gdk_window_get_screen (GdkWindow *window)
|
|||
*
|
||||
* Gets the #GdkDisplay associated with a #GdkWindow.
|
||||
*
|
||||
* Return value: the #GdkDisplay associated with @window
|
||||
* Return value: (transfer none): the #GdkDisplay associated with @window
|
||||
*
|
||||
* Since: 2.24
|
||||
*/
|
||||
|
|
@ -11313,7 +11314,7 @@ gdk_window_get_display (GdkWindow *window)
|
|||
*
|
||||
* Gets the #GdkVisual describing the pixel format of @window.
|
||||
*
|
||||
* Return value: a #GdkVisual
|
||||
* Return value: (transfer none): a #GdkVisual
|
||||
*
|
||||
* Since: 2.24
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1253,7 +1253,7 @@ gdk_color_change (GdkColormap *colormap,
|
|||
* returns a new reference to the existing #GdkColormap object,
|
||||
* otherwise creates a new GdkColormap object and returns that
|
||||
*
|
||||
* Return value: the #GdkColormap object for @xcolormap.
|
||||
* Return value: (transfer full): the #GdkColormap object for @xcolormap.
|
||||
* Free with g_object_unref(). Note that for colormap created
|
||||
* with gdk_x11_colormap_foreign_new(), unref'ing the last
|
||||
* reference to the object will only free the #GdkColoramp
|
||||
|
|
@ -1449,7 +1449,7 @@ gdk_colormap_equal (Colormap *a,
|
|||
*
|
||||
* Returns the display of a #GdkColormap.
|
||||
*
|
||||
* Return value: an Xlib <type>Display*</type>.
|
||||
* Return value: (transfer none) (type xlib.Display): an Xlib <type>Display*</type>.
|
||||
**/
|
||||
Display *
|
||||
gdk_x11_colormap_get_xdisplay (GdkColormap *colormap)
|
||||
|
|
@ -1492,7 +1492,7 @@ gdk_x11_colormap_get_xcolormap (GdkColormap *colormap)
|
|||
*
|
||||
* Gets the screen for which this colormap was created.
|
||||
*
|
||||
* Return value: the screen for which this colormap was created.
|
||||
* Return value: (transfer none): the screen for which this colormap was created.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -431,7 +431,7 @@ _gdk_cursor_destroy (GdkCursor *cursor)
|
|||
*
|
||||
* Returns the display of a #GdkCursor.
|
||||
*
|
||||
* Return value: an Xlib <type>Display*</type>.
|
||||
* Return value: (transfer none) (type xlib.Display): an Xlib <type>Display*</type>.
|
||||
**/
|
||||
Display *
|
||||
gdk_x11_cursor_get_xdisplay (GdkCursor *cursor)
|
||||
|
|
@ -463,7 +463,7 @@ gdk_x11_cursor_get_xcursor (GdkCursor *cursor)
|
|||
*
|
||||
* Returns the display on which the #GdkCursor is defined.
|
||||
*
|
||||
* Returns: the #GdkDisplay associated to @cursor
|
||||
* Returns: (transfer none): the #GdkDisplay associated to @cursor
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
|
|
@ -488,7 +488,7 @@ gdk_cursor_get_display (GdkCursor *cursor)
|
|||
* on the cursor, GDK may not be able to obtain the image data. In this
|
||||
* case, %NULL is returned.
|
||||
*
|
||||
* Returns: a #GdkPixbuf representing @cursor, or %NULL
|
||||
* Returns: (nullable) (transfer full): a #GdkPixbuf representing @cursor, or %NULL
|
||||
*
|
||||
* Since: 2.8
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ _gdk_display_x11_init (GdkDisplayX11 *display)
|
|||
/**
|
||||
* gdk_display_open:
|
||||
* @display_name: the name of the display to open
|
||||
* @returns: a #GdkDisplay, or %NULL if the display
|
||||
* Return value: (nullable) (transfer full): a #GdkDisplay, or %NULL if the display
|
||||
* could not be opened.
|
||||
*
|
||||
* Opens a display.
|
||||
|
|
@ -541,7 +541,7 @@ gdk_display_get_n_screens (GdkDisplay *display)
|
|||
*
|
||||
* Returns a screen object for one of the screens of the display.
|
||||
*
|
||||
* Returns: the #GdkScreen object
|
||||
* Returns: (transfer none): the #GdkScreen object
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
|
|
@ -561,7 +561,7 @@ gdk_display_get_screen (GdkDisplay *display,
|
|||
*
|
||||
* Get the default #GdkScreen for @display.
|
||||
*
|
||||
* Returns: the default #GdkScreen object for @display
|
||||
* Returns: (transfer none): the default #GdkScreen object for @display
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
|
|
@ -756,7 +756,7 @@ gdk_display_flush (GdkDisplay *display)
|
|||
* on @display. This window is implicitly created by GDK.
|
||||
* See gdk_window_set_group().
|
||||
*
|
||||
* Return value: The default group leader window for @display
|
||||
* Return value: (transfer none): The default group leader window for @display
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
|
|
@ -900,7 +900,7 @@ gdk_display_x11_finalize (GObject *object)
|
|||
*
|
||||
* Find the #GdkDisplay corresponding to @display, if any exists.
|
||||
*
|
||||
* Return value: the #GdkDisplay, if found, otherwise %NULL.
|
||||
* Return value: (nullable) (transfer none): the #GdkDisplay, if found, otherwise %NULL.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
@ -948,7 +948,7 @@ _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display,
|
|||
/**
|
||||
* gdk_x11_display_get_xdisplay:
|
||||
* @display: a #GdkDisplay
|
||||
* @returns: an X display.
|
||||
* @returns: (transfer none) (type xlib.Display): an X display.
|
||||
*
|
||||
* Returns the X display of a #GdkDisplay.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -3183,7 +3183,7 @@ gdk_drag_do_leave (GdkDragContext *context, guint32 time)
|
|||
*
|
||||
* This function is called by the drag source.
|
||||
*
|
||||
* Return value: a newly created #GdkDragContext.
|
||||
* Return value: (transfer full): a newly created #GdkDragContext.
|
||||
**/
|
||||
GdkDragContext *
|
||||
gdk_drag_begin (GdkWindow *window,
|
||||
|
|
|
|||
|
|
@ -897,7 +897,7 @@ gdk_x11_get_visual (GdkDrawable *drawable)
|
|||
*
|
||||
* Returns the display of a #GdkDrawable.
|
||||
*
|
||||
* Return value: an Xlib <type>Display*</type>.
|
||||
* Returns: (type gpointer) (transfer none): an Xlib <type>Display*</type>.
|
||||
**/
|
||||
Display *
|
||||
gdk_x11_drawable_get_xdisplay (GdkDrawable *drawable)
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ gdk_fontset_name_hash_get (GdkDisplay *display)
|
|||
*
|
||||
* Returns the #GdkDisplay for @font.
|
||||
*
|
||||
* Returns: the corresponding #GdkDisplay.
|
||||
* Returns: (transfer none): the corresponding #GdkDisplay.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
@ -794,7 +794,7 @@ gdk_text_extents_wc (GdkFont *font,
|
|||
*
|
||||
* Returns the display of a #GdkFont.
|
||||
*
|
||||
* Return value: an Xlib <type>Display*</type>.
|
||||
* Returns: (type gpointer) (transfer none): an Xlib <type>Display*</type>.
|
||||
**/
|
||||
Display *
|
||||
gdk_x11_font_get_xdisplay (GdkFont *font)
|
||||
|
|
|
|||
|
|
@ -654,7 +654,7 @@ _gdk_windowing_gc_copy (GdkGC *dst_gc,
|
|||
*
|
||||
* Gets the #GdkScreen for which @gc was created
|
||||
*
|
||||
* Returns: the #GdkScreen for @gc.
|
||||
* Returns: (transfer none): the #GdkScreen for @gc.
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
|
|
@ -672,7 +672,7 @@ gdk_gc_get_screen (GdkGC *gc)
|
|||
*
|
||||
* Returns the display of a #GdkGC.
|
||||
*
|
||||
* Return value: an Xlib <type>Display*</type>.
|
||||
* Return value: (transfer none) (type xlib.Display): an Xlib <type>Display*</type>.
|
||||
*
|
||||
* Deprecated: 2.22: #GdkGC has been replaced by #cairo_t.
|
||||
**/
|
||||
|
|
@ -690,7 +690,7 @@ gdk_x11_gc_get_xdisplay (GdkGC *gc)
|
|||
*
|
||||
* Returns the X GC of a #GdkGC.
|
||||
*
|
||||
* Return value: an Xlib <type>GC</type>.
|
||||
* Return value: (transfer none) (type gpointer): an Xlib <type>GC</type>.
|
||||
*
|
||||
* Deprecated: 2.22: #GdkGC has been replaced by #cairo_t.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -748,7 +748,7 @@ gdk_x11_image_destroy (GdkImage *image)
|
|||
*
|
||||
* Returns the display of a #GdkImage.
|
||||
*
|
||||
* Return value: an Xlib <type>Display*</type>.
|
||||
* Returns: (type gpointer) (transfer none): an Xlib <type>Display*</type>.
|
||||
**/
|
||||
Display *
|
||||
gdk_x11_image_get_xdisplay (GdkImage *image)
|
||||
|
|
@ -768,7 +768,7 @@ gdk_x11_image_get_xdisplay (GdkImage *image)
|
|||
*
|
||||
* Returns the X image belonging to a #GdkImage.
|
||||
*
|
||||
* Return value: an <type>XImage*</type>.
|
||||
* Returns: (type gpointer) (transfer none): an Xlib <type>XImage*</type>.
|
||||
**/
|
||||
XImage *
|
||||
gdk_x11_image_get_ximage (GdkImage *image)
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ gdk_devices_list (void)
|
|||
* Returns the list of available input devices attached to @display.
|
||||
* The list is statically allocated and should not be freed.
|
||||
*
|
||||
* Return value: a list of #GdkDevice
|
||||
* Return value: (transfer none) (element-type GdkDevice): a list of #GdkDevice
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ get_xkb (GdkKeymapX11 *keymap_x11)
|
|||
/**
|
||||
* gdk_keymap_get_for_display:
|
||||
* @display: the #GdkDisplay.
|
||||
* @returns: the #GdkKeymap attached to @display.
|
||||
* Returns: (transfer none): the #GdkKeymap attached to @display.
|
||||
*
|
||||
* Returns the #GdkKeymap attached to @display.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -744,7 +744,7 @@ gdk_x11_get_default_root_xwindow (void)
|
|||
*
|
||||
* Gets the default GTK+ display.
|
||||
*
|
||||
* Return value: the Xlib <type>Display*</type> for the display
|
||||
* Returns: (type gpointer) (transfer none): the default Xlib <type>Display*</type>.
|
||||
* specified in the <option>--display</option> command line option
|
||||
* or the <envar>DISPLAY</envar> environment variable.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ gdk_pixmap_foreign_new (GdkNativeWindow anid)
|
|||
* For example in the X backend, a native pixmap handle is an Xlib
|
||||
* <type>XID</type>.
|
||||
*
|
||||
* Return value: the #GdkPixmap wrapper for the native pixmap,
|
||||
* Return value: (transfer none): the #GdkPixmap wrapper for the native pixmap,
|
||||
* or %NULL if there is none.
|
||||
**/
|
||||
GdkPixmap*
|
||||
|
|
@ -446,7 +446,7 @@ gdk_pixmap_lookup (GdkNativeWindow anid)
|
|||
* For example in the X backend, a native pixmap handle is an Xlib
|
||||
* <type>XID</type>.
|
||||
*
|
||||
* Return value: the #GdkPixmap wrapper for the native pixmap,
|
||||
* Return value: (transfer none): the #GdkPixmap wrapper for the native pixmap,
|
||||
* or %NULL if there is none.
|
||||
*
|
||||
* Since: 2.2
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ _gdk_screen_x11_init (GdkScreenX11 *screen)
|
|||
*
|
||||
* Gets the display to which the @screen belongs.
|
||||
*
|
||||
* Returns: the display to which @screen belongs
|
||||
* Returns: (transfer none): the display to which @screen belongs
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
@ -1383,7 +1383,7 @@ gdk_screen_make_display_name (GdkScreen *screen)
|
|||
* The returned window should be unrefed using g_object_unref() when
|
||||
* no longer needed.
|
||||
*
|
||||
* Return value: the currently active window, or %NULL.
|
||||
* Return value: (transfer full): the currently active window, or %NULL.
|
||||
*
|
||||
* Since: 2.10
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ gdk_selection_owner_set_for_display (GdkDisplay *display,
|
|||
* process if a foreign window was previously created for that
|
||||
* window, but a new foreign window will never be created by this call.
|
||||
*
|
||||
* Returns: if there is a selection owner for this window, and it is a
|
||||
* Returns: (transfer none): if there is a selection owner for this window, and it is a
|
||||
* window known to the current process, the #GdkWindow that owns the
|
||||
* selection, otherwise %NULL.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ set_environment (gpointer user_data)
|
|||
* @argv: child's argument vector
|
||||
* @envp: child's environment, or %NULL to inherit parent's
|
||||
* @flags: flags from #GSpawnFlags
|
||||
* @child_setup: function to run in the child just before exec()
|
||||
* @child_setup: (scope call): function to run in the child just before exec()
|
||||
* @user_data: user data for @child_setup
|
||||
* @child_pid: return location for child process ID, or %NULL
|
||||
* @error: return location for error
|
||||
|
|
@ -115,7 +115,7 @@ gdk_spawn_on_screen (GdkScreen *screen,
|
|||
* @argv: child's argument vector
|
||||
* @envp: child's environment, or %NULL to inherit parent's
|
||||
* @flags: flags from #GSpawnFlags
|
||||
* @child_setup: function to run in the child just before exec()
|
||||
* @child_setup: (scope call): function to run in the child just before exec()
|
||||
* @user_data: user data for @child_setup
|
||||
* @child_pid: return location for child process ID, or %NULL
|
||||
* @standard_input: return location for file descriptor to write to
|
||||
|
|
|
|||
|
|
@ -578,7 +578,7 @@ gdk_x11_screen_lookup_visual (GdkScreen *screen,
|
|||
*
|
||||
* Returns a #GdkVisual corresponding to a X visual.
|
||||
*
|
||||
* Return value: the #GdkVisual.
|
||||
* Returns: (transfer none): the #GdkVisual.
|
||||
*
|
||||
* Deprecated:2.24: Use gdk_x11_screen_lookup_visual() instead
|
||||
*/
|
||||
|
|
@ -647,7 +647,7 @@ gdk_visual_equal (Visual *a,
|
|||
*
|
||||
* Returns the X visual belonging to a #GdkVisual.
|
||||
*
|
||||
* Return value: an Xlib <type>Visual*</type>.
|
||||
* Returns: (type gpointer) (transfer none): an Xlib <type>Visual*</type>.
|
||||
**/
|
||||
Visual *
|
||||
gdk_x11_visual_get_xvisual (GdkVisual *visual)
|
||||
|
|
|
|||
|
|
@ -868,7 +868,7 @@ x_event_mask_to_gdk_event_mask (long mask)
|
|||
* For example in the X backend, a native window handle is an Xlib
|
||||
* <type>XID</type>.
|
||||
*
|
||||
* Return value: a #GdkWindow wrapper for the native window or
|
||||
* Return value: (transfer full): a #GdkWindow wrapper for the native window or
|
||||
* %NULL if the window has been destroyed. The wrapper will be
|
||||
* newly created, if one doesn't exist already.
|
||||
*
|
||||
|
|
@ -895,7 +895,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
|
|||
* was already known to GDK, a new reference to the existing
|
||||
* #GdkWindow is returned.
|
||||
*
|
||||
* Return value: a #GdkWindow wrapper for the native window or
|
||||
* Return value: (transfer full): a #GdkWindow wrapper for the native window or
|
||||
* %NULL if the window has been destroyed. The wrapper will be
|
||||
* newly created, if one doesn't exist already.
|
||||
*
|
||||
|
|
@ -992,7 +992,7 @@ gdk_x11_window_foreign_new_for_display (GdkDisplay *display,
|
|||
* For example in the X backend, a native window handle is an Xlib
|
||||
* <type>XID</type>.
|
||||
*
|
||||
* Return value: the #GdkWindow wrapper for the native window,
|
||||
* Return value: (transfer none): the #GdkWindow wrapper for the native window,
|
||||
* or %NULL if there is none.
|
||||
*
|
||||
* Since: 2.2
|
||||
|
|
@ -1013,7 +1013,7 @@ gdk_window_lookup_for_display (GdkDisplay *display,
|
|||
*
|
||||
* Looks up the #GdkWindow that wraps the given native window handle.
|
||||
*
|
||||
* Return value: the #GdkWindow wrapper for the native window,
|
||||
* Return value: (transfer none): the #GdkWindow wrapper for the native window,
|
||||
* or %NULL if there is none.
|
||||
*
|
||||
* Since: 2.24
|
||||
|
|
@ -1034,7 +1034,7 @@ gdk_x11_window_lookup_for_display (GdkDisplay *display,
|
|||
* For example in the X backend, a native window handle is an Xlib
|
||||
* <type>XID</type>.
|
||||
*
|
||||
* Return value: the #GdkWindow wrapper for the native window,
|
||||
* Return value: (transfer none): the #GdkWindow wrapper for the native window,
|
||||
* or %NULL if there is none.
|
||||
*
|
||||
* Deprecated: 2.24: Use gdk_x11_window_lookup_for_display() or equivalent
|
||||
|
|
@ -4402,7 +4402,7 @@ gdk_window_set_keep_below (GdkWindow *window, gboolean setting)
|
|||
*
|
||||
* Returns the group leader window for @window. See gdk_window_set_group().
|
||||
*
|
||||
* Return value: the group leader window for @window
|
||||
* Return value: (transfer none): the group leader window for @window
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -40,7 +40,19 @@ extern Display *gdk_display;
|
|||
|
||||
Display *gdk_x11_drawable_get_xdisplay (GdkDrawable *drawable);
|
||||
XID gdk_x11_drawable_get_xid (GdkDrawable *drawable);
|
||||
/**
|
||||
* gdk_x11_window_get_drawable_impl:
|
||||
* @window: a #GdkWindow
|
||||
*
|
||||
* Returns: (transfer none): the drawable implementation for @window
|
||||
*/
|
||||
GdkDrawable *gdk_x11_window_get_drawable_impl (GdkWindow *window);
|
||||
/**
|
||||
* gdk_x11_pixmap_get_drawable_impl:
|
||||
* @pixmap: a #GdkPixmap
|
||||
*
|
||||
* Returns: (transfer none): the drawable implementation for @pixmap
|
||||
*/
|
||||
GdkDrawable *gdk_x11_pixmap_get_drawable_impl (GdkPixmap *pixmap);
|
||||
Display *gdk_x11_image_get_xdisplay (GdkImage *image);
|
||||
XImage *gdk_x11_image_get_ximage (GdkImage *image);
|
||||
|
|
@ -210,6 +222,14 @@ gpointer gdk_x11_font_get_xfont (GdkFont *font);
|
|||
|
||||
#ifndef GDK_DISABLE_DEPRECATED
|
||||
|
||||
/**
|
||||
* gdk_x11_font_get_xdisplay:
|
||||
* @font: a #GdkFont
|
||||
*
|
||||
* Returns the display of a #GdkFont.
|
||||
*
|
||||
* Returns: (type gpointer) (transfer none): an Xlib <type>Display*</type>.
|
||||
*/
|
||||
Display * gdk_x11_font_get_xdisplay (GdkFont *font);
|
||||
const char * gdk_x11_font_get_name (GdkFont *font);
|
||||
|
||||
|
|
|
|||
2
git.mk
2
git.mk
|
|
@ -8,8 +8,6 @@
|
|||
# is permitted in any medium without royalty provided the copyright
|
||||
# notice and this notice are preserved.
|
||||
#
|
||||
# The canonical source for this file is https://github.com/behdad/git.mk.
|
||||
#
|
||||
# To use in your project, import this file in your git repo's toplevel,
|
||||
# then do "make -f git.mk". This modifies all Makefile.am files in
|
||||
# your project to -include git.mk. Remember to add that line to new
|
||||
|
|
|
|||
|
|
@ -1081,7 +1081,7 @@ Gtk_2_0_gir_CFLAGS = \
|
|||
$(INCLUDES) \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
-DGTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
|
||||
Gtk_2_0_gir_LIBS = $(gtktargetlib)
|
||||
Gtk_2_0_gir_LIBS = $(gtktargetlib) $(top_builddir)/gdk/$(gdktargetlib)
|
||||
Gtk_2_0_gir_FILES = \
|
||||
$(filter-out gtkprivate.h gtkpixdatautils.h gtktextlayout.h gtkmarshal.h, \
|
||||
$(introspection_files))
|
||||
|
|
|
|||
|
|
@ -5,7 +5,14 @@ if test "x$gtk_all_c_sources" = x; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
grep 'IN_FILE' ${srcdir-.}/gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files
|
||||
{ cd ${srcdir-.}; grep '^ *# *define __' $gtk_all_c_sources; } | sed 's/.*define //;s/ *$//' | sort > actual-files
|
||||
srcdir=${srcdir-.}
|
||||
|
||||
grep 'IN_FILE' "$srcdir/gtk.symbols" | sed 's/^[^(]*(//;s/).*//;s/__GTK_MARSHAL_MARSHAL_C__/__gtk_marshal_MARSHAL_C__/' | grep __ | sort -u > expected-files
|
||||
{
|
||||
for file in $gtk_all_c_sources; do
|
||||
test -f "$file" || file="$srcdir/$file"
|
||||
grep '^ *# *define __' "$file"
|
||||
done
|
||||
} | sed 's/.*define //;s/ *$//;s/__GTK_MARSHAL_MARSHAL_C__/__gtk_marshal_MARSHAL_C__/' | sort > actual-files
|
||||
|
||||
diff expected-files actual-files && rm -f expected-files actual-files
|
||||
|
|
|
|||
|
|
@ -3949,6 +3949,7 @@ gtk_statusbar_set_has_resize_grip
|
|||
#if IN_FILE(__GTK_STOCK_C__)
|
||||
gtk_stock_add
|
||||
gtk_stock_add_static
|
||||
gtk_stock_item_get_type G_GNUC_CONST
|
||||
gtk_stock_item_copy
|
||||
gtk_stock_item_free
|
||||
gtk_stock_list_ids
|
||||
|
|
|
|||
|
|
@ -1103,7 +1103,7 @@ gtk_about_dialog_get_copyright (GtkAboutDialog *about)
|
|||
/**
|
||||
* gtk_about_dialog_set_copyright:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @copyright: (allow-none) the copyright string
|
||||
* @copyright: (allow-none): the copyright string
|
||||
*
|
||||
* Sets the copyright string to display in the about dialog.
|
||||
* This should be a short string of one or two lines.
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ gtk_accel_groups_from_object (GObject *object)
|
|||
/**
|
||||
* gtk_accel_group_find:
|
||||
* @accel_group: a #GtkAccelGroup
|
||||
* @find_func: a function to filter the entries of @accel_group with
|
||||
* @find_func: (scope call): a function to filter the entries of @accel_group with
|
||||
* @data: data to pass to @find_func
|
||||
* @returns: (transfer none): the key of the first entry passing
|
||||
* @find_func. The key is owned by GTK+ and must not be freed.
|
||||
|
|
@ -806,7 +806,9 @@ _gtk_accel_group_reconnect (GtkAccelGroup *accel_group,
|
|||
* @accel_key: key value of the accelerator
|
||||
* @accel_mods: modifier combination of the accelerator
|
||||
* @n_entries: (allow-none): location to return the number of entries found, or %NULL
|
||||
* @returns: (allow-none): an array of @n_entries #GtkAccelGroupEntry elements, or %NULL. The array is owned by GTK+ and must not be freed.
|
||||
* @returns: (allow-none) (transfer none) (array length=n_entries): an array
|
||||
* of @n_entries #GtkAccelGroupEntry elements, or %NULL. The array is owned
|
||||
* by GTK+ and must not be freed.
|
||||
*
|
||||
* Queries an accelerator group for all entries matching @accel_key and
|
||||
* @accel_mods.
|
||||
|
|
|
|||
|
|
@ -748,7 +748,7 @@ gtk_accel_map_save (const gchar *file_name)
|
|||
/**
|
||||
* gtk_accel_map_foreach:
|
||||
* @data: data to be passed into @foreach_func
|
||||
* @foreach_func: function to be executed for each accel map entry which
|
||||
* @foreach_func: (scope call): function to be executed for each accel map entry which
|
||||
* is not filtered out
|
||||
*
|
||||
* Loops over the entries in the accelerator map whose accel path
|
||||
|
|
@ -785,7 +785,7 @@ gtk_accel_map_foreach (gpointer data,
|
|||
/**
|
||||
* gtk_accel_map_foreach_unfiltered:
|
||||
* @data: data to be passed into @foreach_func
|
||||
* @foreach_func: function to be executed for each accel map entry
|
||||
* @foreach_func: (scope call): function to be executed for each accel map entry
|
||||
*
|
||||
* Loops over all entries in the accelerator map, and execute
|
||||
* @foreach_func on each. The signature of @foreach_func is that of
|
||||
|
|
@ -981,7 +981,7 @@ gtk_accel_map_init (GtkAccelMap *accel_map)
|
|||
* map via the ::changed signal; it isn't a parameter to the
|
||||
* other accelerator map functions.
|
||||
*
|
||||
* Return value: the global #GtkAccelMap object
|
||||
* Return value: (transfer none): the global #GtkAccelMap object
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -1200,7 +1200,7 @@ gtk_action_group_add_toggle_actions_full (GtkActionGroup *action_gro
|
|||
* @n_entries: the number of entries
|
||||
* @value: the value of the action to activate initially, or -1 if
|
||||
* no action should be activated
|
||||
* @on_change: the callback to connect to the changed signal
|
||||
* @on_change: (allow-none) (scope async): the callback to connect to the changed signal
|
||||
* @user_data: data to pass to the action callbacks
|
||||
*
|
||||
* This is a convenience routine to create a group of radio actions and
|
||||
|
|
@ -1233,7 +1233,7 @@ gtk_action_group_add_radio_actions (GtkActionGroup *action_group,
|
|||
* @n_entries: the number of entries
|
||||
* @value: the value of the action to activate initially, or -1 if
|
||||
* no action should be activated
|
||||
* @on_change: the callback to connect to the changed signal
|
||||
* @on_change: (allow-none) (scope notified) (closure user_data) (destroy destroy): the callback to connect to the changed signal
|
||||
* @user_data: data to pass to the action callbacks
|
||||
* @destroy: destroy notification callback for @user_data
|
||||
*
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
|
|||
GTK_PARAM_READWRITE));
|
||||
|
||||
/**
|
||||
* GtkAssistant:header-image:
|
||||
* GtkAssistant:sidebar-image:
|
||||
*
|
||||
* The image that is displayed next to the page.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -570,7 +570,7 @@ gtk_binding_entry_activate (GtkBindingEntry *entry,
|
|||
* GTK+ maintains a global list of binding sets. Each binding set has
|
||||
* a unique name which needs to be specified upon creation.
|
||||
*
|
||||
* Return value: new binding set
|
||||
* Return value: (transfer none): new binding set
|
||||
*/
|
||||
GtkBindingSet*
|
||||
gtk_binding_set_new (const gchar *set_name)
|
||||
|
|
@ -601,7 +601,7 @@ gtk_binding_set_new (const gchar *set_name)
|
|||
* the passed in class structure. New binding sets are created on
|
||||
* demand by this function.
|
||||
*
|
||||
* Return value: the binding set corresponding to @object_class
|
||||
* Return value: (transfer none): the binding set corresponding to @object_class
|
||||
*/
|
||||
GtkBindingSet*
|
||||
gtk_binding_set_by_class (gpointer object_class)
|
||||
|
|
|
|||
|
|
@ -710,7 +710,7 @@ gtk_calendar_init (GtkCalendar *calendar)
|
|||
for (i=0; i<7; i++)
|
||||
{
|
||||
#ifndef G_OS_WIN32
|
||||
tmp_dt = g_date_time_new_utc (2001, 1, i + 1, 12, 0, 0.0);
|
||||
tmp_dt = g_date_time_new_utc (2001, 1, i + 7, 12, 0, 0.0);
|
||||
if (tmp_dt)
|
||||
{
|
||||
tmp_str = g_date_time_format (tmp_dt, "%a");
|
||||
|
|
|
|||
|
|
@ -569,8 +569,8 @@ gtk_clipboard_set_contents (GtkClipboard *clipboard,
|
|||
* @targets: array containing information about the available forms for the
|
||||
* clipboard data
|
||||
* @n_targets: number of elements in @targets
|
||||
* @get_func: function to call to get the actual clipboard data
|
||||
* @clear_func: when the clipboard contents are set again, this function will
|
||||
* @get_func: (scope async): function to call to get the actual clipboard data
|
||||
* @clear_func: (scope async): when the clipboard contents are set again, this function will
|
||||
* be called, and @get_func will not be subsequently called.
|
||||
* @user_data: user data to pass to @get_func and @clear_func.
|
||||
*
|
||||
|
|
@ -605,8 +605,8 @@ gtk_clipboard_set_with_data (GtkClipboard *clipboard,
|
|||
* @targets: array containing information about the available forms for the
|
||||
* clipboard data
|
||||
* @n_targets: number of elements in @targets
|
||||
* @get_func: function to call to get the actual clipboard data
|
||||
* @clear_func: when the clipboard contents are set again, this function will
|
||||
* @get_func: (scope async): function to call to get the actual clipboard data
|
||||
* @clear_func: (scope async): when the clipboard contents are set again, this function will
|
||||
* be called, and @get_func will not be subsequently called.
|
||||
* @owner: an object that "owns" the data. This object will be passed
|
||||
* to the callbacks when called.
|
||||
|
|
@ -878,7 +878,7 @@ selection_received (GtkWidget *widget,
|
|||
* @clipboard: a #GtkClipboard
|
||||
* @target: an atom representing the form into which the clipboard
|
||||
* owner should convert the selection.
|
||||
* @callback: A function to call when the results are received
|
||||
* @callback: (scope async): A function to call when the results are received
|
||||
* (or the retrieval fails). If the retrieval fails
|
||||
* the length field of @selection_data will be
|
||||
* negative.
|
||||
|
|
@ -959,7 +959,7 @@ request_text_received_func (GtkClipboard *clipboard,
|
|||
/**
|
||||
* gtk_clipboard_request_text:
|
||||
* @clipboard: a #GtkClipboard
|
||||
* @callback: a function to call when the text is received,
|
||||
* @callback: (scope async): a function to call when the text is received,
|
||||
* or the retrieval fails. (It will always be called
|
||||
* one way or the other.)
|
||||
* @user_data: user data to pass to @callback.
|
||||
|
|
@ -1024,7 +1024,7 @@ request_rich_text_received_func (GtkClipboard *clipboard,
|
|||
* gtk_clipboard_request_rich_text:
|
||||
* @clipboard: a #GtkClipboard
|
||||
* @buffer: a #GtkTextBuffer
|
||||
* @callback: a function to call when the text is received,
|
||||
* @callback: (scope async): a function to call when the text is received,
|
||||
* or the retrieval fails. (It will always be called
|
||||
* one way or the other.)
|
||||
* @user_data: user data to pass to @callback.
|
||||
|
|
@ -1116,7 +1116,7 @@ request_image_received_func (GtkClipboard *clipboard,
|
|||
/**
|
||||
* gtk_clipboard_request_image:
|
||||
* @clipboard: a #GtkClipboard
|
||||
* @callback: a function to call when the image is received,
|
||||
* @callback: (scope async): a function to call when the image is received,
|
||||
* or the retrieval fails. (It will always be called
|
||||
* one way or the other.)
|
||||
* @user_data: user data to pass to @callback.
|
||||
|
|
@ -1171,7 +1171,7 @@ request_uris_received_func (GtkClipboard *clipboard,
|
|||
/**
|
||||
* gtk_clipboard_request_uris:
|
||||
* @clipboard: a #GtkClipboard
|
||||
* @callback: a function to call when the URIs are received,
|
||||
* @callback: (scope async): a function to call when the URIs are received,
|
||||
* or the retrieval fails. (It will always be called
|
||||
* one way or the other.)
|
||||
* @user_data: user data to pass to @callback.
|
||||
|
|
@ -1225,7 +1225,7 @@ request_targets_received_func (GtkClipboard *clipboard,
|
|||
/**
|
||||
* gtk_clipboard_request_targets:
|
||||
* @clipboard: a #GtkClipboard
|
||||
* @callback: a function to call when the targets are received,
|
||||
* @callback: (scope async): a function to call when the targets are received,
|
||||
* or the retrieval fails. (It will always be called
|
||||
* one way or the other.)
|
||||
* @user_data: user data to pass to @callback.
|
||||
|
|
|
|||
|
|
@ -2892,14 +2892,14 @@ gtk_color_selection_set_change_palette_hook (GtkColorSelectionChangePaletteFunc
|
|||
|
||||
/**
|
||||
* gtk_color_selection_set_change_palette_with_screen_hook:
|
||||
* @func: a function to call when the custom palette needs saving.
|
||||
* @func: (scope forever): a function to call when the custom palette needs saving.
|
||||
*
|
||||
* Installs a global function to be called whenever the user tries to
|
||||
* modify the palette in a color selection. This function should save
|
||||
* the new palette contents, and update the GtkSettings property
|
||||
* "gtk-color-palette" so all GtkColorSelection widgets will be modified.
|
||||
*
|
||||
* Return value: the previous change palette hook (that was replaced).
|
||||
* Return value: (type gpointer) (transfer none): the previous change palette hook (that was replaced).
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -6099,7 +6099,7 @@ gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box)
|
|||
*
|
||||
* Returns the current row separator function.
|
||||
*
|
||||
* Return value: the current row separator function.
|
||||
* Return value: (type gpointer) (transfer none): the current row separator function.
|
||||
*
|
||||
* Since: 2.6
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1481,7 +1481,7 @@ gtk_container_resize_children (GtkContainer *container)
|
|||
/**
|
||||
* gtk_container_forall:
|
||||
* @container: a #GtkContainer
|
||||
* @callback: a callback
|
||||
* @callback: (scope call): a callback
|
||||
* @callback_data: callback user data
|
||||
*
|
||||
* Invokes @callback on each child of @container, including children
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ struct _GtkContainerClass
|
|||
GtkCallback callback,
|
||||
gpointer callback_data);
|
||||
void (*set_focus_child) (GtkContainer *container,
|
||||
GtkWidget *widget);
|
||||
GtkWidget *child);
|
||||
GType (*child_type) (GtkContainer *container);
|
||||
gchar* (*composite_name) (GtkContainer *container,
|
||||
GtkWidget *child);
|
||||
|
|
|
|||
12
gtk/gtkgc.c
12
gtk/gtkgc.c
|
|
@ -77,6 +77,18 @@ static GHashTable *gc_key_ht = NULL;
|
|||
static GHashTable *gc_gc_ht = NULL;
|
||||
static GQuark quark_gtk_gc_drawable_ht = 0;
|
||||
|
||||
/**
|
||||
* gtk_gc_get:
|
||||
* @depth: the depth of the graphics context
|
||||
* @colormap: a #GdkColormap
|
||||
* @values: a #GdkGCValues structure containing values for the graphics context
|
||||
* @values_mask: a mask indicating which fields of @values are set
|
||||
*
|
||||
* Gets a shared #GdkGC matching the given values.
|
||||
*
|
||||
* Returns: (transfer full): a #GdkGC. Release it with gtk_gc_release()
|
||||
* when no longer needed.
|
||||
*/
|
||||
GdkGC*
|
||||
gtk_gc_get (gint depth,
|
||||
GdkColormap *colormap,
|
||||
|
|
|
|||
|
|
@ -814,6 +814,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
|||
/* Signals */
|
||||
/**
|
||||
* GtkIconView::set-scroll-adjustments
|
||||
* @icon_view: the object which received the signal
|
||||
* @horizontal: the horizontal #GtkAdjustment
|
||||
* @vertical: the vertical #GtkAdjustment
|
||||
*
|
||||
|
|
|
|||
|
|
@ -625,7 +625,7 @@ gtk_im_context_set_surrounding (GtkIMContext *context,
|
|||
* string of text holding context around the insertion point.
|
||||
* If the function returns %TRUE, then you must free the result
|
||||
* stored in this location with g_free().
|
||||
* @cursor_index: (out) location to store byte index of the insertion
|
||||
* @cursor_index: (out): location to store byte index of the insertion
|
||||
* cursor within @text.
|
||||
*
|
||||
* Retrieves context around the insertion point. Input methods
|
||||
|
|
|
|||
|
|
@ -663,6 +663,7 @@ gtk_layout_class_init (GtkLayoutClass *class)
|
|||
|
||||
/**
|
||||
* GtkLayout::set-scroll-adjustments
|
||||
* @layout: the object which received the signal
|
||||
* @horizontal: the horizontal #GtkAdjustment
|
||||
* @vertical: the vertical #GtkAdjustment
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1195,16 +1195,24 @@ gboolean
|
|||
gtk_list_store_iter_is_valid (GtkListStore *list_store,
|
||||
GtkTreeIter *iter)
|
||||
{
|
||||
GSequenceIter *seq_iter;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_LIST_STORE (list_store), FALSE);
|
||||
g_return_val_if_fail (iter != NULL, FALSE);
|
||||
|
||||
if (!VALID_ITER (iter, list_store))
|
||||
if (iter->user_data == NULL ||
|
||||
list_store->stamp != iter->stamp)
|
||||
return FALSE;
|
||||
|
||||
if (g_sequence_iter_get_sequence (iter->user_data) != list_store->seq)
|
||||
return FALSE;
|
||||
for (seq_iter = g_sequence_get_begin_iter (list_store->seq);
|
||||
!g_sequence_iter_is_end (seq_iter);
|
||||
seq_iter = g_sequence_iter_next (seq_iter))
|
||||
{
|
||||
if (seq_iter == iter->user_data)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean real_gtk_list_store_row_draggable (GtkTreeDragSource *drag_source,
|
||||
|
|
|
|||
|
|
@ -1939,6 +1939,11 @@ gtk_grab_remove (GtkWidget *widget)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_init_add:
|
||||
* @function: (scope async): function to call during initialization
|
||||
* @data: (allow-none): data to pass to @function
|
||||
*/
|
||||
void
|
||||
gtk_init_add (GtkFunction function,
|
||||
gpointer data)
|
||||
|
|
@ -1952,6 +1957,15 @@ gtk_init_add (GtkFunction function,
|
|||
init_functions = g_list_prepend (init_functions, init);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_key_snooper_install:
|
||||
* @snooper: (scope forever): key snooper function to install
|
||||
* @func_data: (allow-none): data to pass to @snooper
|
||||
*
|
||||
* Installs a key snooper function.
|
||||
*
|
||||
* Returns: handler id for the key snooper
|
||||
*/
|
||||
guint
|
||||
gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
||||
gpointer func_data)
|
||||
|
|
@ -2013,6 +2027,16 @@ gtk_invoke_key_snoopers (GtkWidget *grab_widget,
|
|||
return return_val;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_quit_add_full:
|
||||
* @main_level: main loop level
|
||||
* @function: (scope notified) (closure data) (destroy destroy): function to call when the main loop level is left
|
||||
* @marshal: (scope notified) (closure data) (destroy destroy) (allow-none): marshal to invoke @function
|
||||
* @data: (allow-none): data to pass to @function
|
||||
* @destroy: (allow-none): destroy notifier for @data
|
||||
*
|
||||
* Returns: handler id for the quit function
|
||||
*/
|
||||
guint
|
||||
gtk_quit_add_full (guint main_level,
|
||||
GtkFunction function,
|
||||
|
|
@ -2075,6 +2099,14 @@ gtk_quit_add_destroy (guint main_level,
|
|||
gtk_quit_add (main_level, (GtkFunction) gtk_quit_destructor, object_p);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_quit_add:
|
||||
* @main_level: main loop level
|
||||
* @function: (scope async): function to call when the main loop level is left
|
||||
* @data: (allow-none): data to pass to @function
|
||||
*
|
||||
* Returns: handler id for the quit function
|
||||
*/
|
||||
guint
|
||||
gtk_quit_add (guint main_level,
|
||||
GtkFunction function,
|
||||
|
|
@ -2131,6 +2163,18 @@ gtk_quit_remove_by_data (gpointer data)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_timeout_add_full:
|
||||
* @interval: timeout interval in milliseconds
|
||||
* @function: (scope notified) (closure data) (destroy destroy): function to call when the timeout expires
|
||||
* @marshal: (scope notified) (closure data) (destroy destroy) (allow-none): marshal to invoke @function
|
||||
* @data: (allow-none): data to pass to @function
|
||||
* @destroy: (allow-none): destroy notifier for @data
|
||||
*
|
||||
* Registers a timeout function.
|
||||
*
|
||||
* Returns: handler id for the timeout source
|
||||
*/
|
||||
guint
|
||||
gtk_timeout_add_full (guint32 interval,
|
||||
GtkFunction function,
|
||||
|
|
@ -2156,6 +2200,16 @@ gtk_timeout_add_full (guint32 interval,
|
|||
return g_timeout_add_full (0, interval, function, data, destroy);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_timeout_add:
|
||||
* @interval: timeout interval in milliseconds
|
||||
* @function: (scope forever): function to call when the timeout expires
|
||||
* @data: (allow-none): data to pass to @function
|
||||
*
|
||||
* Registers a timeout function.
|
||||
*
|
||||
* Returns: handler id for the timeout source
|
||||
*/
|
||||
guint
|
||||
gtk_timeout_add (guint32 interval,
|
||||
GtkFunction function,
|
||||
|
|
@ -2170,6 +2224,18 @@ gtk_timeout_remove (guint tag)
|
|||
g_source_remove (tag);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_idle_add_full:
|
||||
* @priority: priority of the idle source
|
||||
* @function: (scope notified) (closure data) (destroy destroy): function to call when the main loop is idle
|
||||
* @marshal: (scope notified) (closure data) (destroy destroy) (allow-none): marshal to invoke @function
|
||||
* @data: (allow-none): data to pass to @function
|
||||
* @destroy: (allow-none): destroy notifier for @data
|
||||
*
|
||||
* Registers an idle function with a priority.
|
||||
*
|
||||
* Returns: handler id for the idle source
|
||||
*/
|
||||
guint
|
||||
gtk_idle_add_full (gint priority,
|
||||
GtkFunction function,
|
||||
|
|
@ -2195,6 +2261,15 @@ gtk_idle_add_full (gint priority,
|
|||
return g_idle_add_full (priority, function, data, destroy);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_idle_add:
|
||||
* @function: (scope forever): function to call when the main loop is idle
|
||||
* @data: (allow-none): data to pass to @function
|
||||
*
|
||||
* Registers an idle function.
|
||||
*
|
||||
* Returns: handler id for the idle source
|
||||
*/
|
||||
guint
|
||||
gtk_idle_add (GtkFunction function,
|
||||
gpointer data)
|
||||
|
|
@ -2202,6 +2277,16 @@ gtk_idle_add (GtkFunction function,
|
|||
return g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, function, data, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_idle_add_priority:
|
||||
* @priority: priority of the idle source
|
||||
* @function: (scope forever): function to call when the main loop is idle
|
||||
* @data: (allow-none): data to pass to @function
|
||||
*
|
||||
* Registers an idle function with a priority.
|
||||
*
|
||||
* Returns: handler id for the idle source
|
||||
*/
|
||||
guint
|
||||
gtk_idle_add_priority (gint priority,
|
||||
GtkFunction function,
|
||||
|
|
@ -2223,6 +2308,19 @@ gtk_idle_remove_by_data (gpointer data)
|
|||
g_warning ("gtk_idle_remove_by_data(%p): no such idle", data);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_input_add_full:
|
||||
* @source: file descriptor to watch
|
||||
* @condition: condition to watch for
|
||||
* @function: (scope notified) (closure data) (destroy destroy): function to call when @condition is met
|
||||
* @marshal: (scope notified) (closure data) (destroy destroy) (allow-none): marshal to invoke @function
|
||||
* @data: (allow-none): data to pass to @function
|
||||
* @destroy: (allow-none): destroy notifier for @data
|
||||
*
|
||||
* Registers an input function.
|
||||
*
|
||||
* Returns: handler id for the input source
|
||||
*/
|
||||
guint
|
||||
gtk_input_add_full (gint source,
|
||||
GdkInputCondition condition,
|
||||
|
|
|
|||
|
|
@ -1151,6 +1151,14 @@ attach_widget_screen_changed (GtkWidget *attach_widget,
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_menu_attach_to_widget:
|
||||
* @menu: a #GtkMenu
|
||||
* @attach_widget: the #GtkWidget that the menu will be attached to
|
||||
* @detacher: (allow-none) (scope async): a callback called when the menu is detached, or %NULL
|
||||
*
|
||||
* Attaches @menu to @attach_widget.
|
||||
*/
|
||||
void
|
||||
gtk_menu_attach_to_widget (GtkMenu *menu,
|
||||
GtkWidget *attach_widget,
|
||||
|
|
@ -1387,7 +1395,7 @@ popup_grab_on_window (GdkWindow *window,
|
|||
* @menu: a #GtkMenu.
|
||||
* @parent_menu_shell: (allow-none): the menu shell containing the triggering menu item, or %NULL
|
||||
* @parent_menu_item: (allow-none): the menu item whose activation triggered the popup, or %NULL
|
||||
* @func: (allow-none): a user supplied function used to position the menu, or %NULL
|
||||
* @func: (allow-none) (scope async): a user supplied function used to position the menu, or %NULL
|
||||
* @data: (allow-none): user supplied data to be passed to @func.
|
||||
* @button: the mouse button which was pressed to initiate the event.
|
||||
* @activate_time: the time at which the activation event occurred.
|
||||
|
|
|
|||
|
|
@ -7820,7 +7820,7 @@ gtk_notebook_set_group (GtkNotebook *notebook,
|
|||
/**
|
||||
* gtk_notebook_set_group_name:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @name: (allow-none): the name of the notebook group, or %NULL to unset it
|
||||
* @group_name: (allow-none): the name of the notebook group, or %NULL to unset it
|
||||
*
|
||||
* Sets a group name for @notebook.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -2232,7 +2232,7 @@ gtk_paned_toggle_handle_focus (GtkPaned *paned)
|
|||
|
||||
/**
|
||||
* gtk_paned_get_handle_window:
|
||||
* @panede: a #GtkPaned
|
||||
* @paned: a #GtkPaned
|
||||
*
|
||||
* Returns the #GdkWindow of the handle. This function is
|
||||
* useful when handling button or motion events because it
|
||||
|
|
|
|||
|
|
@ -454,7 +454,8 @@ gtk_paper_size_get_paper_sizes (gboolean include_custom)
|
|||
{
|
||||
GList *list = NULL;
|
||||
guint i;
|
||||
#ifdef G_OS_UNIX /* _gtk_load_custom_papers() only on Unix so far */
|
||||
#ifdef G_OS_UNIX
|
||||
/* _gtk_load_custom_papers() only on Unix so far */
|
||||
if (include_custom)
|
||||
{
|
||||
GList *page_setups, *l;
|
||||
|
|
|
|||
|
|
@ -869,7 +869,6 @@ add_grabbed_key_always (gpointer key,
|
|||
|
||||
/**
|
||||
* _gtk_plug_add_all_grabbed_keys:
|
||||
*
|
||||
* @plug: a #GtkPlug
|
||||
*
|
||||
* Calls _gtk_plug_windowing_add_grabbed_key() on all the grabbed keys
|
||||
|
|
@ -997,7 +996,6 @@ gtk_plug_check_resize (GtkContainer *container)
|
|||
|
||||
/**
|
||||
* _gtk_plug_handle_modality_on:
|
||||
*
|
||||
* @plug: a #GtkPlug
|
||||
*
|
||||
* Called from the GtkPlug backend when the corresponding socket has
|
||||
|
|
@ -1019,7 +1017,6 @@ _gtk_plug_handle_modality_on (GtkPlug *plug)
|
|||
|
||||
/**
|
||||
* _gtk_plug_handle_modality_off:
|
||||
*
|
||||
* @plug: a #GtkPlug
|
||||
*
|
||||
* Called from the GtkPlug backend when the corresponding socket has
|
||||
|
|
@ -1037,7 +1034,6 @@ _gtk_plug_handle_modality_off (GtkPlug *plug)
|
|||
|
||||
/**
|
||||
* _gtk_plug_focus_first_last:
|
||||
*
|
||||
* @plug: a #GtkPlug
|
||||
* @direction: a direction
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1019,7 +1019,7 @@ gtk_print_run_page_setup_dialog (GtkWindow *parent,
|
|||
* @parent: (allow-none): transient parent, or %NULL
|
||||
* @page_setup: (allow-none): an existing #GtkPageSetup, or %NULL
|
||||
* @settings: a #GtkPrintSettings
|
||||
* @done_cb: a function to call when the user saves the modified page setup
|
||||
* @done_cb: (scope async): a function to call when the user saves the modified page setup
|
||||
* @data: user data to pass to @done_cb
|
||||
*
|
||||
* Runs a page setup dialog, letting the user modify the values from @page_setup.
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ create_menu_item (GtkAction *action)
|
|||
* }
|
||||
* ]|
|
||||
*
|
||||
* Returns: (element-type GtkAction) (transfer none): the list representing the radio group for this object
|
||||
* Returns: (element-type GtkRadioAction) (transfer none): the list representing the radio group for this object
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
|
|
@ -406,7 +406,7 @@ gtk_radio_action_get_group (GtkRadioAction *action)
|
|||
/**
|
||||
* gtk_radio_action_set_group:
|
||||
* @action: the action object
|
||||
* @group: a list representing a radio group
|
||||
* @group: (element-type GtkRadioAction): a list representing a radio group
|
||||
*
|
||||
* Sets the radio group for the radio action object.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ gtk_radio_button_set_group (GtkRadioButton *radio_button,
|
|||
|
||||
/**
|
||||
* gtk_radio_button_new:
|
||||
* @group: (allow-none): an existing radio button group, or %NULL if you are
|
||||
* @group: (allow-none) (element-type GtkRadioButton): an existing radio button group, or %NULL if you are
|
||||
* creating a new group.
|
||||
*
|
||||
* Creates a new #GtkRadioButton. To be of any practical value, a widget should
|
||||
|
|
@ -279,7 +279,7 @@ gtk_radio_button_new (GSList *group)
|
|||
|
||||
/**
|
||||
* gtk_radio_button_new_with_label:
|
||||
* @group: (allow-none): an existing radio button group, or %NULL if you are
|
||||
* @group: (allow-none) (element-type GtkRadioButton): an existing radio button group, or %NULL if you are
|
||||
* creating a new group.
|
||||
* @label: the text label to display next to the radio button.
|
||||
*
|
||||
|
|
@ -303,7 +303,7 @@ gtk_radio_button_new_with_label (GSList *group,
|
|||
|
||||
/**
|
||||
* gtk_radio_button_new_with_mnemonic:
|
||||
* @group: the radio button group
|
||||
* @group: (element-type GtkRadioButton): the radio button group
|
||||
* @label: the text of the button, with an underscore in front of the
|
||||
* mnemonic character
|
||||
*
|
||||
|
|
|
|||
|
|
@ -55,6 +55,14 @@ static guint group_changed_signal = 0;
|
|||
|
||||
G_DEFINE_TYPE (GtkRadioMenuItem, gtk_radio_menu_item, GTK_TYPE_CHECK_MENU_ITEM)
|
||||
|
||||
/**
|
||||
* gtk_radio_menu_item_new:
|
||||
* @group: (allow-none) (element-type GtkRadioMenuItem): group the radio menu item is inside, or %NULL
|
||||
*
|
||||
* Creates a new #GtkRadioMenuItem.
|
||||
*
|
||||
* Returns: (transfer none): A new #GtkRadioMenuItem
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_radio_menu_item_new (GSList *group)
|
||||
{
|
||||
|
|
@ -108,6 +116,13 @@ gtk_radio_menu_item_get_property (GObject *object,
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_radio_menu_item_set_group:
|
||||
* @radio_menu_item: a #GtkRadioMenuItem
|
||||
* @group: (allow-none) (element-type GtkRadioMenuItem): the radio menu item group
|
||||
*
|
||||
* Sets the group of @radio_menu_item.
|
||||
*/
|
||||
void
|
||||
gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
|
||||
GSList *group)
|
||||
|
|
@ -210,7 +225,7 @@ gtk_radio_menu_item_new_with_label (GSList *group,
|
|||
|
||||
/**
|
||||
* gtk_radio_menu_item_new_with_mnemonic:
|
||||
* @group: group the radio menu item is inside
|
||||
* @group: (element-type GtkRadioMenuItem): group the radio menu item is inside
|
||||
* @label: the text of the button, with an underscore in front of the
|
||||
* mnemonic character
|
||||
* @returns: a new #GtkRadioMenuItem
|
||||
|
|
@ -324,7 +339,7 @@ gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
|
|||
* Returns the group to which the radio menu item belongs, as a #GList of
|
||||
* #GtkRadioMenuItem. The list belongs to GTK+ and should not be freed.
|
||||
*
|
||||
* Returns: (transfer none): the group of @radio_menu_item
|
||||
* Returns: (element-type GtkRadioMenuItem) (transfer none): the group of @radio_menu_item
|
||||
*/
|
||||
GSList*
|
||||
gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item)
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ gtk_radio_tool_button_set_property (GObject *object,
|
|||
|
||||
/**
|
||||
* gtk_radio_tool_button_new:
|
||||
* @group: (allow-none): An existing radio button group, or %NULL if you are creating a new group
|
||||
* @group: (allow-none) (element-type GtkRadioToolButton): An existing radio button group, or %NULL if you are creating a new group
|
||||
*
|
||||
* Creates a new #GtkRadioToolButton, adding it to @group.
|
||||
*
|
||||
|
|
@ -132,7 +132,7 @@ gtk_radio_tool_button_new (GSList *group)
|
|||
|
||||
/**
|
||||
* gtk_radio_tool_button_new_from_stock:
|
||||
* @group: (allow-none): an existing radio button group, or %NULL if you are creating a new group
|
||||
* @group: (allow-none) (element-type GtkRadioToolButton): an existing radio button group, or %NULL if you are creating a new group
|
||||
* @stock_id: the name of a stock item
|
||||
*
|
||||
* Creates a new #GtkRadioToolButton, adding it to @group.
|
||||
|
|
@ -165,7 +165,7 @@ gtk_radio_tool_button_new_from_stock (GSList *group,
|
|||
* gtk_radio_tool_button_new_from_widget:
|
||||
* @group: An existing #GtkRadioToolButton
|
||||
*
|
||||
* Creates a new #GtkRadioToolButton adding it to the same group as @gruup
|
||||
* Creates a new #GtkRadioToolButton adding it to the same group as @group
|
||||
*
|
||||
* Return value: (transfer none): The new #GtkRadioToolButton
|
||||
*
|
||||
|
|
@ -223,7 +223,7 @@ get_radio_button (GtkRadioToolButton *button)
|
|||
*
|
||||
* Returns the radio button group @button belongs to.
|
||||
*
|
||||
* Return value: (transfer none): The group @button belongs to.
|
||||
* Return value: (element-type GtkRadioToolButton) (transfer none): The group @button belongs to.
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
|
|
@ -238,7 +238,7 @@ gtk_radio_tool_button_get_group (GtkRadioToolButton *button)
|
|||
/**
|
||||
* gtk_radio_tool_button_set_group:
|
||||
* @button: a #GtkRadioToolButton
|
||||
* @group: an existing radio button group
|
||||
* @group: (element-type GtkRadioToolButton): an existing radio button group
|
||||
*
|
||||
* Adds @button to @group, removing it from the group it belonged to before.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -228,6 +228,11 @@ typedef enum {
|
|||
GTK_RC_TOKEN_LAST
|
||||
} GtkRcTokenType;
|
||||
|
||||
/**
|
||||
* gtk_rc_scanner_new:
|
||||
*
|
||||
* Returns: (type gpointer) (transfer full): a new #GScanner.
|
||||
*/
|
||||
GScanner* gtk_rc_scanner_new (void);
|
||||
guint gtk_rc_parse_color (GScanner *scanner,
|
||||
GdkColor *color);
|
||||
|
|
|
|||
|
|
@ -105,8 +105,8 @@ struct _GtkRecentChooserIface
|
|||
GSList * (* list_filters) (GtkRecentChooser *chooser);
|
||||
void (* set_sort_func) (GtkRecentChooser *chooser,
|
||||
GtkRecentSortFunc sort_func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
gpointer sort_data,
|
||||
GDestroyNotify data_destroy);
|
||||
|
||||
/*
|
||||
* Signals
|
||||
|
|
|
|||
|
|
@ -557,9 +557,6 @@ gtk_recent_bookmark_file_get_added_time (GBookmarkFile *bookmarks,
|
|||
dt = g_bookmark_file_get_added_date_time (bookmarks, uri, NULL);
|
||||
result = dt ? g_date_time_to_unix (dt) : -1;
|
||||
|
||||
if (dt)
|
||||
g_date_time_unref (dt);
|
||||
|
||||
return result;
|
||||
#else
|
||||
return g_bookmark_file_get_added (bookmarks, uri, NULL);
|
||||
|
|
@ -577,9 +574,6 @@ gtk_recent_bookmark_file_get_modified_time (GBookmarkFile *bookmarks,
|
|||
dt = g_bookmark_file_get_modified_date_time (bookmarks, uri, NULL);
|
||||
result = dt ? g_date_time_to_unix (dt) : -1;
|
||||
|
||||
if (dt)
|
||||
g_date_time_unref (dt);
|
||||
|
||||
return result;
|
||||
#else
|
||||
return g_bookmark_file_get_modified (bookmarks, uri, NULL);
|
||||
|
|
@ -597,9 +591,6 @@ gtk_recent_bookmark_file_get_visited_time (GBookmarkFile *bookmarks,
|
|||
dt = g_bookmark_file_get_visited_date_time (bookmarks, uri, NULL);
|
||||
result = dt ? g_date_time_to_unix (dt) : -1;
|
||||
|
||||
if (dt)
|
||||
g_date_time_unref (dt);
|
||||
|
||||
return result;
|
||||
#else
|
||||
return g_bookmark_file_get_visited (bookmarks, uri, NULL);
|
||||
|
|
@ -628,9 +619,6 @@ gtk_recent_bookmark_file_get_application_info (GBookmarkFile *bookmarks,
|
|||
if (stamp && dt)
|
||||
*stamp = g_date_time_to_unix (dt);
|
||||
|
||||
if (dt)
|
||||
g_date_time_unref (dt);
|
||||
|
||||
return res;
|
||||
#else
|
||||
time_t old_stamp = (time_t) -1;
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ gtk_ruler_set_metric (GtkRuler *ruler,
|
|||
*
|
||||
* Return value: the units currently used for @ruler
|
||||
*
|
||||
* @Deprecated: 2.24: #GtkRuler has been removed from GTK 3 for being
|
||||
* Deprecated: 2.24: #GtkRuler has been removed from GTK 3 for being
|
||||
* unmaintained and too specialized. There is no replacement.
|
||||
**/
|
||||
GtkMetricType
|
||||
|
|
@ -332,7 +332,7 @@ gtk_ruler_get_metric (GtkRuler *ruler)
|
|||
*
|
||||
* This sets the range of the ruler.
|
||||
*
|
||||
* @Deprecated: 2.24: #GtkRuler has been removed from GTK 3 for being
|
||||
* Deprecated: 2.24: #GtkRuler has been removed from GTK 3 for being
|
||||
* unmaintained and too specialized. There is no replacement.
|
||||
*/
|
||||
void
|
||||
|
|
@ -383,7 +383,7 @@ gtk_ruler_set_range (GtkRuler *ruler,
|
|||
* Retrieves values indicating the range and current position of a #GtkRuler.
|
||||
* See gtk_ruler_set_range().
|
||||
*
|
||||
* @Deprecated: 2.24: #GtkRuler has been removed from GTK 3 for being
|
||||
* Deprecated: 2.24: #GtkRuler has been removed from GTK 3 for being
|
||||
* unmaintained and too specialized. There is no replacement.
|
||||
**/
|
||||
void
|
||||
|
|
|
|||
|
|
@ -538,7 +538,7 @@ gtk_scale_button_dispose (GObject *object)
|
|||
|
||||
/**
|
||||
* gtk_scale_button_new:
|
||||
* @size: (int): a stock icon size
|
||||
* @size: (type int): a stock icon size
|
||||
* @min: the minimum value of the scale (usually 0)
|
||||
* @max: the maximum value of the scale (usually 100)
|
||||
* @step: the stepping of value when a scroll-wheel event,
|
||||
|
|
|
|||
|
|
@ -82,6 +82,11 @@ GtkSettings* gtk_settings_get_default (void);
|
|||
GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen);
|
||||
|
||||
void gtk_settings_install_property (GParamSpec *pspec);
|
||||
/**
|
||||
* gtk_settings_install_property_parser:
|
||||
* @pspec: a #GParamSpec
|
||||
* @parser: (scope forever): parser for the property
|
||||
*/
|
||||
void gtk_settings_install_property_parser (GParamSpec *pspec,
|
||||
GtkRcPropertyParser parser);
|
||||
|
||||
|
|
|
|||
|
|
@ -433,7 +433,6 @@ gtk_socket_realize (GtkWidget *widget)
|
|||
|
||||
/**
|
||||
* _gtk_socket_end_embedding:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
*
|
||||
* Called to end the embedding of a plug in the socket.
|
||||
|
|
@ -607,7 +606,6 @@ find_accel_key (GtkAccelKey *key,
|
|||
|
||||
/**
|
||||
* _gtk_socket_add_grabbed_key:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
* @keyval: a key
|
||||
* @modifiers: modifiers for the key
|
||||
|
|
@ -646,7 +644,6 @@ _gtk_socket_add_grabbed_key (GtkSocket *socket,
|
|||
|
||||
/**
|
||||
* _gtk_socket_remove_grabbed_key:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
* @keyval: a key
|
||||
* @modifiers: modifiers for the key
|
||||
|
|
@ -785,7 +782,6 @@ gtk_socket_notify (GObject *object,
|
|||
|
||||
/**
|
||||
* _gtk_socket_claim_focus:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
* @send_event: huh?
|
||||
*
|
||||
|
|
@ -852,7 +848,6 @@ gtk_socket_forall (GtkContainer *container,
|
|||
|
||||
/**
|
||||
* _gtk_socket_add_window:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
* @xid: the native identifier for a window
|
||||
* @need_reparent: whether the socket's plug's window needs to be
|
||||
|
|
@ -965,7 +960,6 @@ _gtk_socket_add_window (GtkSocket *socket,
|
|||
|
||||
/**
|
||||
* _gtk_socket_handle_map_request:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
*
|
||||
* Called from the GtkSocket backend when the plug has been mapped.
|
||||
|
|
@ -984,7 +978,6 @@ _gtk_socket_handle_map_request (GtkSocket *socket)
|
|||
|
||||
/**
|
||||
* _gtk_socket_unmap_notify:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
*
|
||||
* Called from the GtkSocket backend when the plug has been unmapped ???
|
||||
|
|
@ -1001,7 +994,6 @@ _gtk_socket_unmap_notify (GtkSocket *socket)
|
|||
|
||||
/**
|
||||
* _gtk_socket_advance_toplevel_focus:
|
||||
*
|
||||
* @socket: a #GtkSocket
|
||||
* @direction: a direction
|
||||
*
|
||||
|
|
|
|||
|
|
@ -308,6 +308,19 @@ gtk_stock_item_free (GtkStockItem *item)
|
|||
g_free (item);
|
||||
}
|
||||
|
||||
GType
|
||||
gtk_stock_item_get_type (void)
|
||||
{
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static (I_("GtkStockItem"),
|
||||
(GBoxedCopyFunc) gtk_stock_item_copy,
|
||||
(GBoxedFreeFunc) gtk_stock_item_free);
|
||||
|
||||
return our_type;
|
||||
}
|
||||
|
||||
static const GtkStockItem builtin_items [] =
|
||||
{
|
||||
/* KEEP IN SYNC with gtkiconfactory.c stock icons, when appropriate */
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_STOCK_ITEM (gtk_stock_item_get_type ())
|
||||
|
||||
typedef struct _GtkStockItem GtkStockItem;
|
||||
|
||||
struct _GtkStockItem
|
||||
|
|
@ -60,6 +62,7 @@ gboolean gtk_stock_lookup (const gchar *stock_id,
|
|||
*/
|
||||
GSList* gtk_stock_list_ids (void);
|
||||
|
||||
GType gtk_stock_item_get_type (void) G_GNUC_CONST;
|
||||
GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item);
|
||||
void gtk_stock_item_free (GtkStockItem *item);
|
||||
|
||||
|
|
|
|||
|
|
@ -710,7 +710,7 @@ gtk_style_new (void)
|
|||
* in the following way:
|
||||
* <literal>style = gtk_style_attach (style, window)</literal>
|
||||
*
|
||||
* Returns: Either @style, or a newly-created #GtkStyle.
|
||||
* Returns: (transfer full): Either @style, or a newly-created #GtkStyle.
|
||||
* If the style is newly created, the style parameter
|
||||
* will be unref'ed, and the new style will have
|
||||
* a reference count belonging to the caller.
|
||||
|
|
@ -2167,7 +2167,7 @@ gtk_style_real_set_background (GtkStyle *style,
|
|||
* @source: the #GtkIconSource specifying the icon to render
|
||||
* @direction: a text direction
|
||||
* @state: a state
|
||||
* @size: (type int) the size to render the icon at. A size of
|
||||
* @size: (type int): the size to render the icon at. A size of
|
||||
* (GtkIconSize)-1 means render at the size of the source and
|
||||
* don't scale.
|
||||
* @widget: (allow-none): the widget
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ gtk_test_text_get (GtkWidget *widget)
|
|||
* g_object_ref_sink() them (to keep them alive across a running test)
|
||||
* and set them up for destruction during the next test teardown phase.
|
||||
*
|
||||
* Returns: a newly created widget.
|
||||
* Returns: (transfer none): a newly created widget.
|
||||
*
|
||||
* Since: 2.14
|
||||
*/
|
||||
|
|
@ -557,7 +557,7 @@ test_increment_intp (int *intp)
|
|||
* The window will quit any running gtk_main()-loop when destroyed, and it
|
||||
* will automatically be destroyed upon test function teardown.
|
||||
*
|
||||
* Returns: a widget pointer to the newly created GtkWindow.
|
||||
* Returns: (transfer none): a widget pointer to the newly created GtkWindow.
|
||||
*
|
||||
* Since: 2.14
|
||||
**/
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue