[Goodies-commits] r1822 - in verve-plugin/trunk: . panel-plugin po scripts
Jannis Pohlmann
jannis at xfce.org
Tue Aug 1 15:49:38 CEST 2006
Author: jannis
Date: 2006-08-01 13:49:31 +0000 (Tue, 01 Aug 2006)
New Revision: 1822
Added:
verve-plugin/trunk/scripts/verve-focus.c
Removed:
verve-plugin/trunk/scripts/verve-focus
Modified:
verve-plugin/trunk/ChangeLog
verve-plugin/trunk/configure.in.in
verve-plugin/trunk/panel-plugin/verve-dbus-service-infos.xml
verve-plugin/trunk/panel-plugin/verve-dbus-service.c
verve-plugin/trunk/panel-plugin/verve-plugin.c
verve-plugin/trunk/po/ChangeLog
verve-plugin/trunk/po/POTFILES.in
verve-plugin/trunk/po/ca.po
verve-plugin/trunk/po/de.po
verve-plugin/trunk/po/el.po
verve-plugin/trunk/po/eu.po
verve-plugin/trunk/po/fr.po
verve-plugin/trunk/po/hu.po
verve-plugin/trunk/po/it.po
verve-plugin/trunk/po/ja.po
verve-plugin/trunk/po/nl.po
verve-plugin/trunk/po/pl.po
verve-plugin/trunk/po/ru.po
verve-plugin/trunk/po/verve-plugin.pot
verve-plugin/trunk/po/vi.po
verve-plugin/trunk/scripts/Makefile.am
Log:
* scripts/Makefile.am, scripts/verve-focus, scripts/verve-focus.c:
Added a C program to replace the old Python verve-focus script.
It's a lot faster than the old one and it calls
org.xfce.Verve#GrabFocus instead of the 'OpenDialog' method.
* panel-plugin/verve-dbus-service-infos.xml,
panel-plugin/verve-dbus-service.c: Added 'GrabFocus' method to the
org.xfce.Verve service. Also implemented a 'grab-focus' signal which
is emitted when the 'GrabFocus' method is called.
* panel-plugin/verve-plugin.c: Connect to the 'grab-focus' signal of the
D-BUS service. Use one method to handle both, 'open-dialog' and
'grab-focus'.
* POTFILES.in, *.po, verve-plugin.pot: Merge new strings.
* de.po: Updated German translations.
Modified: verve-plugin/trunk/ChangeLog
===================================================================
--- verve-plugin/trunk/ChangeLog 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/ChangeLog 2006-08-01 13:49:31 UTC (rev 1822)
@@ -1,3 +1,17 @@
+2006-08-01 Jannis Pohlmann <jannis at xfce.org>
+
+ * scripts/Makefile.am, scripts/verve-focus, scripts/verve-focus.c:
+ Added a C program to replace the old Python verve-focus script.
+ It's a lot faster than the old one and it calls
+ org.xfce.Verve#GrabFocus instead of the 'OpenDialog' method.
+ * panel-plugin/verve-dbus-service-infos.xml,
+ panel-plugin/verve-dbus-service.c: Added 'GrabFocus' method to the
+ org.xfce.Verve service. Also implemented a 'grab-focus' signal which
+ is emitted when the 'GrabFocus' method is called.
+ * panel-plugin/verve-plugin.c: Connect to the 'grab-focus' signal of the
+ D-BUS service. Use one method to handle both, 'open-dialog' and
+ 'grab-focus'.
+
2006-07-26 Jannis Pohlmann <jannis at xfce.org>
* panel-plugin/verve-plugin.c, panel-plugin/verve-env.c: Properly sort
Modified: verve-plugin/trunk/configure.in.in
===================================================================
--- verve-plugin/trunk/configure.in.in 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/configure.in.in 2006-08-01 13:49:31 UTC (rev 1822)
@@ -89,7 +89,6 @@
AC_DEFINE([HAVE_DBUS_NEW_FLAGS], [1], [Define if D-BUS version >= 0.60])
fi
-
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
Modified: verve-plugin/trunk/panel-plugin/verve-dbus-service-infos.xml
===================================================================
--- verve-plugin/trunk/panel-plugin/verve-dbus-service-infos.xml 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/panel-plugin/verve-dbus-service-infos.xml 2006-08-01 13:49:31 UTC (rev 1822)
@@ -21,6 +21,7 @@
-->
<node name="/org/xfce/RunDialog">
+
<interface name="org.xfce.RunDialog">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="verve_dbus_service" />
@@ -52,6 +53,12 @@
<arg direction="in" name="dir" type="s" />
<arg direction="in" name="display" type="s" />
</method>
+
+ <!--
+ GrabFocus : VOID
+ -->
+ <method name="GrabFocus" />
+
</interface>
</node>
Modified: verve-plugin/trunk/panel-plugin/verve-dbus-service.c
===================================================================
--- verve-plugin/trunk/panel-plugin/verve-dbus-service.c 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/panel-plugin/verve-dbus-service.c 2006-08-01 13:49:31 UTC (rev 1822)
@@ -39,20 +39,26 @@
#include "verve-dbus-service.h"
-static void verve_dbus_service_class_init (VerveDBusServiceClass *klass);
-static void verve_dbus_service_init (VerveDBusService *dbus_service);
-static void verve_dbus_service_finalize (GObject *object);
-static gboolean verve_dbus_service_open_dialog (VerveDBusService *dbus_service,
- const gchar *dir,
- const gchar *display,
- GError **error);
+
+static void verve_dbus_service_class_init (VerveDBusServiceClass *klass);
+static void verve_dbus_service_init (VerveDBusService *dbus_service);
+static void verve_dbus_service_finalize (GObject *object);
+static gboolean verve_dbus_service_open_dialog (VerveDBusService *dbus_service,
+ const gchar *dir,
+ const gchar *display,
+ GError **error);
+static gboolean verve_dbus_service_grab_focus (VerveDBusService *dbus_service);
+
+
+
struct _VerveDBusServiceClass
{
GObjectClass __parent__;
/* Signal identifiers */
guint open_dialog_signal_id;
+ guint grab_focus_signal_id;
};
struct _VerveDBusService
@@ -63,8 +69,12 @@
DBusGConnection *connection;
};
+
+
static GObjectClass *verve_dbus_service_parent_class;
+
+
GType
verve_dbus_service_get_type (void)
{
@@ -92,6 +102,8 @@
return type;
}
+
+
static void
verve_dbus_service_class_init (VerveDBusServiceClass *klass)
{
@@ -119,10 +131,24 @@
0,
NULL);
+ /* Register "grab-focus" signal */
+ klass->grab_focus_signal_id = g_signal_newv ("grab-focus",
+ G_TYPE_FROM_CLASS (gobject_class),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+ NULL,
+ NULL,
+ NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE,
+ 0,
+ NULL);
+
/* Install the D-BUS info */
dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (klass), &dbus_glib_verve_dbus_service_object_info);
}
+
+
static void
verve_dbus_service_init (VerveDBusService *dbus_service)
{
@@ -135,18 +161,14 @@
/* Register the /org/xfce/RunDialog object for Verve */
dbus_g_connection_register_g_object (dbus_service->connection, "/org/xfce/RunDialog", G_OBJECT (dbus_service));
- /* Define D-BUS name request flags */
+ /* Request service names */
#ifdef HAVE_DBUS_NEW_FLAGS
-#define VERVE_DBUS_SERVICE_REQUEST_NAME_FLAGS DBUS_NAME_FLAG_REPLACE_EXISTING|DBUS_NAME_FLAG_ALLOW_REPLACEMENT
+ dbus_bus_request_name (dbus_g_connection_get_connection (dbus_service->connection), "org.xfce.Verve", DBUS_NAME_FLAG_REPLACE_EXISTING|DBUS_NAME_FLAG_ALLOW_REPLACEMENT, NULL);
+ dbus_bus_request_name (dbus_g_connection_get_connection (dbus_service->connection), "org.xfce.RunDialog", DBUS_NAME_FLAG_REPLACE_EXISTING|DBUS_NAME_FLAG_ALLOW_REPLACEMENT, NULL);
#else
-#define VERVE_DBUS_SERVICE_REQUEST_NAME_FLAGS DBUS_NAME_FLAG_REPLACE_EXISTING
-#endif
-
- /* Request the org.xfce.Verve name for Verve */
- dbus_bus_request_name (dbus_g_connection_get_connection (dbus_service->connection), "org.xfce.Verve", VERVE_DBUS_SERVICE_REQUEST_NAME_FLAGS, NULL);
-
- /* Request the org.xfce.RunDialog name for Verve */
+ dbus_bus_request_name (dbus_g_connection_get_connection (dbus_service->connection), "org.xfce.Verve", DBUS_NAME_FLAG_REPLACE_EXISTING, NULL);
dbus_bus_request_name (dbus_g_connection_get_connection (dbus_service->connection), "org.xfce.RunDialog", DBUS_NAME_FLAG_REPLACE_EXISTING, NULL);
+#endif /* !HAVE_DBUS_NEW_FLAGS */
}
else
{
@@ -156,6 +178,8 @@
}
}
+
+
static void
verve_dbus_service_finalize (GObject *object)
{
@@ -168,6 +192,8 @@
(*G_OBJECT_CLASS (verve_dbus_service_parent_class)->finalize) (object);
}
+
+
static gboolean
verve_dbus_service_open_dialog (VerveDBusService *dbus_service,
const gchar *dir,
@@ -179,7 +205,20 @@
return TRUE;
}
+
+
+
+static gboolean
+verve_dbus_service_grab_focus (VerveDBusService *dbus_service)
+{
+ /* Emit "grab-focus" signal */
+ g_signal_emit (dbus_service, VERVE_DBUS_SERVICE_GET_CLASS (dbus_service)->grab_focus_signal_id, 0, NULL);
+
+ return TRUE;
+}
+
+
#include "verve-dbus-service-infos.h"
/* vim:set expandtab ts=1 sw=2: */
Modified: verve-plugin/trunk/panel-plugin/verve-plugin.c
===================================================================
--- verve-plugin/trunk/panel-plugin/verve-plugin.c 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/panel-plugin/verve-plugin.c 2006-08-01 13:49:31 UTC (rev 1822)
@@ -222,8 +222,8 @@
#ifdef HAVE_DBUS
static void
-verve_plugin_open_dialog_cb (VerveDBusService *dbus_service,
- VervePlugin *verve)
+verve_plugin_grab_focus (VerveDBusService *dbus_service,
+ VervePlugin *verve)
{
GtkWidget *toplevel;
@@ -528,8 +528,9 @@
/* Attach the D-BUS service */
verve->dbus_service = g_object_new (VERVE_TYPE_DBUS_SERVICE, NULL);
- /* Connect to open dialog signal */
- g_signal_connect (G_OBJECT (verve->dbus_service), "open-dialog", G_CALLBACK (verve_plugin_open_dialog_cb), verve);
+ /* Connect to D-BUS service signals */
+ g_signal_connect (G_OBJECT (verve->dbus_service), "open-dialog", G_CALLBACK (verve_plugin_grab_focus), verve);
+ g_signal_connect (G_OBJECT (verve->dbus_service), "grab-focus", G_CALLBACK (verve_plugin_grab_focus), verve);
#endif
return verve;
Modified: verve-plugin/trunk/po/ChangeLog
===================================================================
--- verve-plugin/trunk/po/ChangeLog 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/ChangeLog 2006-08-01 13:49:31 UTC (rev 1822)
@@ -1,3 +1,8 @@
+2006-08-01 Jannis Pohlmann <jannis at xfce.org>
+
+ * POTFILES.in, *.po, verve-plugin.pot: Merge new strings.
+ * de.po: Updated German translations.
+
2006-06-20 Jean-François Wauthy <pollux at xfce.org>
* fr.po: Updated French translations by Maximilian Schleiss
Modified: verve-plugin/trunk/po/POTFILES.in
===================================================================
--- verve-plugin/trunk/po/POTFILES.in 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/POTFILES.in 2006-08-01 13:49:31 UTC (rev 1822)
@@ -6,3 +6,4 @@
panel-plugin/verve-history.c
panel-plugin/verve-plugin.c
panel-plugin/verve.desktop.in.in
+scripts/verve-focus.c
Modified: verve-plugin/trunk/po/ca.po
===================================================================
--- verve-plugin/trunk/po/ca.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/ca.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-04-17 19:32+0100\n"
"Last-Translator: Carles Muñoz Gorriz <carlesmu at internautas.org>\n"
"Language-Team: catalan\n"
@@ -18,29 +18,23 @@
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "No es pot executar l'ordre:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
#, fuzzy
msgid "Verve Properties"
msgstr "Propietats de «Verve»"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-#, fuzzy
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Aparença"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Amplada en caràcters:"
@@ -48,7 +42,7 @@
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
#, fuzzy
-msgid "Command line interface with auto-completion and history browsing"
+msgid "Command line interface with auto-completion and command history"
msgstr ""
"Interfície de línia d'ordres amb emplenament automàtic i explorador de "
"l'històric."
@@ -57,3 +51,17 @@
#, fuzzy
msgid "Verve Command Line"
msgstr "Línia d'ordres de «Verve»"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#, fuzzy
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/de.po
===================================================================
--- verve-plugin/trunk/po/de.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/de.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-02-07 17:07+0100\n"
"Last-Translator: Jannis Pohlmann <jannis at xfce.org>\n"
"Language-Team: German <jannis at xfce.org>\n"
@@ -16,38 +16,40 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Konnte den Befehl nicht ausführen:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Verve-Konfiguration"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Erscheinungsbild"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Breite (in Zeichen):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+msgid "Command line interface with auto-completion and command history"
msgstr "Mit Autovervollständigung, Befehlsverlauf und URL-Erkennung"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Verve-Kommandozeile"
-#~ msgid "Unkown command."
-#~ msgstr "Unbekannter Befehl."
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr "Verbindung zu D-BUS konnte nicht hergestellt werden."
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr "Methodenaufruf org.xfce.Verve#GrabFocus konnte nicht gesendet werden"
Modified: verve-plugin/trunk/po/el.po
===================================================================
--- verve-plugin/trunk/po/el.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/el.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-04-07 20:58+0200\n"
"Last-Translator: Stavros Giannouris <stavrosg2002 at freemail.gr>\n"
"Language-Team: Greek <nls at tux.hellug.gr>\n"
@@ -17,35 +17,44 @@
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Αδυναμία εκτέλεσης της εντολής:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Ιδιότητες Verve"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Εμφάνιση"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Πλάτος (χαρακτήρες):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr "Γραμμή εντολών με αυτόματη συμπλήρωση και ιστορικό"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Γραμμή Εντολών Verve"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/eu.po
===================================================================
--- verve-plugin/trunk/po/eu.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/eu.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-02-14 10:45+0100\n"
"Last-Translator: Piarres Beobide <pi at beobide.net>\n"
"Language-Team: Librezale <librezale at librezale.org>\n"
@@ -17,35 +17,44 @@
"X-Generator: Pootle 0.6.3.20060126\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Ezin da komandoa exekutatu:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Verve Propietateak"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Itxura"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Zabalera (karaktere):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr "Komando lerro interfazea auto-betetze eta historia nabigatzearekin"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Verve Komando Lerroa"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/fr.po
===================================================================
--- verve-plugin/trunk/po/fr.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/fr.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-07-16 11:39+0100\n"
"Last-Translator: Maximilian Schleiss <maxschleiss at bluewin.ch>\n"
"Language-Team: French <xfce-i18n at xfce.org>\n"
@@ -16,39 +16,48 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Échec à l'exécution de la commande:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Préférences Verve"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Apparence"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Largeur (en pixels)"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
-msgstr "Interface de ligne de commande avec saisie auto-complétée et historique"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
+msgstr ""
+"Interface de ligne de commande avec saisie auto-complétée et historique"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Ligne de Commande Verve"
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
+
#~ msgid "Unkown command."
#~ msgstr "Commande inconnue."
-
Modified: verve-plugin/trunk/po/hu.po
===================================================================
--- verve-plugin/trunk/po/hu.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/hu.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: xfce4-verve-plugin\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL at ADDRESS>\n"
-"POT-Creation-Date: 2006-05-08 22:06+0000\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-07-02 09:18+0100\n"
"Last-Translator: SZERVÑC Attila <sas at 321.hu>\n"
"Language-Team: Hungarian <hu at li.org>\n"
@@ -15,31 +15,46 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: ../panel-plugin/verve-plugin.c:172
+#. Generate error message
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "A parancsot nem lehet végrehajtani:"
-#: ../panel-plugin/verve-plugin.c:366
+#. Create properties dialog
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Verve tulajdonságai"
-#: ../panel-plugin/verve-plugin.c:380
-msgid "Verve"
-msgstr "Verve"
-
-#: ../panel-plugin/verve-plugin.c:385
+#. Frame for appearance settings
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Megjelenés"
-#: ../panel-plugin/verve-plugin.c:396
+#. Plugin size label
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Szélesség (karakterben):"
+#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
-msgstr "Parancssoros felület automatikus kiegészítéssel és előzményböngészéssel"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
+msgstr ""
+"Parancssoros felület automatikus kiegészítéssel és előzményböngészéssel"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Verve parancssor"
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/it.po
===================================================================
--- verve-plugin/trunk/po/it.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/it.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-06-16 16:10+0100\n"
"Last-Translator: Roberto Pariset <r.pariset at gmail.com>\n"
"Language-Team: Italian <xfce-i18n at xfce.org>\n"
@@ -16,37 +16,45 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Impossibile eseguire il comando:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Proprietà di Verve"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Aspetto"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Larghezza (numero di caratteri):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
-msgstr "Interfaccia a riga di comando con completamento automatico e history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
+msgstr ""
+"Interfaccia a riga di comando con completamento automatico e history browsing"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Riga di comando di Verve"
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/ja.po
===================================================================
--- verve-plugin/trunk/po/ja.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/ja.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-02-12 12:55+0900\n"
"Last-Translator: Daichi Kawahata <daichi at xfce.org>\n"
"Language-Team: Japanese <xfce-users-jp at ml.fdiary.net>\n"
@@ -16,35 +16,44 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "コマンドを実行できませんでした:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Verveのプロパティ"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "外観"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "幅 (文字単位):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr "コマンドの自動補完や履歴を参照できるコマンド行インターフェイスです。"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Verve コマンドライン"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/nl.po
===================================================================
--- verve-plugin/trunk/po/nl.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/nl.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-02-09 16:20+0100\n"
"Last-Translator: Vincent <imnotb at gmail.com>\n"
"Language-Team: Dutch <vertaling at vrijschrift.org>\n"
@@ -16,38 +16,47 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr ""
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Verve eigenschappen"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Beeld"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Breedte (in tekens):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr "Commandoregel interface met auto-aanvulling en geschiedenis bladeren"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Verve commandoregel"
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
+
#~ msgid "Unkown command."
#~ msgstr "Onbekend commando."
Modified: verve-plugin/trunk/po/pl.po
===================================================================
--- verve-plugin/trunk/po/pl.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/pl.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-04-08 12:19+0900\n"
"Last-Translator: Piotr Maliński <admin at rk.edu.pl>\n"
"Language-Team: Polish <translation-team-pl at lists.sourceforge.net>\n"
@@ -16,35 +16,44 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Nie mogę wykonać polecenia:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Ustawienia Verve"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Wygląd"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Długość (znaki):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr "Wiersz poleceń z autouzupełnianiem i historią"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Wiersz Poleceń Verve"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/ru.po
===================================================================
--- verve-plugin/trunk/po/ru.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/ru.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-03-24 21:31+0500\n"
"Last-Translator: Andrey Fedoseev <andrey.fedoseev at gmail.com>\n"
"Language-Team: Russian <ru at li.org>\n"
@@ -16,35 +16,44 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Невозможно выполнить команду:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Параметры Verve"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Внешний вид"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Ширина (в символах):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr "Командная строка с автодополнением и просмотром истории"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Командная строка Verve"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/po/verve-plugin.pot
===================================================================
--- verve-plugin/trunk/po/verve-plugin.pot 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/verve-plugin.pot 2006-08-01 13:49:31 UTC (rev 1822)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -17,35 +17,40 @@
"Content-Transfer-Encoding: 8bit\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr ""
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr ""
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr ""
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr ""
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr ""
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+msgid "Command line interface with auto-completion and command history"
msgstr ""
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
Modified: verve-plugin/trunk/po/vi.po
===================================================================
--- verve-plugin/trunk/po/vi.po 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/po/vi.po 2006-08-01 13:49:31 UTC (rev 1822)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: verve-plugin 0.3.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-22 19:44+0900\n"
+"POT-Creation-Date: 2006-08-01 15:43+0200\n"
"PO-Revision-Date: 2006-02-19 22:50+0300\n"
"Last-Translator: Phan Vĩnh Thịnh <teppi at vnlinux.org>\n"
"Language-Team: Vietnamese <none at li.org>\n"
@@ -16,36 +16,45 @@
"X-Generator: KBabel 1.9.1\n"
#. Generate error message
-#: ../panel-plugin/verve-plugin.c:365
+#: ../panel-plugin/verve-plugin.c:399
msgid "Could not execute command:"
msgstr "Không thực hiện được câu lệnh:"
#. Create properties dialog
-#: ../panel-plugin/verve-plugin.c:686
+#: ../panel-plugin/verve-plugin.c:728
msgid "Verve Properties"
msgstr "Thuộc tính Verve"
-#. Header
-#: ../panel-plugin/verve-plugin.c:703
-msgid "Verve"
-msgstr "Verve"
-
#. Frame for appearance settings
-#: ../panel-plugin/verve-plugin.c:710
+#: ../panel-plugin/verve-plugin.c:746
msgid "Appearance"
msgstr "Vẻ ngoài"
#. Plugin size label
-#: ../panel-plugin/verve-plugin.c:721
+#: ../panel-plugin/verve-plugin.c:757
msgid "Width (in chars):"
msgstr "Rộng (theo ký tự):"
#. vim:set expandtab sts=2 ts=2 sw=2:
#: ../panel-plugin/verve.desktop.in.in.h:1
-msgid "Command line interface with auto-completion and history browsing"
+#, fuzzy
+msgid "Command line interface with auto-completion and command history"
msgstr ""
"Giao diện dòng lệnh với khả năng tự động kết thúc dòng lệnh và duyệt lịch sử"
#: ../panel-plugin/verve.desktop.in.in.h:2
msgid "Verve Command Line"
msgstr "Dòng lệnh Verve"
+
+#. Print error message
+#: ../scripts/verve-focus.c:61
+msgid "Failed to connect to the D-BUS session bus."
+msgstr ""
+
+#. Print error message
+#: ../scripts/verve-focus.c:83
+msgid "Failed to deliver the org.xfce.Verve#GrabFocus method."
+msgstr ""
+
+#~ msgid "Verve"
+#~ msgstr "Verve"
Modified: verve-plugin/trunk/scripts/Makefile.am
===================================================================
--- verve-plugin/trunk/scripts/Makefile.am 2006-07-31 13:45:07 UTC (rev 1821)
+++ verve-plugin/trunk/scripts/Makefile.am 2006-08-01 13:49:31 UTC (rev 1822)
@@ -1,10 +1,24 @@
# $Id: Makefile.am 1196 2006-03-22 14:34:09Z jpohlmann $
-install: verve-focus
- test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
- $(INSTALL) verve-focus $(DESTDIR)$(bindir)
+if HAVE_DBUS
-EXTRA_DIST = \
- verve-focus
+bin_PROGRAMS = verve-focus
+verve_focus_SOURCES = \
+ verve-focus.c
+
+verve_focus_CFLAGS = \
+ -DDBUS_API_SUBJECT_TO_CHANGE \
+ -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
+ @DBUS_CFLAGS@ \
+ @GLIB_CFLAGS@ \
+ @LIBXFCE4UTIL_CFLAGS@
+
+verve_focus_LDADD = \
+ @DBUS_LIBS@ \
+ @GLIB_LIBS@ \
+ @LIBXFCE4UTIL_LIBS@
+
+endif
+
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Deleted: verve-plugin/trunk/scripts/verve-focus
Added: verve-plugin/trunk/scripts/verve-focus.c
===================================================================
--- verve-plugin/trunk/scripts/verve-focus.c (rev 0)
+++ verve-plugin/trunk/scripts/verve-focus.c 2006-08-01 13:49:31 UTC (rev 1822)
@@ -0,0 +1,101 @@
+/* $Id$ */
+/* vi:set expandtab sw=2 sts=2: */
+/*-
+ * Copyright (c) 2006 Jannis Pohlmann <jannis at xfce.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include <libxfce4util/libxfce4util.h>
+
+#include <glib.h>
+
+#include <dbus/dbus.h>
+
+
+
+int
+main (int argc,
+ gchar **argv)
+{
+ DBusConnection *connection;
+ DBusMessage *method;
+ DBusMessage *result;
+ DBusError *error;
+ gint exit_status;
+
+ /* Configure gettext */
+ xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+
+ /* Initialize error structure */
+ dbus_error_init (error);
+
+ /* Connect to the session bus */
+ connection = dbus_bus_get (DBUS_BUS_SESSION, error);
+
+ /* Print error if connection failed */
+ if (G_UNLIKELY (connection == NULL))
+ {
+ /* Print error message */
+ g_error (_("Failed to connect to the D-BUS session bus."));
+
+ /* Free error structure */
+ dbus_error_free (error);
+
+ /* Exit with error code */
+ return EXIT_FAILURE;
+ }
+
+ /* Generate D-BUS message */
+ method = dbus_message_new_method_call ("org.xfce.Verve", "/org/xfce/RunDialog", "org.xfce.Verve", "GrabFocus");
+
+ /* Send message and wait for reply */
+ result = dbus_connection_send_with_reply_and_block (connection, method, 5000, error);
+
+ /* Destroy sent message */
+ dbus_message_unref (method);
+
+ /* Handle method send error */
+ if (G_UNLIKELY (result == NULL))
+ {
+ /* Print error message */
+ g_debug (_("Failed to deliver the org.xfce.Verve#GrabFocus method."));
+
+ /* Free error structure */
+ dbus_error_free (error);
+
+ /* Set exit status */
+ exit_status = EXIT_FAILURE;
+ }
+ else
+ exit_status = EXIT_SUCCESS;
+
+ /* Destroy result */
+ dbus_message_unref (result);
+
+ /* Disconnect from session bus */
+ dbus_connection_unref (connection);
+
+ return exit_status;
+}
More information about the Goodies-commits
mailing list