Commit Graph

26532 Commits

Author SHA1 Message Date
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
Alexander Shopov
2296dc089a Updated Bulgarian translation 2011-03-25 22:31:12 +02:00
Matthias Clasen
79628d4f18 Bump version 2011-03-25 14:15:25 -04:00
Matthias Clasen
21c2a52318 Updates for 3.0.6 3.0.6 2011-03-25 13:22:09 -04:00
Florian Müllner
7707c3bdc0 window: Use settings from screen rather than default
gtk_settings_get_default() was used to monitor the
"gtk-application-prefers-dark-theme" setting, rather
than the GtkSettings object associated with the window's
screen.
2011-03-25 17:02:44 +01:00
Florian Müllner
e5f1871748 window: Export theme variant to X11
The metacity theme format allows to use colors from the current
GTK+ theme in window decorations. Since GTK+ now gained support
for dark theme variants, window managers using that theme format
(metacity, mutter, compiz via gtk-window-decorator) should be able
to use colors from the correct variant; so in case a variant is
requested, export it in the _GTK_THEME_VARIANT property on
toplevel windows.

https://bugzilla.gnome.org/show_bug.cgi?id=645354
2011-03-25 14:38:05 +01:00
Changwoo Ryu
91bce8e1cb Updated Korean translation 2011-03-25 22:01:43 +09:00
Amitakhya Phukan
34d2028da3 Updated Assamese translations 2011-03-25 14:34:24 +05:30
Friedel Wolff
e6f0ed36bc Update translation for Afrikaans (af) 2011-03-24 23:14:57 +02:00
Matthias Clasen
1c581263da Make selectable labels work again
You can select something, but moving the focus somewhere else, or bringing up
the context menu makes the selection go away. This makes it impossible to
copy-paste the text.

The reason for this regression is that gtk_label_state_changed was sloppy and
assumed that it would only ever be called when a labels goes insensitive, which
is no longer the case.

The patch fixes things by explicitly checking if the widget is insensitive, and
only resetting the selection in that case, which is the same behaviour we have
for e.g. GtkEntry.
2011-03-24 12:46:38 -04:00
chiachen
6cee7e3056 Update simplified Chinese translation. 2011-03-24 16:29:02 +00:00
Matthias Clasen
ebe04950b4 Bump version 2011-03-23 17:30:25 -04:00
Matthias Clasen
bb82228b3d Updates for 3.0.5 3.0.5 2011-03-23 16:26:21 -04:00
Luca Ferretti
e4fef8ce28 Updated Italian translation 2011-03-23 20:10:11 +01:00
Cosimo Cecchi
e30a32cd1c switch: hardcode a smaller font size for the switch label
This should not really be done here, but we can't override font size
from the theme just yet.

https://bugzilla.gnome.org/show_bug.cgi?id=645458
2011-03-23 09:38:20 -04:00
Cosimo Cecchi
d2ef917821 gtksettings: unset attributes set to normal from font description
So that they do not override values coming from the theme.

Based on a patch by Carlos Garnacho.

https://bugzilla.gnome.org/show_bug.cgi?id=645458
2011-03-22 14:56:29 -04:00
Cosimo Cecchi
3321b0b0b5 Revert "styleproperties: don't force replacing the font description"
It turns out the bug is more complicated than I originally understood.
Not replacing the font description fields while merging here makes it
impossible for application's CSS to override fonts.

This reverts commit 89c1d93b68.

https://bugzilla.gnome.org/show_bug.cgi?id=645458
2011-03-22 14:55:42 -04:00
Sweta Kothari
3a8f432d49 Updated Gujarati Translations 2011-03-22 15:51:03 +05:30
Sweta Kothari
1548587386 Updated Gujarati Translations 2011-03-22 15:36:50 +05:30
Matthias Clasen
73d8ed97dd Bump version 2011-03-21 13:15:41 -04:00
Matthias Clasen
1d9dbf6cbc Update NEWS 3.0.4 2011-03-21 11:13:37 -04:00
Marek Kasik
3dde093b71 Check whether a resolution has been set in GtkPrintSettings
If resolution has not been set then use default resolution from ppd.

https://bugzilla.gnome.org/show_bug.cgi?id=635254
2011-03-21 11:10:14 -04:00
Matthias Clasen
2af93a0b41 Update NEWS 2011-03-21 11:05:51 -04:00
Cosimo Cecchi
0032b1e88c themingengine: don't hardcode white to draw insensitive labels shadow
Use the background color instead.
I think the optimal solution would be delegating the shadow rendering to
the theme completely, and removing this in GtkThemingEngine, but for
now, this simple fix makes the dark variant more usable.

https://bugzilla.gnome.org/show_bug.cgi?id=645405
2011-03-21 11:00:04 -04:00
Cosimo Cecchi
8d0e30c4b5 filechooserdefault: fix a build warning 2011-03-21 10:59:42 -04:00
Garrett Regier
488241b3be Fix leaking calls to gdk_device_manager_list_devices()
gdk_device_manager_list_devices() returns a newly allocated list.

https://bugzilla.gnome.org/show_bug.cgi?id=645234
2011-03-21 10:37:49 -04:00
Matthias Clasen
acbdd23d29 Fix portability issues in configure
Avoid using bash features unnecessarily.
Patch by Matteo Settenvini
https://bugzilla.gnome.org/show_bug.cgi?id=645057
2011-03-21 10:34:15 -04:00
Garrett Regier
4dc4740b69 Free the motion hint infos in GdkDisplay
https://bugzilla.gnome.org/show_bug.cgi?id=645235
2011-03-21 10:24:01 -04:00
Gintautas Miliauskas
6048d8c5e2 Updated Lithuanian translation. 2011-03-21 14:29:25 +01:00
Rudolfs Mazurs
c6593fbf7a Updated Latvian translation. 2011-03-20 15:27:18 +02:00
Gabor Kelemen
bc05fbd531 Updated Hungarian translation 2011-03-19 23:45:36 +01:00
Wouter Bolsterlee
8df5aad492 Updated Dutch translation by Wouter Bolsterlee 2011-03-19 17:58:06 +01:00
Cosimo Cecchi
64860e184a radiobutton: exclude states we set manually from the previous state
https://bugzilla.gnome.org/show_bug.cgi?id=645172
2011-03-18 15:14:25 -04:00