Commit graph

148 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
62f07b2c6d common: Don't unconditionally define HAVE_WAYLAND
This header unconditionally defines HAVE_WAYLAND when GTK
is built with Wayland support. This breaks the build when
building with Wayland disabled.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 20:09:38 -02:00
Iñigo Martínez
32edd6789e build: Port to meson build system
Meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 20:09:35 -02:00
Carlos Garnacho
f24b528695 common: Check for wayland before building GsdUdevDeviceManager
Udev is rather common, so this check doesn't suffice if anyone wants
to build with no wayland support whatsoever.

https://bugzilla.gnome.org/show_bug.cgi?id=780544
2018-01-16 17:35:03 +01:00
Carlos Garnacho
a23aa64ec7 common: Update from gnome-settings-daemon 2017-07-13 18:11:01 +02:00
Carlos Garnacho
3b72790b72 common: Add tablet device type to pad GdkDevices
The wacom panel expects all tablet devices to have the "tablet"
device type flag set on the GsdDevice, otherwise devices won't get
recognized and paired with the other devices for the same tablet.
Uncovered now that GTK+ correctly uses GDK_SOURCE_TABLET_PAD for
pad devices on X11.

https://bugzilla.gnome.org/show_bug.cgi?id=784882
2017-07-13 18:11:01 +02:00
Bastien Nocera
3ab88c7ff0 common: Fix parallel build
https://bugzilla.gnome.org/show_bug.cgi?id=752596
2017-02-08 18:37:06 +01:00
Rui Matos
1e7631d8a4 common: Handle trackpoint devices in GsdDeviceManagerX11
With gtk+ >= 3.22 trackpoints are classified separately from mice so
we need to handle them here. Also, remove the default case so that we
get a compilation warning in case this happens again.

In the future we might want to expose this further if we start adding
trackpoint specific UI.

https://bugzilla.gnome.org/show_bug.cgi?id=776660
2017-01-09 15:45:38 +01:00
Carlos Garnacho
0dca4e7fe9 common: Handle pad devices in GsdDeviceManagerX11
We cater for the old(=Wacom) and new(=libinput) type/name schemes,
so we don't require a too recent gtk+ just for this.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
15d3e0e2b5 common: Detect pad devices in GsdDeviceManagerUdev 2016-11-04 23:26:41 +01:00
Carlos Garnacho
176dfca170 common: Add "pad" GsdDeviceType to GsdDeviceManager
So we can recognize pad devices.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
8f9259ac06 common: Implement lookup vfunc in GsdDeviceManagerUdev 2016-11-04 23:26:41 +01:00
Carlos Garnacho
cfec960c56 common: Implement lookup vfunc in GsdDeviceManagerX11
And remove the get_gdk_devices() call, since it's unused and unneeded.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
3db9203dd2 common: Add generic API to map GdkDevices to GsdDevices
Now that we have tablet support in wayland, we can kind of honor
that in the places we're interested. The inverse (looking up the
GdkDevices that a single GsdDevice represents) is unneeded.
2016-11-04 23:26:41 +01:00
Michael Catanzaro
fa9ea59ae4 common: fix parallel build race 2016-09-09 19:28:22 -05:00
Rui Matos
11d5d850b2 common: Fix search by skipping soft hyphens when normalizing
Commit b3be07609a introduced soft
hyphens in panel names which causes searches to fail. Fix this by
skipping soft hyphen when normalizing strings.

https://bugzilla.gnome.org/show_bug.cgi?id=765617
2016-04-26 17:17:31 +02:00
Zeeshan Ali (Khattak)
5ebf3d8ddf common: Fix codying-style in cc_util_get_smart_date()
https://bugzilla.gnome.org/show_bug.cgi?id=761245
2016-03-03 16:07:58 +00:00
Zeeshan Ali (Khattak)
afebec5d9a common: Move get_smart_date() to common utils
And rename it to cc_util_get_smart_date().

In a following patch, we'll need to use it from privacy panel.

https://bugzilla.gnome.org/show_bug.cgi?id=761245
2016-03-03 16:07:58 +00:00
Bastien Nocera
d98d42880d common: Update from gnome-settings-daemon 2016-01-10 10:24:41 +01:00
Rui Matos
ae7b1a97eb common: Tick an unselected row when enter is pressed
This makes the dialog easier to use via keyboard navigation since
otherwise we would just dismiss the dialog with the current selection
on enter when the user actually intended to change the selection.

https://bugzilla.gnome.org/show_bug.cgi?id=752001
2015-07-07 18:48:56 +02:00
Rui Matos
32653a0a65 common: Dismiss dialog if the activated row was already ticked
This makes the dialog a bit friendlier to use.

https://bugzilla.gnome.org/show_bug.cgi?id=752001
2015-07-07 18:48:56 +02:00
Rui Matos
912e78d896 common: Update from gnome-settings-daemon 2015-07-02 15:17:28 +02:00
Rui Matos
dbe6eb9bbf common: Update from gnome-settings-daemon 2015-06-29 16:12:57 +02:00
Bastien Nocera
41bb1a6ff2 common: Fix gtk_tree_model_get_iter_first() retval
https://bugzilla.gnome.org/show_bug.cgi?id=749892
2015-05-27 11:06:02 +02:00
Bastien Nocera
9140b47fe3 common: Fix build on non-Linux systems
Only define HAVE_WAYLAND when GDK_WINDOWING_WAYLAND is defined.

https://bugzilla.gnome.org/show_bug.cgi?id=743266
2015-01-25 14:04:53 +01:00
Bastien Nocera
3c41d02b09 common: Fix build by providing dummy header
https://bugzilla.gnome.org/show_bug.cgi?id=743266
2015-01-21 14:26:00 +01:00
Bastien Nocera
1be3811717 common: Update from gnome-settings-daemon
https://bugzilla.gnome.org/show_bug.cgi?id=743266
2015-01-21 14:26:00 +01:00
Bastien Nocera
fcbdf920e6 common: Update commit message prefix for "update-from-gsd"
https://bugzilla.gnome.org/show_bug.cgi?id=743266
2015-01-21 14:26:00 +01:00
Carlos Garnacho
be8d68c591 Update device configuration from gnome-settings-daemon
GsdWacomDevice has been updated, dragging GsdDeviceManager as a dependency
from g-s-d, which has been added to panels/common, and compiled as a
separate static libary, which is used by the wacom and mouse modules.

gsd-input-helper.[ch] is now in such library and has been removed from
the panel directories.

https://bugzilla.gnome.org/show_bug.cgi?id=743196
2015-01-20 20:44:13 +01:00
Ondrej Holy
e9af927e5f cc-language-chooser: remove deprecated GtkMisc 2014-11-20 11:32:33 +01:00
Rui Matos
ed273aa8f1 cc-common-language.c: Don't check if we have translations here
The list of locales returned from gnome_get_all_locales() already
filters out the locales for which we don't have translations so this
is a redundant check since users of get_initial_languages() only show
a language if it exists in gnome_get_all_locales() .

In fact, this code stopped working correctly since we started passing
locales including the codeset suffix to insert_language() because the
translation directories usually don't include the suffix and we
weren't stripping the suffix here.

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 15:03:43 +01:00
Rui Matos
c244568f0b cc-common-language.c: Remove a bunch of unused code
This stopped being used in the last region panel re-design. See commit
35d920f1b8 .

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 15:02:46 +01:00
Rui Matos
880f9f1475 Use 'UTF-8' instead of 'utf8' as locale codeset suffix
This makes us work on OpenBSD's libc. GNU libc accepts both suffixes.

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 13:59:14 +01:00
Bastien Nocera
633af27f2d common: Make Done button in language chooser blue
https://bugzilla.gnome.org/show_bug.cgi?id=737966
2014-10-17 12:19:41 +02:00
Ondrej Holy
066d66383e cc-language-chooser: Reset dialog to original state when used the 2nd time
The language chooser dialog is used in the users panel repeatedly.
When we click to show more languages and/or select language, close
the dialog and show it again e.g. for different user, the chooser
isn't in an original state. So filter entry isn't hidden (and all
languages are shown) and/or the last selected language is focused.
But the dialog should be in the original state when it is open.

This patch changes cc_language_chooser_clear_filter to clear the
dialog into the original state that we can reuse the dialog later.

https://bugzilla.gnome.org/show_bug.cgi?id=738077
2014-10-15 16:26:16 +02:00
Rui Matos
cf0c9f6134 common: Add Cancel/OK buttons to the language chooser
These were lost with the transition to headerbars.

https://bugzilla.gnome.org/show_bug.cgi?id=732725
2014-07-18 16:05:42 +02:00
Bastien Nocera
e722599ac7 common: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:30 +02:00
Yosef Or Boczko
ff36ee5f6b common: Use header bar in the language chooser dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Yosef Or Boczko
bd1422980b common: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:29:53 +02:00
Kalev Lember
88eeb8cb2d common: Ship a PolicyKit rule for the datetime panel
Allow local admins with an active session use the Date & Time panel
without requiring a password.

https://bugzilla.gnome.org/show_bug.cgi?id=646185
2013-08-19 15:09:05 +01:00
Jasper St. Pierre
2f1d233a64 language-chooser: Remove unneeded variables 2013-08-02 09:24:45 -04:00
Jasper St. Pierre
2d1f1e8131 language-chooser: Fix code style 2013-08-02 09:24:36 -04:00
Bastien Nocera
36ad07fdc7 common: Use new delayed search entry API
https://bugzilla.gnome.org/show_bug.cgi?id=705151
2013-07-30 16:57:34 +02:00
Alexander Larsson
a07825a58e language-chooser: Convert to GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Thomas Wood
0221ffefa1 common: ensure the current language has a display name in the model
https://bugzilla.gnome.org/show_bug.cgi?id=702344
2013-06-28 11:08:45 +01:00
Rui Matos
260a739eb8 language-chooser: Fix a compiler warning 2013-05-27 17:43:03 +02:00
Rui Matos
fe85605180 Revert "language-chooser: Add separators between choices"
This reverts commit d3faf9cf8a.
2013-05-27 17:33:34 +02:00
Rui Matos
6183b09d86 language-chooser: Fix previous commit
Commit 2d3ed3468a moved code around but
introduced an older version which doesn't quite work.
2013-05-27 17:31:34 +02:00
Rui Matos
1f03f33230 Remove the input-source-switcher setting
Mutter now has a special modifiers-only shortcut used by gnome-shell
to switch input sources which no longer uses this setting.

This reverts commit ae3014ba3e.
This reverts commit 77b7569c3d.

https://bugzilla.gnome.org/show_bug.cgi?id=700346
2013-05-27 10:23:26 +02:00
Jasper St. Pierre
2d3ed3468a language-chooser: Rearrange code
This will make the diff to the new chooser less mysterious
2013-05-22 16:23:19 -04:00