Commit 4bd59285 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add vte

parent a4709745
......@@ -40,7 +40,7 @@ PACKAGES = \
hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
dconf gvfs desktop-file-utils json-glib libnotify \
dconf gvfs desktop-file-utils json-glib libnotify vte \
$(NULL)
ALL_SPECS =$(PACKAGES:%=$(SPECS)/%.spec)
......
From 9077ef68bebee9a22d836a00af72aa02d5628ed4 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Fri, 16 Nov 2012 16:18:05 +0100
Subject: [PATCH] widget: Only show the cursor on motion if moved
Some devices, like Wacom tablets, will emit mouse motion
events even when the mouse doesn't move on the tablet. This
means that the mouse cursor will show up on the screen very shortly
after hiding.
We now check the motion event against the last location of the
mouse cursor to avoid this behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=688456
---
src/vte.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/vte.c b/src/vte.c
index bbe6cf6..c5922e6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7294,8 +7294,11 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
} else {
/* Hilite any matches. */
vte_terminal_match_hilite(terminal, x, y);
- /* Show the cursor. */
- _vte_terminal_set_pointer_visible(terminal, TRUE);
+ /* Show the cursor if we moved. */
+ if (event->type != GDK_MOTION_NOTIFY ||
+ x != terminal->pvt->mouse_last_x ||
+ y != terminal->pvt->mouse_last_y)
+ _vte_terminal_set_pointer_visible(terminal, TRUE);
}
switch (event->type) {
--
1.8.0
......@@ -28,6 +28,7 @@ Requires: gvfs
Requires: desktop-file-utils
Requires: json-glib
Requires: libnotify
Requires: vte
%description
Meta package for Gnome SDK dependencies
......
......@@ -24,6 +24,7 @@ BuildRequires: gvfs
BuildRequires: desktop-file-utils
BuildRequires: json-glib
BuildRequires: libnotify-devel
BuildRequires: vte-devel
Requires: gtk2-devel gtk2-immodules
Requires: gtk3-devel gtk3-immodules
......@@ -31,6 +32,7 @@ Requires: desktop-file-utils
Requires: json-glib-devel
Requires: libnotify-devel
Requires: gvfs-devel
Requires: vte-devel
Requires: librsvg2-devel
Requires: hicolor-icon-theme
Requires: adwaita-icon-theme-devel
......
%global apiver 2.91
Name: vte
Version: 0.38.2
Release: 1%{?dist}
Summary: Terminal emulator library
License: LGPLv2+
URL: http://www.gnome.org/
Source0: http://download.gnome.org/sources/vte/0.38/vte-%{version}.tar.xz
Patch2: vte-Only-show-the-cursor-on-motion-if-moved.patch
BuildRequires: gnome-sdk-base
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: vala-tools
Requires: vte-profile
%description
VTE is a library implementing a terminal emulator widget for GTK+. VTE
is mainly used in gnome-terminal, but can also be used to embed a
console/terminal in games, editors, IDEs, etc.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n vte-profile
Summary: Profile script for VTE terminal emulator library
License: GPLv3+
%description -n vte-profile
The vte-profile package contains a profile.d script for the VTE terminal
emulator library.
%prep
%setup -q -n vte-%{version}
%patch2 -p1 -b .motion
%build
# We disable gnome-pty-helper as we don't want setuid binaries
CFLAGS="%optflags -fPIE -DPIE" \
CXXFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now -pie -lssp" \
%configure \
--disable-static \
--with-gtk=3.0 \
--libexecdir=%{_libdir}/vte-%{apiver} \
--disable-gtk-doc \
--disable-gnome-pty-helper \
--enable-introspection
make %{?_smp_mflags} V=1
%install
%make_install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%find_lang vte-%{apiver}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f vte-%{apiver}.lang
%doc COPYING NEWS README
%{_libdir}/libvte-%{apiver}.so.0*
%{_libdir}/girepository-1.0/
%files devel
%{_bindir}/vte-%{apiver}
%{_includedir}/vte-%{apiver}/
%{_libdir}/libvte-%{apiver}.so
%{_libdir}/pkgconfig/vte-%{apiver}.pc
%{_datadir}/gir-1.0/
%doc %{_datadir}/gtk-doc/
%{_datadir}/vala/
%files -n vte-profile
%{_sysconfdir}/profile.d/vte.sh
%changelog
* Tue Nov 25 2014 Alexander Larsson <alexl@redhat.com> - 0.38.2-1
- Initial version, based on F21
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment