]>
Pileus Git - ~andy/gtk/log
Alexander Larsson [Tue, 5 Apr 2011 10:02:46 +0000 (12:02 +0200)]
[broadway] Track transient_for
Alexander Larsson [Tue, 5 Apr 2011 08:52:40 +0000 (10:52 +0200)]
[broadway] Remove unused query pointer message
Alexander Larsson [Tue, 5 Apr 2011 08:45:51 +0000 (10:45 +0200)]
[broadway] Don't roundtrip for getting current pointer location
Roundtrips are bad, and this gets called a lot, so we use all currently
availible future info to "emulate" a full roundtrip, but with much lower
cost.
Alexander Larsson [Tue, 5 Apr 2011 08:44:53 +0000 (10:44 +0200)]
[broadway] Add _gdk_broadway_display_consume_all_input
This parses and queues all currently availible input data non-blockingly.
Useful to ensure the latest up-to-date future info.
Alexander Larsson [Tue, 5 Apr 2011 08:43:52 +0000 (10:43 +0200)]
[broadway] Track future pointer events locations during parsing
We want this info so that we can avoid roundtrips and still get
a somewhat better querying for pointer locations.
Alexander Larsson [Tue, 5 Apr 2011 08:43:04 +0000 (10:43 +0200)]
[broadway] Add helper for processing input at idle
Alexander Larsson [Tue, 5 Apr 2011 08:03:14 +0000 (10:03 +0200)]
[broadway] Keep track of current real cursor window (sans grabs)
We need this to be able to do a non-roundtripping get-window.
Alexander Larsson [Fri, 1 Apr 2011 15:07:17 +0000 (17:07 +0200)]
[broadway] Break out _gdk_broadway_display_read_all_input_nonblocking
This is useful in other places, like when we want to iterate over
all messages recieved so far.
Alexander Larsson [Fri, 1 Apr 2011 14:29:03 +0000 (16:29 +0200)]
[broadway] Make pointer grabs not roundtrip
Since we're really only initializing grabs (except for implicit
grabs at least) from the client side we might as well do all the grab
time checks on the client side to avoid unnecassary roundtrips.
Alexander Larsson [Fri, 1 Apr 2011 13:46:01 +0000 (15:46 +0200)]
[broadway] Save last event time seen
Alexander Larsson [Fri, 1 Apr 2011 13:08:28 +0000 (15:08 +0200)]
[broadway] Parse broadway input messages earlier
We now parse the broadway messages as soon as they are read from the wire.
This will let us sanely do lookahead in the message queue later.
Matthias Clasen [Wed, 6 Apr 2011 04:56:37 +0000 (00:56 -0400)]
GtkColorButton: Don't leak references
https://bugzilla.gnome.org/show_bug.cgi?id=646815
Petr Kovar [Wed, 6 Apr 2011 01:43:06 +0000 (03:43 +0200)]
Update Czech translation
Jordi Serratosa [Mon, 4 Apr 2011 19:29:22 +0000 (21:29 +0200)]
[l10n]Fixes on Catalan translation
Jordi Serratosa [Mon, 4 Apr 2011 19:20:32 +0000 (21:20 +0200)]
[l10n]Fixes on Catalan translation
Tristan Van Berkom [Mon, 4 Apr 2011 04:58:05 +0000 (13:58 +0900)]
Fixed bug in GtkSizeRequest code where the cache is not reset properly
Fixes this bug https://bugzilla.gnome.org/show_bug.cgi?id=646500
Rodolfo Ribeiro Gomes [Mon, 4 Apr 2011 14:11:26 +0000 (11:11 -0300)]
Updated Brazilian Portuguese translation
Chao-Hsiung Liao [Mon, 4 Apr 2011 12:27:38 +0000 (20:27 +0800)]
Updated Traditional Chinese translation (Hong Kong and Taiwan)
Jamil Ahmed [Mon, 4 Apr 2011 10:40:12 +0000 (16:40 +0600)]
Updated Bengali translation
Gil Forcada [Sun, 3 Apr 2011 23:07:15 +0000 (01:07 +0200)]
[l10n]Updated Catalan translation
Matthias Clasen [Sun, 3 Apr 2011 21:40:37 +0000 (17:40 -0400)]
Make gdk_x11_window_set_theme_variant do nothing for non-toplevels
This avoids problems when calling this e.g. on offscreen windows.
Matthias Clasen [Sat, 2 Apr 2011 22:39:28 +0000 (18:39 -0400)]
Keymap: properly initialize lock state
We need to get explicitly lock state initially, before we can
rely on state changed events to track it.
https://bugzilla.gnome.org/show_bug.cgi?id=645341
Tristan Van Berkom [Sun, 3 Apr 2011 09:09:22 +0000 (18:09 +0900)]
Fixed warning catch in gtk_window_compute_hints().
Yuri Kozlov [Sun, 3 Apr 2011 16:15:51 +0000 (20:15 +0400)]
Updated Russian translation
Carlos Garnacho [Sun, 3 Apr 2011 10:21:57 +0000 (12:21 +0200)]
theme: Fix prelight on selected rows' expanders
There was no prelight effect on selected rows' expanders with the
builtin theme, noticed by Kris Rietveld.
Lucian Adrian Grijincu [Fri, 11 Mar 2011 10:15:38 +0000 (11:15 +0100)]
Updated Romanian translation
Ask H. Larsen [Sat, 2 Apr 2011 17:45:07 +0000 (19:45 +0200)]
Updated Danish translation
George Stefanakis [Sat, 2 Apr 2011 14:57:50 +0000 (17:57 +0300)]
l10n: Updated Greek translation for gtk+
Daniel Korostil [Sat, 2 Apr 2011 13:38:07 +0000 (16:38 +0300)]
Uploaded Ukranian
Matthias Clasen [Sat, 2 Apr 2011 03:52:46 +0000 (23:52 -0400)]
GtkAppChooserButton: avoid some leaks
gtk_tree_model_get() returns a reference for objects.
https://bugzilla.gnome.org/show_bug.cgi?id=646462
Matthias Clasen [Sat, 2 Apr 2011 02:02:38 +0000 (22:02 -0400)]
Fix some refcounting issues in the print dialog
gtk_tree_model_get returns a reference for objects, but the
printers in the model can be NULL,
https://bugzilla.gnome.org/show_bug.cgi?id=646446
Federico Mena Quintero [Fri, 1 Apr 2011 22:16:17 +0000 (16:16 -0600)]
[filechooser] Free things which got duplicated or reffed by gtk_tree_model_get()
We had forgotten to do that in a few places; this is a systematic search for those.
https://bugzilla.gnome.org/show_bug.cgi?id=646461
Federico Mena Quintero [Fri, 1 Apr 2011 22:06:51 +0000 (16:06 -0600)]
[filechooser] Unref cancellables we got from the model, not the ones that come into the callback
The model_cancellables have an extra ref when we get them from gtk_tree_model_get().
So, we need to unref them always. On the other hand, the cancellables that get
passed as arguments to the callbacks in question are memory-managed by
GtkFileSystemModel.
Reported by Morten Welinder <mortenw@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=646460
Federico Mena Quintero [Fri, 1 Apr 2011 19:25:24 +0000 (13:25 -0600)]
[filechooser] Don't leak a GFile
Reported by Morten Welinder <mortenw@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=646458
Federico Mena Quintero [Fri, 1 Apr 2011 18:44:10 +0000 (12:44 -0600)]
[filechooser] Don't add extra ref to file, as it it comes from gtk_tree_model_get()
Leak kindly reported by leak finder extraordinaire Morten Welinder <mortenw@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=646457
Juan Pablo Ugarte [Fri, 1 Apr 2011 22:35:32 +0000 (19:35 -0300)]
Added GtkEntry:completion property
Gabor Kelemen [Fri, 1 Apr 2011 13:12:56 +0000 (15:12 +0200)]
Updated Hungarian translation
Gabor Kelemen [Fri, 1 Apr 2011 13:16:57 +0000 (15:16 +0200)]
Updated Hungarian translation
Gabriel F. Vilar [Fri, 1 Apr 2011 12:11:15 +0000 (09:11 -0300)]
Updated Brazilian Portuguese translation
Rajesh Ranjan [Fri, 1 Apr 2011 09:26:12 +0000 (14:56 +0530)]
hindi updated
Rajesh Ranjan [Fri, 1 Apr 2011 09:24:43 +0000 (14:54 +0530)]
hindi updated
Matthias Clasen [Thu, 31 Mar 2011 23:59:00 +0000 (19:59 -0400)]
Call _exit instead of exit from X error handlers
This is because running atexit() handlers from there is
usually bad news.
https://bugzilla.gnome.org/show_bug.cgi?id=646338
Juan Pablo Ugarte [Thu, 31 Mar 2011 22:03:52 +0000 (19:03 -0300)]
* gtk/gtktreeselection.c:
Added missing GtkTreeSelection:mode property.
Closes bug #645960 "GtkTreeSelection has no property to set mode"
Duarte Loreto [Thu, 31 Mar 2011 22:19:39 +0000 (23:19 +0100)]
Updated Portuguese translation
Mario Blättermann [Thu, 31 Mar 2011 19:30:57 +0000 (21:30 +0200)]
[l10n] Updated German translation
Djavan Fagundes [Thu, 31 Mar 2011 14:42:31 +0000 (11:42 -0300)]
Updated Brazilian Portuguese translation
Mario Blättermann [Thu, 31 Mar 2011 07:41:05 +0000 (09:41 +0200)]
[l10n] Updated German translation
Alexander Shopov [Thu, 31 Mar 2011 03:36:40 +0000 (06:36 +0300)]
Updated Bulgarian translation
Miroslav Nikolić [Wed, 30 Mar 2011 23:11:14 +0000 (01:11 +0200)]
Updated Serbian translation
Daniel Korostil [Wed, 30 Mar 2011 14:54:43 +0000 (17:54 +0300)]
Uploaded Ukranian
Benjamin Otte [Wed, 30 Mar 2011 14:38:45 +0000 (16:38 +0200)]
widget: Propagate the right states to the widget when setting the parent
Benjamin Otte [Wed, 30 Mar 2011 14:15:21 +0000 (16:15 +0200)]
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
Matthias Clasen [Wed, 30 Mar 2011 06:25:12 +0000 (02:25 -0400)]
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.
Bruce Cowan [Wed, 30 Mar 2011 14:25:09 +0000 (15:25 +0100)]
Updated British English translation
Matthias Clasen [Wed, 30 Mar 2011 06:24:00 +0000 (02:24 -0400)]
GtkGrid: Add forgotten RTL flipping
How did we manage to add a non-RTL savy container in GTK+ 3.0 ?
Benjamin Otte [Wed, 30 Mar 2011 11:14:47 +0000 (13:14 +0200)]
label: Remove dead code
This code has been useless for a while, and now it's breaking things.
Moving the paned in tests/testheightforwidth's wrapping label shows that
bug.
Broken since
9992efdb0e7d0cf52e47817fe049b97967400731
Ask H. Larsen [Tue, 29 Mar 2011 21:41:18 +0000 (23:41 +0200)]
Updated Danish translation
Ask H. Larsen [Tue, 29 Mar 2011 21:39:16 +0000 (23:39 +0200)]
Updated Danish translation
Ryan Lortie [Tue, 29 Mar 2011 18:14:21 +0000 (23:44 +0530)]
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
Carlos Garnacho [Mon, 28 Mar 2011 22:59:49 +0000 (00:59 +0200)]
theming: Implement non-uniform border-width in the theming engine.
The border-width CSS parameter takes up to 4 values, but it was
being ignored by the theming engine until now.
Carlos Garnacho [Mon, 28 Mar 2011 17:34:40 +0000 (19:34 +0200)]
theming: Avoid boxed struct copies throughout the default engine
Benjamin Otte [Tue, 29 Mar 2011 11:33:47 +0000 (13:33 +0200)]
label: Add another special case for measuring
Benjamin Otte [Tue, 29 Mar 2011 11:24:34 +0000 (13:24 +0200)]
label: Don't create the layout in size_allocate() if not needed
Just update its size if it already exists.
Benjamin Otte [Tue, 29 Mar 2011 11:21:48 +0000 (13:21 +0200)]
label: Move ellipsized layout width computation
... from size_allocate() to update_layout_width().
Benjamin Otte [Tue, 29 Mar 2011 13:12:30 +0000 (15:12 +0200)]
label: Factor out layout size measuring into its own function
Instead of doing half of it in get_preferred_size() and the other half
in get_label_width(), put it all in one place.
Benjamin Otte [Tue, 29 Mar 2011 13:05:27 +0000 (15:05 +0200)]
label: Move function to a better location
This patch does not change anything, it just moves the get_label_width
function.
Benjamin Otte [Tue, 29 Mar 2011 11:10:43 +0000 (13:10 +0200)]
label: Factor out layout size setting into a separate function
Benjamin Otte [Tue, 29 Mar 2011 01:31:09 +0000 (03:31 +0200)]
label: Only get font metrics if we have to
Getting these metrics is expensive, so avoid it if possible.
Benjamin Otte [Tue, 29 Mar 2011 01:16:34 +0000 (03:16 +0200)]
label: Add optimization for a common special case
Oftentimes we want to measure a layout that is as wide or wider than the
current layout's maximal width. In that case we can safely reuse the
current layout.
Benjamin Otte [Tue, 29 Mar 2011 00:53:28 +0000 (02:53 +0200)]
label: Remove unused boolean argument from ensure_layout()
It's always FALSE.
Note that this patch changes the layout for allocations that are
smaller than 1px, but that's just the default layout that is never
rendered.
Benjamin Otte [Tue, 29 Mar 2011 00:49:19 +0000 (02:49 +0200)]
label: Don't recreate the layout just for measuring
Instead, create a custom one.
Benjamin Otte [Tue, 29 Mar 2011 00:27:26 +0000 (02:27 +0200)]
label: Add internal gtk_label_get_measuring_layout() and use it
Avoids useless pango_layout_copy() calls and invalidations of an
existing layout when measuring sizes for a given label.
Benjamin Otte [Tue, 29 Mar 2011 13:26:03 +0000 (15:26 +0200)]
tests: Make test_init() not check for gdk-pixbuf anymore
gdk-pixbuf is system-installed these days.
Benjamin Otte [Tue, 29 Mar 2011 11:55:06 +0000 (13:55 +0200)]
progressbar: remove needless is_drawable() check before queue_resize()
Benjamin Otte [Tue, 29 Mar 2011 00:27:16 +0000 (02:27 +0200)]
tracker: Include gdk.h
Aron Xu [Tue, 29 Mar 2011 11:02:06 +0000 (11:02 +0000)]
Update Simplified Chinese po-properties translation.
Aron Xu [Tue, 29 Mar 2011 10:52:13 +0000 (10:52 +0000)]
Revert "Update Simplified Chinese translation." it commits po-properties translations to po.
This reverts commit
bd058d4ba36a166776c88cae9a2a541dae5decca .
Aron Xu [Tue, 29 Mar 2011 10:48:33 +0000 (10:48 +0000)]
Update Simplified Chinese translation.
Benjamin Otte [Mon, 28 Mar 2011 13:03:38 +0000 (14:03 +0100)]
docs: Update the drawing model description for GTK 3
https://bugzilla.gnome.org/show_bug.cgi?id=645937
Benjamin Otte [Mon, 28 Mar 2011 21:54:00 +0000 (23:54 +0200)]
docs: Fixes for icon renaming
Fixes up breakage from
39d4207ab7ecedc0fce2e65478dbd5d152e23b65
Alexander Larsson [Fri, 25 Mar 2011 09:53:05 +0000 (10:53 +0100)]
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.
Abduxukur Abdurixit [Sun, 27 Mar 2011 19:24:20 +0000 (21:24 +0200)]
Added UG translation
Michael Natterer [Sun, 27 Mar 2011 13:43:31 +0000 (15:43 +0200)]
gtk: add "Since: 3.2" to gtk_widget_path_to_string()
Yuri Kozlov [Sun, 27 Mar 2011 10:27:45 +0000 (14:27 +0400)]
Updated Russian translation
Yuri Myasoedov [Sun, 27 Mar 2011 10:25:19 +0000 (14:25 +0400)]
Revert "Updated Russian translation"
This reverts commit
e082ac5ab5cdb9d3fb16b5e69819b34ebb30fe6a .
Yuri Kozlov [Sun, 27 Mar 2011 10:23:01 +0000 (14:23 +0400)]
Updated Russian translation
Benjamin Otte [Sun, 27 Mar 2011 01:43:07 +0000 (03:43 +0200)]
widget: Only reemit style-set signal after gtk_widget_get_style()
If the widget does not care about the compat code, just ignore it.
Benjamin Otte [Sun, 27 Mar 2011 01:39:43 +0000 (03:39 +0200)]
widget: Don't invalidate style context in its invalidate callback
Benjamin Otte [Sun, 27 Mar 2011 00:53:04 +0000 (01:53 +0100)]
widget: Update path unconditionally in gtk_widget_reset_style()
Also, don't set the new path twice on the style context.
Benjamin Otte [Sun, 27 Mar 2011 00:52:16 +0000 (01:52 +0100)]
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().
Benjamin Otte [Sun, 27 Mar 2011 00:51:20 +0000 (01:51 +0100)]
widget: Call the non-deprecated function
Both functions are identical, just that one isn't deprecated.
Benjamin Otte [Sat, 26 Mar 2011 13:29:32 +0000 (14:29 +0100)]
API: Add gtk_widget_path_to_string()
Dumps the widget path into a string representation. It tries to match the CSS
style as closely as possible (Note that there might be paths that cannot be
represented in CSS).
The main use of this code is for debugging purposes, so that you can
g_print() the path or dump it in a gdb session.
Benjamin Otte [Sat, 26 Mar 2011 22:34:45 +0000 (23:34 +0100)]
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
Benjamin Otte [Sat, 26 Mar 2011 22:33:39 +0000 (23:33 +0100)]
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.
Benjamin Otte [Sat, 26 Mar 2011 20:55:35 +0000 (21:55 +0100)]
widget: Don't call gtk_style_attach() and gtk_style_detach() anymore
Benjamin Otte [Sat, 26 Mar 2011 20:46:50 +0000 (21:46 +0100)]
docs: Make clear that gtk_widget_set_style() does not do anything
Benjamin Otte [Sat, 26 Mar 2011 20:45:32 +0000 (21:45 +0100)]
widget: Use a priv variable
Benjamin Otte [Sat, 26 Mar 2011 20:42:41 +0000 (21:42 +0100)]
widget: Widgets always have a style, so no need to check for NULL
Benjamin Otte [Sat, 26 Mar 2011 18:22:31 +0000 (19:22 +0100)]
combobox: Don't set the menu's name twice
Benjamin Otte [Sat, 26 Mar 2011 16:00:36 +0000 (17:00 +0100)]
notebook: Only reset style on tab labels when it actually changes