[Goodies-commits] r1797 - in verve-plugin/trunk: . panel-plugin scripts
Jannis Pohlmann
jannis at xfce.org
Tue Jul 25 17:12:45 CEST 2006
Author: jannis
Date: 2006-07-25 15:12:42 +0000 (Tue, 25 Jul 2006)
New Revision: 1797
Modified:
verve-plugin/trunk/ChangeLog
verve-plugin/trunk/panel-plugin/verve-plugin.c
verve-plugin/trunk/scripts/verve-focus
Log:
* scripts/verve-focus: Call 'import pygtk; pygtk.require("2.0")' before
importing the gtk module.
* panel-plugin/verve-plugin.c: Connect to "focus-out-event" of the input
field in order to stop blinking whenever any other widget gains the
focus (this fixes a bug reported by Nikolas Arend).
Modified: verve-plugin/trunk/ChangeLog
===================================================================
--- verve-plugin/trunk/ChangeLog 2006-07-25 09:20:21 UTC (rev 1796)
+++ verve-plugin/trunk/ChangeLog 2006-07-25 15:12:42 UTC (rev 1797)
@@ -1,3 +1,11 @@
+2006-07-25 Jannis Pohlmann <jannis at xfce.org>
+
+ * scripts/verve-focus: Call 'import pygtk; pygtk.require("2.0")' before
+ importing the gtk module.
+ * panel-plugin/verve-plugin.c: Connect to "focus-out-event" of the input
+ field in order to stop blinking whenever any other widget gains the
+ focus (this fixes a bug reported by Nikolas Arend).
+
2006-07-19 Jannis Pohlmann <jannis at xfce.org>
* panel-plugin/verve-env.c: Remove debug statements.
Modified: verve-plugin/trunk/panel-plugin/verve-plugin.c
===================================================================
--- verve-plugin/trunk/panel-plugin/verve-plugin.c 2006-07-25 09:20:21 UTC (rev 1796)
+++ verve-plugin/trunk/panel-plugin/verve-plugin.c 2006-07-25 15:12:42 UTC (rev 1797)
@@ -168,6 +168,22 @@
+static gboolean
+verve_plugin_focus_out (GtkWidget *entry,
+ GdkEventFocus *event,
+ VervePlugin *verve)
+{
+ g_return_val_if_fail (verve != NULL, FALSE);
+ g_return_val_if_fail (verve->input != NULL || GTK_IS_ENTRY (verve->input), FALSE);
+
+ /* Stop blinking */
+ verve_plugin_focus_timeout_reset (verve);
+
+ return TRUE;
+}
+
+
+
static gboolean
verve_plugin_buttonpress_cb (GtkWidget *entry,
GdkEventButton *event,
@@ -496,6 +512,7 @@
/* Handle mouse button and key press events */
g_signal_connect (verve->input, "key-press-event", G_CALLBACK (verve_plugin_keypress_cb), verve);
g_signal_connect (verve->input, "button-press-event", G_CALLBACK (verve_plugin_buttonpress_cb), verve);
+ g_signal_connect (verve->input, "focus-out-event", G_CALLBACK (verve_plugin_focus_out), verve);
#ifdef HAVE_DBUS
/* Attach the D-BUS service */
Modified: verve-plugin/trunk/scripts/verve-focus
===================================================================
--- verve-plugin/trunk/scripts/verve-focus 2006-07-25 09:20:21 UTC (rev 1796)
+++ verve-plugin/trunk/scripts/verve-focus 2006-07-25 15:12:42 UTC (rev 1797)
@@ -21,6 +21,8 @@
import os
import dbus
+import pygtk
+pygtk.require("2.0")
import gtk
if __name__ == "__main__":
More information about the Goodies-commits
mailing list