Commit Graph

26564 Commits

Author SHA1 Message Date
Duarte Loreto
ee8bbbc7be Updated Portuguese translation 2011-03-31 23:22:12 +01:00
Yaron Shahrabani
1187577c82 Updated Hebrew translation. 2011-03-31 21:30:59 +02:00
Mario Blättermann
38e304273f [l10n] Updated German translation 2011-03-31 21:30:12 +02:00
liwei
fa13e719d4 Update Simplified Chinese translation. 2011-03-31 16:31:56 +00:00
Djavan Fagundes
a91623a645 Updated Brazilian Portuguese translation 2011-03-31 11:06:29 -03:00
Piotr Drąg
28d3886b62 Updated Polish translation 2011-03-31 13:27:48 +02:00
Mario Blättermann
33af35a396 [l10n] Updated German translation 2011-03-31 09:40:22 +02:00
Alexander Shopov
39f60f1ed6 Updated Bulgarian translation 2011-03-31 06:34:51 +03:00
Miroslav Nikolić
1485443d13 Updated Serbian translation 2011-03-31 01:14:07 +02:00
Tristan Van Berkom
edb44589dc Cache heights-for-range-of-widths instead of height for every width.
This patch optimizes window resizes by assuming that if a widget
has the same height at a width of 50 as with a width of 150, the
height for width 100 will also be the same.

The patch also further optimizes the cache allocator, now there
are 2 pointer arrays of up to a maximum of 5 requests, the arrays
will only be allocated if a request is ever made in that orientation
and the array will be sparse until each request is made (i.e. if a
label can only wrap to 3 lines, there will only be 3 out of a
possible 5 SizeRequest structures allocated to cache it).
2011-03-30 19:19:23 +09:00
Tristan Van Berkom
148d4cd3fa Reduce memory consumption of the size request cache.
This patch makes contextual height-for-width request caching
optional (the contextual cache is not allocated for widgets that
report GTK_SIZE_REQUEST_CONSTANT_SIZE).
2011-03-30 19:19:13 +09:00
Tristan Van Berkom
bb39638c4f Added GTK_SIZE_REQUEST_CONSTANT_SIZE to GtkSizeRequestMode
The constant size request mode defines a request mode where
height-for-width geometry is unneeded, thus optimizing GTK+
by reducing the overall amount of requests that need to be
performed and cached while resizing an interface.
2011-03-30 19:19:03 +09:00
Og B. Maciel
99eb81b683 Partial update for Brazilian Portuguese. 2011-03-30 17:02:54 -04:00
Benjamin Otte
b467d5fdbb widget: Propagate the right states to the widget when setting the parent 2011-03-30 16:47:10 +02:00
Benjamin Otte
b948654d27 widget: Get rid of parent_sensitive flag
Instead rely on state_flags & GTK_STATE_FLAG_INSENSITIVE to tell us if a
widget is sensitive.
This has the huge benefit that the way the widget is actually rendered
corresponds to the return value of gtk_widget_is_sensitive().

As a side effect, we do not ever allow unsetting the
GTK_STATE_FLAG_INSENSITIVE for a widget the is set to not be sensitive
(via gtk_widget_set_sensitive()). This way we stop propagation of making
stuff sensitive at insensitive widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=642918
2011-03-30 16:47:01 +02:00
Benjamin Otte
91d3a5ac7e widget: Don't override state data when recursing to children
Writing onto the passed-in GtkStateData could cause changes that would
propagate to siblings, as the data was not reset again.
By copying the data structure, this is avoided and the proper values are
passed to sibling widgets.
2011-03-30 16:44:58 +02:00
Benjamin Otte
63e261ed9f widget: Fix typo in docs 2011-03-30 16:44:55 +02:00
Benjamin Otte
ae640f8eb4 tracker: Include gdk.h 2011-03-30 16:42:26 +02:00
Matthias Clasen
6121cb691f Make GtkWidget::halign RTL-save
This commit makes GTK_ALIGN_START/_END pay attention to
the text direction when used in horizontal context.

This is how similar parameters in GtkMisc and GtkAlignment work,
and is generally expected of GTK+ positioning parameters. And this
is new GTK+ 3 api, so it is basically still unused at this point.

If explicit right/left turn out to be needed at some point, we
can expand the enumeration with new values.
2011-03-30 10:34:35 -04:00
Bruce Cowan
a91e01c86c Updated British English translation 2011-03-30 15:25:09 +01:00
Sandeep Shedmake
a7f48fa6fd Updated Marathi Translations 2011-03-30 14:47:47 +05:30
Ask H. Larsen
78844cdf26 Updated Danish translation 2011-03-29 23:43:04 +02:00
Ask H. Larsen
63f5933ad1 Updated Danish translation 2011-03-29 23:39:44 +02:00
Ryan Lortie
856a7c63bc GtkStatusIcon: support fixed-sized icons
Use the _NET_SYSTEM_TRAY_ICON_SIZE property set by the tray mananger as
a hint that we should use a specific icon size.  This allows the tray to
instruct us that it expects 16x16 icons, for example.

Bug #645232
2011-03-30 00:28:22 +05:30
Aron Xu
51cd2a4f23 Update Simplified Chinese translation. 2011-03-29 11:10:03 +00:00
Alexander Larsson
ca619031df Ensure we always grab the gdk lock in async callbacks
Async callbacks are delivered in idles, so we need to make sure
we get the gdk lock before calling any gdk/gtk stuff. This was
missing in a few places.
(cherry picked from commit e274dbbdce)
2011-03-28 14:05:26 +02:00
Rudolfs Mazurs
bdd41d50a4 Updated Latvian translation. 2011-03-28 01:46:00 +03:00
Wolfgang Stöggl
cc03ac2c42 Updated German translation 2011-03-27 22:49:54 +02:00
Yuri Kozlov
29ee1c302a Updated Russian translation 2011-03-27 14:27:45 +04:00
Benjamin Otte
ef2cb57a13 widget: Call the non-deprecated function
Both functions are identical, just that one isn't deprecated.
2011-03-27 03:05:57 +02:00
Benjamin Otte
57140a79d3 widget: Update path unconditionally in gtk_widget_reset_style()
Also, don't set the new path twice on the style context.
2011-03-27 03:05:49 +02:00
Benjamin Otte
5a8bbf627c widget: Don't duplicate style context updates
The screen changes are done in do_screen_change(), the widget path is
updated in gtk_widget_reset_style().
2011-03-27 03:05:49 +02:00
Benjamin Otte
bc6c6b749c paned: Remove unused variable 2011-03-27 01:02:55 +01:00
Benjamin Otte
6444f30e81 widget: Emit initial style-set signal in the same situations as GTK2
This ensures that widgets that aren't ported and rely on the style-set
signal being emitted work as well as before. They should not rely on
style-set being emitted however.

Note that this function is a no-op if the initial style has been set
already and is very cheap if it has not been set yet. It only becomes
relevant if the resulting style actually gets used.

https://bugzilla.gnome.org/show_bug.cgi?id=639584
2011-03-27 01:00:29 +01:00
Benjamin Otte
f285dd49b5 widget: Create the widget's style lazily
That way we don't have to update the style's colors all the time on
theme changes when the widget is not actually using GtkStyle.
2011-03-27 01:00:29 +01:00
Benjamin Otte
2f0c819287 widget: Don't call gtk_style_attach() and gtk_style_detach() anymore 2011-03-27 01:00:29 +01:00
Benjamin Otte
2444b611f5 docs: Make clear that gtk_widget_set_style() does not do anything 2011-03-27 01:00:29 +01:00
Benjamin Otte
ac43de26c6 widget: Use a priv variable 2011-03-27 01:00:28 +01:00
Benjamin Otte
7ef2c6a55f widget: Widgets always have a style, so no need to check for NULL 2011-03-27 01:00:28 +01:00
Benjamin Otte
a4c9c4d7cd combobox: Don't set the menu's name twice 2011-03-27 01:00:28 +01:00
Benjamin Otte
5d3c52c60e notebook: Only reset style on tab labels when it actually changes 2011-03-27 01:00:28 +01:00
Benjamin Otte
52d27f712e widget: Reshuffle code for style context getter
The intention of this patch is to make the code clearer, shorter and
most of all to avoid recreating the widget path and setting it path
twice on the style context when the style context was recreated.
2011-03-27 01:00:28 +01:00
Benjamin Otte
866e37f57d widget: Don't create the style context if not necessary
If all we want to do is update the context's screen, we don't need to
create it if it doesn't exist yet.
2011-03-27 01:00:28 +01:00
Benjamin Otte
320730505b gtk: Reset children styles when changing name
Changing the name of a widget does not just change the current widget's
path, but also the path of all its children.
2011-03-27 00:59:41 +01:00
Benjamin Otte
622ce47aca widgetpath: Sanitize pos argument for iters correctly
The comparison done was off by one and would have caused invalid
reads or writes.
2011-03-27 00:59:41 +01:00
Benjamin Otte
ebc83efb1b dnd: Use G_N_ELEMENTS()
Now that we have wesome macros in glib 2.0, we can use them. Woohoo, GTK
2.0 will be so awesome in the future.
(Did anybody touch dnd code this millenium?)
2011-03-27 00:59:40 +01:00
Claude Paroz
0133870fa8 Updated French translation of po-properties
Contributed by Gérard Baylard, Bruno Brouard and Claude Paroz
2011-03-26 17:17:03 +01:00
Rudolfs Mazurs
cb54b994cc Updated Latvian translation. 2011-03-26 13:37:11 +02:00
Chun-wei Fan
e31364a504 Update VS property sheet
Make GDK-Pixbuf include path consistent with the autofiscated builds
2011-03-26 15:28:19 +08:00
Daniel Nylander
1732def837 Updated Swedish translation 2011-03-25 22:29:34 +01:00