Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions lib/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ namespace Gala {
NUDGE = 360,
}

public enum GestureAction {
NONE,
SWITCH_WORKSPACE,
SWITCH_WINDOWS,
MULTITASKING_VIEW,
DOCK,
ZOOM,
CLOSE_WINDOW,
N_ACTIONS
}

/**
* Used as a key for Object.set_data<bool> on Meta.Windows that should be
* treated as notifications. Has to be set before the window is mapped.
Expand Down
File renamed without changes.
15 changes: 13 additions & 2 deletions src/Gestures/Gesture.vala → lib/Gestures/Gesture.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Gala {
/**
* Physical direction of the gesture. This direction doesn't follow natural scroll preferences.
*/
public enum GestureDirection {
private enum GestureDirection {
UNKNOWN = 0,

// GestureType.SWIPE and GestureType.SCROLL
Expand All @@ -34,7 +34,18 @@ namespace Gala {
OUT = 6,
}

public class Gesture {
public enum GestureAction {
NONE,
SWITCH_WORKSPACE,
SWITCH_WINDOWS,
MULTITASKING_VIEW,
DOCK,
ZOOM,
CLOSE_WINDOW,
N_ACTIONS
}

private class Gesture {
public const float INVALID_COORD = float.MAX;

public Clutter.EventType type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Authored by: Leonhard Kargl <[email protected]>
*/

public interface Gala.GestureBackend : Object {
private interface Gala.GestureBackend : Object {
public signal bool on_gesture_detected (Gesture gesture, uint32 timestamp);
public signal void on_begin (double delta, uint64 time);
public signal void on_update (double delta, uint64 time);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* You shouldn't connect a notify to the progress directly though, but rather use a
* {@link GestureTarget} implementation.
* The {@link progress} can be seen as representing the state that the UI the gesture affects
* is currently in (e.g. 0 for multitasking view closed, 1 for it opend, or 0 for first workspace,
* is currently in (e.g. 0 for multitasking view closed, 1 for it opened, or 0 for first workspace,
* -1 for second, -2 for third, etc.). Therefore the progress often needs boundaries which can be
* set with {@link overshoot_lower_clamp} and {@link overshoot_upper_clamp}. If the values are integers
* it will be a hard boundary, if they are fractional it will slow the gesture progress when over the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Utility class to access the gesture settings. Easily accessible through GestureTracker.settings.
*/
public class Gala.GestureSettings : Object {
private class Gala.GestureSettings : Object {
private static GLib.Settings gala_settings;
private static GLib.Settings touchpad_settings;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* This gesture backend transforms the touchpad scroll events received by an actor into gestures.
*/
public class Gala.ScrollBackend : Object, GestureBackend {
private class Gala.ScrollBackend : Object, GestureBackend {
// Mutter does not expose the size of the touchpad, so we use the same values as GTK apps.
// From GNOME Shell, TOUCHPAD_BASE_[WIDTH|HEIGHT] / SCROLL_MULTIPLIER
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/swipeTracker.js
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Singleton class to manage the connection with Touchégg daemon and receive touch events.
* See: [[https://github.com/JoseExposito/touchegg]]
*/
public class Gala.ToucheggBackend : Object, GestureBackend {
private class Gala.ToucheggBackend : Object, GestureBackend {
/**
* Gesture type as returned by the daemon.
*/
Expand Down
11 changes: 11 additions & 0 deletions lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ gala_lib_sources = files(
'Utils.vala',
'WindowIcon.vala',
'WindowManager.vala',
'Gestures/ActorTarget.vala',
'Gestures/Gesture.vala',
'Gestures/GestureBackend.vala',
'Gestures/GestureController.vala',
'Gestures/GestureSettings.vala',
'Gestures/GestureTarget.vala',
'Gestures/PropertyTarget.vala',
'Gestures/RootTarget.vala',
'Gestures/ScrollBackend.vala',
'Gestures/SpringTimeline.vala',
'Gestures/ToucheggBackend.vala'
)

gala_resources = gnome.compile_resources(
Expand Down
11 changes: 0 additions & 11 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ gala_bin_sources = files(
'Dialogs/AccessDialog.vala',
'Dialogs/CloseDialog.vala',
'Dialogs/InhibitShortcutsDialog.vala',
'Gestures/ActorTarget.vala',
'Gestures/Gesture.vala',
'Gestures/GestureBackend.vala',
'Gestures/GestureController.vala',
'Gestures/GestureSettings.vala',
'Gestures/GestureTarget.vala',
'Gestures/PropertyTarget.vala',
'Gestures/RootTarget.vala',
'Gestures/ScrollBackend.vala',
'Gestures/SpringTimeline.vala',
'Gestures/ToucheggBackend.vala',
'HotCorners/Barrier.vala',
'HotCorners/HotCorner.vala',
'HotCorners/HotCornerManager.vala',
Expand Down