Commit Graph

40280 Commits

Author SHA1 Message Date
Christophe Fergeau
fe6b3e552e Return correct font from gtk_font_chooser_widget_find_font
Commit 30a1c4ab fixed several memleaks including one in
gtk_font_chooser_widget_find_font.

However, the fix causes one extra call to gtk_tree_model_iter_next()
after finding the font we look for (ie pango_font_description_equal
returns TRUE): the 'increment' part of the for loop
(gtk_tree_model_iter_next) is run before the 'exit condition' of the for
loop is evaluated.

This commit reverts this part of commit 30a1c4ab and adds an extra
call to pango_font_description_free in order to fix the leak.

https://bugzilla.gnome.org/show_bug.cgi?id=739111
2014-10-26 21:57:27 -04:00
Christophe Fergeau
9e96e13d28 fontchooserwidget: Don't invalidate priv->font_iter in load_fonts
When using GtkFontChooserButton, the same GtkFontChooserWidget can be
hidden and shown multiple times. When doing that, the font that was
chosen the previous time should be the selected one in the
GtkFontChooserWidget, however this does not work as expected and a
somehow 'random' font gets selected (or none) instead.

Every time the font chooser widget is shown, its style will be updated,
causing gtk_font_chooser_widget_style_updated and then
gtk_font_chooser_widget_load_fonts to be called.

gtk_font_chooser_widget_load_fonts starts by clearing the GtkListStore
listing the available fonts, repopulates it, and then makes sure the
current font is selected.

However, this does not work as expected, as during the call to
gtk_list_store_clear, the cursor_changed_cb will be invoked multiple
times when the GtkTreeView cursor gets moved when the line where the
cursor currently is gets removed. This will cause the 'current font'
state (priv->font_desc) to be unexpectedly modified, and when
gtk_font_chooser_widget_load_fonts tries to reposition the cursor to the
'current font', we won't get the expect result.

This commit avoids that by making sure cursor_changed_cb does not get
called when we call gtk_list_store_clear in
gtk_font_chooser_widget_load_fonts.

https://bugzilla.gnome.org/show_bug.cgi?id=739111
2014-10-26 21:57:19 -04:00
Matthias Clasen
752170e8d6 Fix an out-of-bounds access in MyEnhancedXkbTranslateKeyCode
Commits 314b6abbe8 and eb9223c008 were ignoring
the fact that the code where found is set to 1 was modifying
col - which was an ok thing to do when that part of the code
was still breaking out of the loop, but it is no longer doing
that (since 2003 !). Fix things up by storing the final col
value in a separate variable and using that after the loop.

https://bugzilla.gnome.org/show_bug.cgi?id=738886
2014-10-26 21:57:09 -04:00
Marek Černocký
8336d56af9 Updated Czech translation 2014-10-26 00:32:14 +02:00
Marek Černocký
59769a0046 Updated Czech translation 2014-10-26 00:32:03 +02:00
Мирослав Николић
7c804dbf21 Updated Serbian translation 2014-10-24 10:42:07 +02:00
Мирослав Николић
84d6b0f35c Updated Serbian translation 2014-10-24 10:30:34 +02:00
Chun-wei Fan
ccdcc8a1ec Fix Up Visual Studio Property Sheets
"Install" gdkbroadwaydisplay.h, as it is a public header of GDK Broadway,
also fix the MSVC 2010+ gtk-copy-gdk-broadway.props property sheet as a
'>' is missing.  Sorry for not noting these issues earlier, as MSVC
Broadway builds were recently restored.  My bad :|
2014-10-24 12:53:15 +08:00
Chun-wei Fan
ca26f696c6 gtk/deprecated/gtkstatusicon.c: Fix Build on C89 Compilers
Declare variable at the top of the block, which is needed from the change
in commit 1bad7865.
2014-10-24 12:24:16 +08:00
Gábor Kelemen
4a25c48a01 Updated Hungarian translation 2014-10-23 10:49:41 +00:00
Gábor Kelemen
5d9d1f161b Updated Hungarian translation 2014-10-23 10:48:17 +00:00
Matthias Clasen
01dd0eb4c2 Revert "Implement support for ATK_STATE_HAS_TOOLTIP"
This reverts commit ad6de7637b.

This requires new atk API that is not available in 2.14.0.
2014-10-22 23:10:55 -04:00
Brion Vibber
0b883daf15 Fix to gtkstatusicon.c to allow building both X11 and Quartz backends
https://bugzilla.gnome.org/show_bug.cgi?id=739005
2014-10-22 22:57:50 -04:00
Joanmarie Diggs
ad6de7637b Implement support for ATK_STATE_HAS_TOOLTIP
https://bugzilla.gnome.org/show_bug.cgi?id=738982
2014-10-22 22:57:43 -04:00
Matthias Clasen
79e7934eb3 Fix mispositioned window menu in hi-dpi
We always want to send the position in device pixels,
so apply the window scale before sending them out.

https://bugzilla.gnome.org/show_bug.cgi?id=738955
2014-10-22 22:57:35 -04:00
Chun-wei Fan
ea8a281543 gdk/broadway/toarray.pl: Fix Code Generation for MSVC
The current implementation of this script generate headers with \x-escaped
strings that can become too long (> 65535 characters) for Visual Studio
to consume, hence the build of broadwayd would break on Visual Studio.

This changes the script to instead format the string as an array of hex
characters, not unlike what GResource does, so that builds can continue as
normal on Visual Studio builds as well.

https://bugzilla.gnome.org/show_bug.cgi?id=739001
2014-10-23 09:13:16 +08:00
Chun-wei Fan
cd443f34c7 Visual Studio Builds: Fix broadwayd Build
There is now a broadway-buffer.c source that needs to be built for this, so
add it into the projects.  Since crypt() is no longer used, don't include
crypt.c in the builds, and so clean up the projects a bit.
2014-10-22 19:42:15 +08:00
Matthias Clasen
210c3d0129 3.14.4 3.14.4 2014-10-21 11:02:15 -04:00
Ryan Lortie
8f1c6e3717 wayland: don't init if XDG_RUNTIME_DIR missing
wayland doesn't strictly follow the XDG_RUNTIME_DIR spec by falling back
to another directory in case the runtime dir is not properly set.

When this variable is unset, wayland will log an error to us, which we
treat as fatal, aborting the entire program.

Skip ourselves all the trouble and don't try to bring up the wayland
backend when we know it will fail in this way.

https://bugzilla.gnome.org/show_bug.cgi?id=738873
2014-10-21 08:13:25 -04:00
Benjamin Otte
989330a9fd render: We use CHECKED now, not ACTIVE
Update docs and custom rendering of checkmarks and radio buttons
2014-10-21 05:58:02 +02:00
Benjamin Otte
5930c55d42 stylecontext: fix icon-source extents computation
for the builtin image or invalid matrix case. We used to return invalid
memory in those cases. And that was not good.
2014-10-21 05:55:28 +02:00
Rafael Ferreira
4f9f52c513 Updated Brazilian Portuguese translation 2014-10-20 21:30:26 +00:00
Kjartan Maraas
cd6caea94c Updated Norwegian bokmål translation. 2014-10-20 19:03:27 +02:00
Daniel Mustieles
5291d0870b Updated Spanish translation 2014-10-20 15:05:01 +02:00
Dušan Kazik
78bb68685b Updated Slovak translation 2014-10-19 17:22:29 +00:00
Andika Triwidada
baf2b5c57b Updated Indonesian translation 2014-10-19 04:25:12 +00:00
Andika Triwidada
94b471aaed Updated Indonesian translation 2014-10-19 04:22:17 +00:00
Piotr Drąg
5ce6756f96 Updated Polish translation 2014-10-18 23:45:21 +02:00
Thomas Lange
63076ad085 aboutdialog: Mark strings as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=730893
2014-10-18 23:01:19 +02:00
Matthias Clasen
21e5031103 GtkWindow: Avoid an early exit
When gtk_window_set_titlebar (win, NULL) is called, we were taking
an early exit and forgot to re-map the window. This does not normally
happen in practice, but glade is about to get a 'csd' switch which
lets one toggle back and forth between titlebar and no titlebar.
2014-10-17 14:02:16 -04:00
Baurzhan Muftakhidinov
7abd5a5636 Updated Kazakh translation 2014-10-17 11:52:28 +00:00
Matthias Clasen
c4fe388255 GtkEntry: plug a small memleak
GtkEntry was leaking a pango attribute list, if one was set.
2014-10-16 22:00:08 -04:00
Matthias Clasen
06842a2dc5 GtkPlacesSidebar: Don't leak an icon
Found in valgrind.
2014-10-16 20:30:42 -04:00
Matthias Clasen
30a1c4ab35 GtkFontChooserWidget: Plug several memleaks
These were showing up in valgrind.
2014-10-16 20:30:34 -04:00
Matthias Clasen
973b52e8cf GtkContainerAccessible: avoid resurrecting accessibles
When removing a child, we don't want to resurrect its
accessible needlessly.
2014-10-16 20:30:25 -04:00
Lapo Calamandrei
c25e8cefae Adwaita: fix stack-switcher button outline offset
See https://bugzilla.gnome.org/show_bug.cgi?id=738636
2014-10-16 20:26:12 +02:00
Matthias Clasen
627c285b4c Avoid deprecation warnings
We don't really care if we use deprecated API inside deprecated
code, so just ignore the warning.
2014-10-15 14:44:03 -04:00
Matthias Clasen
36bc6c82f9 Revert "gtktrayicon-x11: Stop using set_double_buffered"
This reverts commit 4a72563c7b.

It turns out that this commit broke statusicons under Xfce when
not using a compositor.

https://bugzilla.gnome.org/show_bug.cgi?id=737986
2014-10-15 14:43:53 -04:00
Matthias Clasen
1670ba1d51 GtkBox: Ensure we only allow one center child
Glade was happily adding multiple center widgets. Oops.
2014-10-13 12:44:02 -04:00
Matthias Clasen
adfb60dff7 Updates for 3.14.3 3.14.3 2014-10-13 11:50:03 -04:00
Carlos Soriano
ffc4111fea gtkplacessidebar: Fix commit f6870e5b79
Commit f6870e5b79 introduced a some memory leaks and could be
improved in some areas.

Fix the memory leaks and apply the improvements.

https://bugzilla.gnome.org/show_bug.cgi?id=737983
2014-10-13 11:50:03 -04:00
Milo Casagrande
8710a14d34 Updated Italian translation 2014-10-13 11:13:03 +00:00
Matthias Clasen
654c989f22 GtkSearchBar: don't peek out
When the searchbar is hidden, a 1-pixel-high piece of it is
still peeking out, because visible widgets are always allocated
at least 1x1. Work around this by setting child-visible to FALSE
in this situation.

https://bugzilla.gnome.org/show_bug.cgi?id=724096
2014-10-12 18:21:25 -04:00
Dušan Kazik
1515a5a8f9 Updated Slovak translation 2014-10-12 21:02:10 +00:00
Dušan Kazik
9c1ecdf112 Updated Slovak translation 2014-10-12 21:01:04 +00:00
Мирослав Николић
b261ca7ec2 Updated Serbian translation 2014-10-12 08:44:10 +02:00
Lapo Calamandrei
4e569765be Adwaita: fix the special cased sidebar scrollbar...
...which I broke with the latest commit.
2014-10-11 14:37:16 +02:00
Lapo Calamandrei
d840504741 Adwaita: finally kill the scrollbar junction frame...
See https://bugzilla.gnome.org/show_bug.cgi?id=737981
2014-10-11 14:33:01 +02:00
Lapo Calamandrei
b1345c0218 Adwaita: dim menu overflow button border color 2014-10-11 11:11:56 +02:00
Lapo Calamandrei
e119422927 Adwaita: style menu overflow button
See bug https://bugzilla.gnome.org/show_bug.cgi?id=738158
2014-10-11 11:11:43 +02:00