Commit graph

36 commits

Author SHA1 Message Date
Olaf Hering
0477d67465 change prototype of eyes_applet_fill
Change to void, nothing cares about the result.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2020-12-13 16:16:07 +01:00
Olaf Hering
0d7ee3f4d0 Remove GSourceFunc casts
Convert the callback into a real GSourceFunc.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2020-12-13 16:13:09 +01:00
Andre Miranda
998c6cc5ea Allow compilation with panel 4.15 2019-10-04 00:43:11 -03:00
Andre Miranda
c889ac2eb2 Replace GtkStock buttons 2019-08-02 00:14:57 -03:00
Sean Davis
af281b6911 Improve spacing (Bug #14664) 2018-09-03 16:09:12 -03:00
Andre Miranda
e263bb5510 Fix GTK_CHECK_VERSION for GdkSeat (GTK 3.20.0 instead of 3.2.0) 2016-06-09 20:29:24 -03:00
Andre Miranda
55d6d23392 Fix indentation 2016-05-26 20:17:59 -03:00
Andre Miranda
6103abb788 Fix last commit 2016-05-26 19:41:58 -03:00
Andre Miranda
9c3879cef8 Use dlg for content_area instead of dlg->vbox 2016-05-26 00:35:16 -03:00
Andre Miranda
6a85d35f81 For GTK 3.2.0 use gdk_seat_get_pointer instead of gdk_device_manager_get_client_pointer 2016-05-26 00:30:35 -03:00
Andre Miranda
6ce2df8f34 Use gdk_window_get_device_position instead of gdk_window_get_pointer 2016-05-26 00:28:55 -03:00
Andre Miranda
2d8830bd01 Use GSourceFunc instead of GtkFunction, gtk_widget_get_realized instead of GTK_WIDGET_REALIZED 2016-05-26 00:27:22 -03:00
Andre Miranda
f5ddcf2feb Use GtkComboBoxText instead of GtkComboBox 2016-05-26 00:24:42 -03:00
Andre Miranda
42454dfb76 Stop using GtkAlignment, get/set halign/valign/hexpand/vexpand 2016-05-26 00:19:10 -03:00
Andre Miranda
fbcde2ac43 GTK_DIALOG_NO_SEPARATOR was removed, and replace GTK_STOCK_CLOSE by 'gtk-close' 2016-05-26 00:11:05 -03:00
Andre Miranda
fcbb79b832 Use GtkBox instead of GtkHBox 2016-05-26 00:08:33 -03:00
Andre Miranda
26d195d3fe Remove compat code for panel < 4.9 2016-05-25 23:47:49 -03:00
Andre Miranda
cb5ffb708b Set X-XFCE-API=2.0 in desktop file 2016-05-25 23:44:21 -03:00
Harald Judt
0a89042c7b Decrease update timeout.
I found that with the 100ms interval, animation is not quite as smooth
as I want it to be, so decrease it to 50ms. CPU load is mostly affected
by the drawing operations, not by the polling, and those happen only
on pointer movement.
2013-03-03 09:57:34 +01:00
Harald Judt
9463e7a941 Optimize check in timer callback a bit.
It won't help much because there are not that many eyes, but then
it also won't hurt, so stop checking when we know the pointer has
not been moved.
2013-03-03 09:55:26 +01:00
Andrzej
88c2ec8222 Implement eye position calculations in 3D coords (bug #9036).
Current behavior is better but it still feels unnatural. This is mostly
because the eye balls are in the same x-y plane as the mouse pointer.

The attached patch calculates 3D angles of the eye sight as if the eye ball
was slightly behind the screen (at the moment the distance is hardcoded to
3x eyeball radius). Smaller z distance makes the eyeballs more independent,
larger - increases the (x-y) tracking distance (the eyes remain in their
center position longer).
2013-03-03 09:45:03 +01:00
Harald Judt
7cfd829fe7 Update COPYING and related stuff.
Replace the current out-of-date version of the document with a
recent one that has updated addresses.
2013-03-02 09:26:48 +01:00
Harald Judt
3983984bdf Handle "small" property better.
This improves the previous commit by allowing the user to set the
single-row property manually, as the automatic way doesn't really
work that good.
2013-03-01 17:31:23 +01:00
Harald Judt
abc76d5cb9 Add support for deskbar mode.
If the plugin's size needs allow it, set plugin into "small" mode.

That alignment stuff in the panel multi-row mode seems to be buggy.
I tried to get it working as good as possible, but there are some weird,
unexpected things happening with some configurations.
2013-02-28 23:13:43 +01:00
Harald Judt
8164b087d1 Fix previous commit (independent eye movement).
Last time I got the brackets wrong, so the eyes did not look exactly
in the right direction.
2013-02-28 17:05:09 +01:00
Harald Judt
c5f5e0484d Make eye movement independent, like in xeyes (bug #9036).
Clean up formatting of this function and make the eye movement independent.
The actual change is subtracting GTK_WIDGET(widget)->allocation.x from nx
and GTK_WIDGET(widget)->allocation.y from ny.
2013-02-27 13:56:39 +01:00
Harald Judt
64c5b6460a Build the plugin as a module. 2013-02-26 21:29:56 +01:00
Harald Judt
eba51dfe79 Autotools update.
Fix building with automake-1.13.
Fix configure.ac.in as suggested in bug #6920.
2013-02-26 20:55:52 +01:00
Harald Judt
5ea3c5f63c Write config file when closing config dialog (bug #9035). 2013-02-26 20:55:52 +01:00
Andrzej
2026158e64 Update size after panel orientation change (bug #8404). 2013-02-26 15:56:42 +01:00
Andreas Müller
00fe6b4e4f Port to libxfce4ui (bug #8074). 2013-02-26 15:55:13 +01:00
Nick Schermer
41ecb9026b Fix compiler warning and hide event window.
This makes the plugin look nice on transparent panels.
2011-01-29 21:01:27 +01:00
Florian Rivoal
3084a9baad Clean up 2010-12-16 14:18:52 +09:00
Florian Rivoal
23d9b4720d Add missing header file
Fixes bug #6024
2010-12-16 14:03:24 +09:00
Nick Schermer
9a6c68184a * Improve configure and make files.
* Bump version for release.
* Set svn keywords.


(Old svn revision: 2397)
2007-01-17 17:46:35 +00:00
Nick Schermer
2dc8facea7 * Commit new eyes plugin.
(Old svn revision: 2018)
2006-09-11 13:47:32 +00:00