Commit Graph

22513 Commits

Author SHA1 Message Date
e0aa12eb0a Tons of transfer annotations 2010-09-21 00:18:11 -04:00
ca251cf1d4 Reduced overall SizeRequestCache size
This patch changes the 'age' counting previous approach taken
verbatim from clutter and changes it for a counter of validated
caches and an index to the last cached value which we use to
round-robin through the cache if ever a widget is requested
for more than 3 contextual sizes (cache is reduced by 3 * sizeof (int)
per widget private data).
2010-09-21 12:57:27 +09:00
6ba904486c Add a couple of missing transfer annotations 2010-09-20 23:45:01 -03:00
330bc154ed Fixup gtk-doc comment syntax 2010-09-20 23:40:21 -03:00
2ddfaeddad More error trap cleanups
Remove syncs in front of gdk_error_trap_pop() calls, and convert
gdk_error_trap_pop() calls to gdk_error_trap_pop_ignored() in gdk.
2010-09-20 16:40:14 -04:00
14e38da150 Only store error codes in inner-most X error trap
When an error occurs with nested traps in place, only the innermost
trap should have the error code stored in it; outer traps are
shielded by the inner trap.

https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-20 16:35:41 -04:00
1592738d2f Add a ug.po for po-properties, re-enable ug in LINGUAS. 2010-09-20 20:16:29 +00:00
1aea318d0f po: Disable ug localization
The ug.po file is missing from the po-properties directory and it's
breaking the build.
2010-09-20 13:51:38 +01:00
bb7ffddff2 Updated Japanese translation 2010-09-20 18:50:58 +09:00
e8a60e6123 Updated Gujarati Translations 2010-09-20 12:50:44 +05:30
d14687ef4b Add ug to LINGUAS. 2010-09-20 05:17:10 +00:00
def95d1319 Add new error trap api to gdk.symbols and gdk3-sections.txt 2010-09-19 22:45:02 -04:00
743202261a Add deprecation guards for gtk_cell_renderer_get_size() 2010-09-19 17:47:09 +02:00
ae3be469b3 Updated Danish translation 2010-09-19 17:40:56 +02:00
bc7654826f Updated Dutch translation by Vincent van Adrighem 2010-09-19 16:39:54 +02:00
1dcd209cdd Fix a few dubious return values in return_if_fail calls
These were pointed out in bug 623958.
2010-09-19 01:58:46 -04:00
8e117b6f3a Add a rename-to annotation for gtk_tree_path_get_indices_with_depth
https://bugzilla.gnome.org/show_bug.cgi?id=621590
2010-09-19 01:15:17 -04:00
6b4992d647 Point to the new GtkWidget align and margin properties 2010-09-19 01:01:09 -04:00
35e0ad72e4 Another fix for the initial focus heuristic
We were trying to avoid selecting a label initially, but the code
was sometimes leaving labels selected when the focus eventually
ended up on a button instead.
2010-09-19 00:54:50 -04:00
92411d2c84 Fix an annotation 2010-09-19 00:22:37 -04:00
1243b4861c Use gdk_error_trap_pop_ignore() where appropriate 2010-09-18 23:17:31 -04:00
e32ab82069 Improve tests for X error traps, fix two bugs
* don't lose track of previous X error handler
  if nested traps are pushed
* free any remaining traps when display
  is finalized

Test will fail unless bug 630032 is closed so
gdk_display_close() works.

https://bugzilla.gnome.org/show_bug.cgi?id=630033
2010-09-18 23:03:31 -04:00
c7d73ee587 Fix bugs that crashed gdk_display_close() on x11
* _gdk_device_set_associated_device() did not allow NULL device
* GdkDisplay should dispose device manager to avoid devices
  trying to touch the display in finalize
* GdkDeviceManagerXI did not ref devices in id hash
* GdkDisplayX11 did not ref devices in ->input_devices
2010-09-18 22:57:36 -04:00
b837ef5a6d Revamp and modernize X error traps
* add per-display gdk_x11_display_error_trap_push()
  (X11-specific because gdk_error_trap_push() probably
  should have been)
* make gdk_error_trap_push() handle only GDK displays
  not displays opened without a GDK wrapper
* make gdk_error_trap_pop() and gdk_x11_display_error_trap_pop()
  automatically sync only if needed, so manual gdk_flush() is not
  required
* add gdk_error_trap_pop_ignored() which just asynchronously
  ignores errors, so never needs to sync
* add G_GNUC_WARN_UNUSED_RESULT to plain pop(), because
  if you use plain pop() and don't need the return value,
  the async gdk_error_trap_pop_ignored() should be used
  instead. This results in lots of warnings to clean
  up in a later patch.

The main objective here was to avoid the need to sync just
to ignore an error. Now, syncing is automatic, and only
happens when we need to know the error code.

https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 18:19:27 -04:00
4f3e5e6ebc Add some minimal test for X error traps 2010-09-18 18:18:36 -04:00
8d5b4e9f6e Replace crufty old code for gdk error traps with GQueue and GSlice
No need to do a manual free list these days.

https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 16:44:25 -04:00
de3512dbba Remove trailing whitespace and obsolete doc comments from gdk_error_trap code
(there are actual docs in the template file, these were some kind of
pre-gtk-doc comments without useful info)

https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 16:39:56 -04:00
19cab17c22 Add a couple of missing annotations 2010-09-18 13:43:06 -03:00
60c920f228 [introspection] Do not parse private sources
Private sources include private headers which we may not be able
to parse properly since some of them use unsupported syntax such
as objective-c.
2010-09-18 13:43:00 -03:00
8c3900f420 [introspection] Do not include internal api
GtkTextLayout is internal and unsupported, do not include
it in the gir
2010-09-18 13:28:52 -03:00
ac051a7b2c depend on GLib 2.27.0 2010-09-17 20:49:30 -04:00
809dbe9f99 gail: Do not use deprecated gtk_cell_renderer_get_size()
Use gtk_cell_size_request_get_size() instead

https://bugzilla.gnome.org/show_bug.cgi?id=629785
2010-09-17 20:00:25 +02:00
15a5a231fc Do not use deprecated gtk_cell_renderer_get_size()
Use gtk_cell_size_request_get_size() instead

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629785
2010-09-17 19:59:56 +02:00
efbf04236e Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterface
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=323904
2010-09-17 19:57:09 +02:00
6e9349d858 Fix a trivial typo in a doc comment
https://bugzilla.gnome.org/show_bug.cgi?id=629733
2010-09-17 10:30:37 -04:00
54077d61e2 Add some element-type annotations to gtk apis 2010-09-17 09:26:39 -04:00
28c66ed9b0 Fix a doc comment 2010-09-17 09:25:49 -04:00
bf19aa46e9 Scan gdk/x11 sources for Gdk-3.0.gir
The doc comments (with annotations) for some of the gdk api are down
in x11/ sources, so we need to scan those too, when building Gdk-3.0.gir.
2010-09-17 09:23:30 -04:00
6aa8941b84 Add annotations
The goi scanner warns about these nowadays.
2010-09-17 00:18:20 -04:00
ab0e68e586 Update Simplified Chinese translation of po-properties. 2010-09-16 17:34:27 +00:00
2f78aa3024 Rename h/v-align to h/valign
And adjust the getters and setters to match. Also include some
documentation by Havoc Pennington about adjustment of size requests
and allocations.
2010-09-15 20:14:56 -04:00
bf2a7ee1b6 introspection: Only use 0.9.3 API 2010-09-15 15:07:58 -04:00
8e72e9a7a0 Update Czech translation 2010-09-15 20:31:29 +02:00
67e6ac5af9 Update Czech translation 2010-09-15 20:01:47 +02:00
b9f66d9197 Add docs for new API 2010-09-15 13:52:52 -04:00
3e91238071 Add new api to gtk.symbols 2010-09-15 13:49:00 -04:00
38e09dcbb1 Use gint instead of in for local consistency 2010-09-15 13:22:51 -04:00
896e249e8f Added a default size of a magic number to testwrapbox.c
This was added to the test only for the sake of making it
easier to reproduce a bug with scrolled windows (bug 629778).

Expected behaviour: The vertical scrollbar should dissapear as soon
as the required height for the full allocation width (without any
vertical scrollbar) is small enough to not need a scrollbar.
2010-09-16 01:41:53 +09:00
560ca1eaad gdk: Only use XComposite if it is available
Fixes build if it isn't available. Bug #629748.
2010-09-15 16:42:57 +02:00
57e0b9a979 Fix build on Windows
No idea of the widget embedding crack has worked in recent versions,
even less now. But at least it now compiles.
2010-09-15 14:19:40 +03:00