Commit Graph

47130 Commits

Author SHA1 Message Date
Matthias Clasen
0100f08592 wayland: Make virtual modifier mapping more similar to X
Ignore virtual modifiers that are mapped to Mod1 (as Meta
often is), to avoid interfering with our fix interpretation
of Mod1 as Alt.
2016-04-19 10:36:14 -04:00
Matthias Clasen
49bddf48ad wayland: Fix the map_virtual_modifiers implementation
We were not stripping real modifiers out, and thus always
thought there's a conflict when the passed in modifiers
included any real modifiers.
2016-04-19 10:36:14 -04:00
Matthias Clasen
4018a32e0b wayland: Implement virtual modifiers
Since Wayland is using libxkbcommon, it inherits X unfortunate
real/virtual modifier distinction, so we have to do the same
gymnastics we do for X to map between the two.

This should fix matching of accelerators using virtual modifiers
(modulo gnome-shell bugs regarding the handling of Super).

https://bugzilla.gnome.org/show_bug.cgi?id=764424
2016-04-19 10:36:14 -04:00
Matthias Clasen
e530a0ecd1 Clarify docs a bit
The wording here was just awkward: TRUE is returned if... Note that
FALSE is also returned if...
2016-04-19 10:36:14 -04:00
Emmanuele Bassi
5e11b071a7 recent-manager: Emit ::changed on file deletion
This will clear out the list of recently used files, and will allow GVFS
to handle this case.

https://bugzilla.gnome.org/show_bug.cgi?id=693077
2016-04-19 10:30:59 -04:00
Emmanuele Bassi
1c449e8d4a Assign a recent manager if one is set
The GtkRecentAction implementation ignored a GtkRecentManager passed to
its :manager property.

https://bugzilla.gnome.org/show_bug.cgi?id=620065
2016-04-19 10:30:59 -04:00
Sébastien Wilmet
6144469d02 app: minor code improvements
- use GDK_EVENT_PROPAGATE
- pass better zero-values to gtk_init(), since the parameters are
  pointers.

https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:28:58 -04:00
Sébastien Wilmet
a2a3de7861 app: improve code of extract_accels_from_menu()
sub_model is clearer than "m". And we don't use the key, so we can pass
NULL instead.

https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:28:52 -04:00
Sébastien Wilmet
69c902a146 app: use g_set_object()
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:28:45 -04:00
Sébastien Wilmet
0bb1991afb app: don't use deprecated function
gtk_application_add_accelerator() is deprecated, but was still used
inside IGNORE_DEPRECATIONS's.

https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:28:39 -04:00
Sébastien Wilmet
5cc3b265be app: improve doc of gtk_application_get_window_by_id()
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:28:17 -04:00
Sébastien Wilmet
cb2950e17f app: improve doc of gtk_application_set_accels_for_action()
When reading the API for the first time I didn't know what was the
"detailed" action name.

https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:28:06 -04:00
Sébastien Wilmet
dc96266e66 app: avoid code duplication for setting accels
The implementation of the deprecated functions is now based on the
non-deprecated gtk_application_set_accels_for_action().

https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-19 10:27:19 -04:00
Sébastien Wilmet
b51455712f app: fix indentation
And add missing curly braces.
2016-04-19 10:24:32 -04:00
Sébastien Wilmet
9bc3a93cf9 docs: trivial fixes in GtkApplication-related documentation 2016-04-19 10:24:07 -04:00
Olivier Fourdan
115af7c96e wayland: do not update shadows for child windows
glade-previewer places a gtkwindow inside another toplevel gtkwindow,
updating the shadow width for the client induces a busy loop where the
parent will grow continuously until it crashes gnome-shell/mutter.

To avoid the loop, do not update the shadow width if not dealing with a
toplevel window.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=761651
2016-04-19 10:23:39 -04:00
Wouter Verhelst
139cb2a510 Clarify that one cannot use the same variable
A naive way to perform an action on all parent nodes of a given node
could be to do:

while(gtk_tree_model_iter_parent(model, &iter, &iter)) {
	/* perform some action on iter here */
}

However, since gtk_tree_model_iter_parent() will initialize the iterator
pointed to by the second parameter before performing the lookup, this
will not work.

Explicitly document this behaviour.

Signed-off-by: Wouter Verhelst <w@uter.be>

https://bugzilla.gnome.org/show_bug.cgi?id=573380
2016-04-19 10:22:00 -04:00
Matthias Clasen
a2a369ae1c Add a comment to explain numbers here
This explains the change in the previous commit.
2016-04-19 10:21:30 -04:00
Piotr Drąg
9d8a3e99fd cups: Fix duplicate string
https://bugzilla.gnome.org/show_bug.cgi?id=765122
2016-04-19 10:21:11 -04:00
Lapo Calamandrei
5affbbe545 Adwaita: fix infobar text color in backdrop windows
see https://bugzilla.gnome.org/show_bug.cgi?id=765213
2016-04-19 00:21:15 +02:00
Piotr Drąg
dadd81768a Updated Polish translation 2016-04-18 02:36:34 +02:00
Bastien Nocera
a69e59132f cups: Fix gettext usage
The previous patches didn't mark some strings as to be translated, and
tried to translate strings with a variable part already inside the
string, which isn't going to work.

Mark the strings as translatable with context, and also make sure to
translate static strings when getting them out of their structure.

https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-16 18:42:28 +02:00
Lapo Calamandrei
dfc26939cc Adwaita: ensure dialogs titlebar rounded corners
broken from my previous commit about rounded corners, dialogs
doesn't use the "window" node, but the "dialog" node, so use the
.background styleclass in the selectors which is more generic.
2016-04-16 14:44:58 +02:00
Lapo Calamandrei
c961962ce6 Adwaita: ensure titlebar corners are not rounded...
...when the window is maximized or tiled, by using more specific
selectors, since there were cases of erroneusly rounded corners.
See https://bugzilla.gnome.org/show_bug.cgi?id=765038
2016-04-16 12:07:32 +02:00
Benjamin Otte
6308d3a03d iconhelper: Invalidate on clear()
When clearing the icon helper, we need to invalidate it. Otherwise the
previous icon keeps lingering along.
This is not relevant inside gtkiconhelper.c where other code causes the
invalidation, but happens when external code calls
_gtk_icon_helper_clear().

https://bugzilla.gnome.org/show_bug.cgi?id=765066
2016-04-14 15:17:54 -04:00
Felipe Borges
71385044fe cups: make string non-literals translatable again
Notice that C_ just takes string literals as arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-14 18:58:56 +02:00
Sebastien Bacher
c1e82bf276 gtkplacessidebar: don't margins in the code
those should rather be defined by the theme
https://bugzilla.gnome.org/show_bug.cgi?id=763768
2016-04-14 11:47:31 +02:00
Felipe Borges
8e0c2a3fff cups: Fix more "format not a string literal" error
https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-13 14:27:34 +02:00
YunQiang Su
99763f3dd5 update zh_CN translation 2016-04-13 20:15:38 +08:00
YunQiang Su
f655210f42 update zh_CN translation 2016-04-13 16:41:44 +08:00
Rico Tzschichholz
2b71170b12 gtk: Annotate GtkFlowBoxCreateWidgetFunc as "transfer full"
(cherry picked from commit c8d1108574)
2016-04-12 13:34:53 +02:00
Matthias Clasen
8e6171d68e 3.20.3 3.20.3 2016-04-11 20:04:45 -04:00
Ignacio Casal Quinteiro
667bb3c869 win32: rollback change and use _gdk_display
This makes usage of _gdk_display again when creating a window.
This is needed because there is a window created when the display
is being initialized, so it becomes a chicken and egg problem.
For now we roll back this to fix the wintab crash but we might
want to fix this again in the future by improving the wintab
initialization.

https://bugzilla.gnome.org/show_bug.cgi?id=764664
2016-04-11 22:35:43 +02:00
Arash Mousavi
c752d8ad75 Update Persian translations 2016-04-11 23:11:35 +04:30
Matthias Clasen
22d3a16653 listbox: Fix css node ordering
When inserting a child at the top, we were not inserting its
css node properly.

https://bugzilla.gnome.org/show_bug.cgi?id=764710
2016-04-11 07:53:45 -04:00
Mohammed Sadik
b16c9ebdf1 broadway: fix documentation
broadway backend has 0 as the default display port,
which maps to tcp port 8080.

https://bugzilla.gnome.org/show_bug.cgi?id=764835
2016-04-11 07:36:31 -04:00
Lukas K
0f85624e3d Fix gtk_scrollable_get_border annotation
https://bugzilla.gnome.org/show_bug.cgi?id=764540
(cherry picked from commit 8fc1ca1ef2)
2016-04-10 16:14:21 +02:00
Zahari Yurukov
6b401440d7 Added Bulgarian translation 2016-04-10 16:50:43 +03:00
Zahari Yurukov
b9c2bbc385 Added Bulgarian translation 2016-04-10 16:31:35 +03:00
Friedrich Beckmann
6964f9dbf1 quartz: zoom/rotate change compile/runtime check from 10.7 to 10.8
The zoom/rotate change for quartz does not build on 10.7. This change
adds zoom/rotate support in quartz only for 10.8 and following. The
problems is described here:
https://bugzilla.gnome.org/show_bug.cgi?id=760276 and here
https://trac.macports.org/ticket/51052
NSEventPhaseMayBegin was only introduced in 10.8 although documentation
says it is introduced in 10.7. Tests on 10.7 indicate that the phase
property for the Magnify event is not supported at all on 10.7
2016-04-09 18:09:59 -04:00
Matthias Clasen
85df2d3729 Mention geometry handling changes in release notes 2016-04-09 17:06:45 -04:00
Olivier Fourdan
0922d4059a test: do not remove files on distclean
bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=764686
2016-04-08 17:01:56 +02:00
Руслан Ижбулатов
f233609c93 GDK W32: Don't move windows into top-left corner on style change
This fixes a bug that was introduced by db1b24233e.
The reason why 0:0 coordinates were passed was that SWP_NOREPOSITION was
misinterpreted as SWP_NOMOVE. That is not the case - SWP_NOREPOSITION
prevents owner Z-order change, not the window position change.
2016-04-06 10:25:32 +00:00
Olivier Fourdan
dee6d13f0d wayland: Do not resize with the same size
gnome-control-center is calling gtk_window_resize() on configure-event
signals which leads to a busy loop.

Avoids such a busy loop by not re-configuring a window with the same
size, unless this is coming from and xdg-shell configure.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=764374
2016-04-05 18:23:45 +02:00
Bastien Nocera
830626596b cups: Fix "format not a string literal" error
https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-05 13:01:59 +02:00
Bastien Nocera
3ff8f55ed0 recent-manager: Fix "format not a string literal" error
https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-05 13:01:50 +02:00
Bastien Nocera
7ca4d22bc3 file-chooser-widget: Fix "format not a string literal" error
https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-05 13:01:39 +02:00
Bastien Nocera
ff8d0dc54c about-dialog: Fix "format not a string literal" errors
A non-intrusive fix.

https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-05 13:01:33 +02:00
Bastien Nocera
4b104c6217 ui-manager: Fix "format not a string literal" errors
Quite a bit of code movement, but necessary to build with the
default format errors produced by newer versions of GCC.

https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-05 13:01:24 +02:00
Benjamin Otte
6144b2276c window: Remove suspicious branch
This commit was found to make emacs windows shrink, but the reversal
caused more widespread damage than initially expected. I've send
suggested fixes to the emacs team, to avoid the shrinking window,
regardless of this commit.

Original commit message:

It seems this branch is not needed anymore. It was originally added in
1999 to support gtk_widget_realize(), but all those reasons seem
obsolete today.
Instead just call gtk_widget_realize().

If you end up at this commit when bisecting:
There is no bug that made me remove this code, it was purely meant to be
cleanup / dead code removal. I seem to have introduced a new bug or
bisecting wouldn't have let you here. So it seems we should just revert
this commit.
2016-04-04 11:22:47 -04:00