summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--po/ChangeLog6
-rw-r--r--po/POTFILES.in2
-rw-r--r--po/de.po114
-rw-r--r--po/fr.po125
-rw-r--r--po/hu.po126
-rw-r--r--po/thunar-volman.pot94
-rw-r--r--thunar-volman/Makefile.am2
-rw-r--r--thunar-volman/tvm-device.c14
-rw-r--r--thunar-volman/tvm-input-device.c1
-rw-r--r--thunar-volman/tvm-pda-device.c1
-rw-r--r--thunar-volman/tvm-preferences-dialog.c46
-rw-r--r--thunar-volman/tvm-preferences.c28
-rw-r--r--thunar-volman/tvm-printer-device.c80
-rw-r--r--thunar-volman/tvm-printer-device.h35
15 files changed, 515 insertions, 166 deletions
diff --git a/ChangeLog b/ChangeLog
index 986ea30..3ec5799 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2007-01-15 Benedikt Meurer <benny@xfce.org>
+ * thunar-volman/: Add support for printers.
+ * po/POTFILES.in: Add new files here.
+ * po/thunar-volman.pot, po/*.po: Merge new strings.
+ * po/de.po: Update german translations.
+
+2007-01-15 Benedikt Meurer <benny@xfce.org>
+
* icons/48x48/, thunar-volman/: Add support for PDAs (currently
Palm Pilots and Pocket PCs).
diff --git a/po/ChangeLog b/po/ChangeLog
index 0e7af86..46519d6 100644
--- a/po/ChangeLog
+++ b/po/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-15 Benedikt Meurer <benny@xfce.org>
+
+ * POTFILES.in: Add new files here.
+ * thunar-volman.pot, *.po: Merge new strings.
+ * de.po: Update german translations.
+
2007-01-12 Maximilian Schleiss <maxschleiss@bluewin.ch>
* fr.po: Added the French translation, updated LINGUAS.
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7d57d19..5a728bd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -5,8 +5,10 @@ thunar-volman/tvm-command-entry.c
thunar-volman/tvm-device.c
thunar-volman/tvm-input-device.c
thunar-volman/tvm-pango-extensions.c
+thunar-volman/tvm-pda-device.c
thunar-volman/tvm-preferences-dialog.c
thunar-volman/tvm-preferences.c
+thunar-volman/tvm-printer-device.c
thunar-volman/tvm-prompt.c
thunar-volman/tvm-run.c
thunar-volman/xfce-heading.c
diff --git a/po/de.po b/po/de.po
index 6f44f65..d831da6 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: thunar-volman 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-01-11 23:49+0100\n"
-"PO-Revision-Date: 2007-01-11 23:30+0100\n"
+"POT-Creation-Date: 2007-01-15 18:43+0100\n"
+"PO-Revision-Date: 2007-01-15 18:39+0100\n"
"Last-Translator: Benedikt Meurer <benny@xfce.org>\n"
"Language-Team: German <de@li.org>\n"
"MIME-Version: 1.0\n"
@@ -17,7 +17,7 @@ msgstr ""
#: thunar-volman/main.c:50
msgid "The HAL device UDI of the newly added device"
-msgstr ""
+msgstr "Der HAL UDI des neu hinzugekommenen Geräts"
#: thunar-volman/main.c:51 thunar-volman/tvm-preferences-dialog.c:118
msgid "Configure management of removable drives and media"
@@ -53,13 +53,13 @@ msgstr "Bitte melden Sie Probleme unter <%s>."
#: thunar-volman/main.c:133
#, c-format
msgid "The specified UDI \"%s\" is not a valid HAL device UDI"
-msgstr ""
+msgstr "Der angegebene UDI »%s« ist kein gültiger HAL UDI"
#. TRANSLATORS: thunar-volman wasn't invoked with either --device-added or --configure.
#: thunar-volman/main.c:144
#, c-format
msgid "Must specify the new HAL device UDI with --device-added"
-msgstr ""
+msgstr "Es muss ein HAL UDI mit --device-added angegeben werden"
#. ...so we need to prompt what to do
#: thunar-volman/tvm-block-device.c:143
@@ -75,9 +75,9 @@ msgid "Would you like to import the photos or manage the music?"
msgstr "Sollen die Fotos importiert oder die Musik verwaltet werden?"
#: thunar-volman/tvm-block-device.c:146 thunar-volman/tvm-block-device.c:213
-#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:359
-#: thunar-volman/tvm-block-device.c:629 thunar-volman/tvm-run.c:136
-#: thunar-volman/tvm-run.c:147
+#: thunar-volman/tvm-block-device.c:303 thunar-volman/tvm-block-device.c:341
+#: thunar-volman/tvm-block-device.c:402 thunar-volman/tvm-block-device.c:672
+#: thunar-volman/tvm-run.c:136 thunar-volman/tvm-run.c:147
msgid "Ig_nore"
msgstr "_Ignorieren"
@@ -107,89 +107,89 @@ msgstr ""
"hinzugefügt werden?"
#. prompt the user whether to execute this file
-#: thunar-volman/tvm-block-device.c:298
+#: thunar-volman/tvm-block-device.c:300 thunar-volman/tvm-block-device.c:338
#, c-format
msgid "Would you like to allow \"%s\" to run?"
msgstr "Soll »%s« ausgeführt werden?"
-#: thunar-volman/tvm-block-device.c:299
+#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:339
msgid "Auto-Run Confirmation"
msgstr "Automatisches Ausführen bestätigen"
-#: thunar-volman/tvm-block-device.c:300
+#: thunar-volman/tvm-block-device.c:302 thunar-volman/tvm-block-device.c:340
msgid "Auto-Run capability detected"
msgstr "Unterstützung für Automatisches Ausführen erkannt."
-#: thunar-volman/tvm-block-device.c:302
+#: thunar-volman/tvm-block-device.c:304 thunar-volman/tvm-block-device.c:342
msgid "_Allow Auto-Run"
msgstr "_Automatisches Ausführen erlauben"
#. prompt the user whether to autoopen this file
-#: thunar-volman/tvm-block-device.c:356
+#: thunar-volman/tvm-block-device.c:399
#, c-format
msgid "Would you like to open \"%s\"?"
msgstr "Soll »%s« geöffnet werden?"
-#: thunar-volman/tvm-block-device.c:357
+#: thunar-volman/tvm-block-device.c:400
msgid "Auto-Open Confirmation"
msgstr "Automatisches Öffnen bestätigen"
-#: thunar-volman/tvm-block-device.c:358
+#: thunar-volman/tvm-block-device.c:401
msgid "Auto-Open capability detected"
msgstr "Unterstützung für Automatisches Öffnen erkannt."
-#: thunar-volman/tvm-block-device.c:360
+#: thunar-volman/tvm-block-device.c:403
msgid "_Open"
msgstr "Ö_ffnen"
#. ask what do with the mixed audio/data disc
-#: thunar-volman/tvm-block-device.c:626
+#: thunar-volman/tvm-block-device.c:669
msgid "Audio / Data CD"
msgstr "Audio-/Daten-CD"
-#: thunar-volman/tvm-block-device.c:627
+#: thunar-volman/tvm-block-device.c:670
msgid "The CD in the drive contains both music and files."
msgstr "Die CD im Laufwerk enthält sowohl Musik als auch Dateien."
-#: thunar-volman/tvm-block-device.c:628
+#: thunar-volman/tvm-block-device.c:671
msgid "Would you like to listen to music or browse the files?"
msgstr "Soll die Musik wiedergegeben oder die Dateien angezeigt werden?"
-#: thunar-volman/tvm-block-device.c:630
+#: thunar-volman/tvm-block-device.c:673
msgid "_Browse Files"
msgstr "_Dateien anzeigen"
-#: thunar-volman/tvm-block-device.c:631
+#: thunar-volman/tvm-block-device.c:674
msgid "_Play CD"
msgstr "_CD wiedergeben"
#: thunar-volman/tvm-command-entry.c:233
msgid "Select an Application"
-msgstr ""
+msgstr "Anwendung auswählen"
#: thunar-volman/tvm-command-entry.c:243
msgid "All Files"
-msgstr ""
+msgstr "Alle Dateien"
#: thunar-volman/tvm-command-entry.c:248
msgid "Executable Files"
-msgstr ""
+msgstr "Ausführbare Dateien"
#: thunar-volman/tvm-command-entry.c:263
msgid "Perl Scripts"
-msgstr ""
+msgstr "Perl Skripte"
#: thunar-volman/tvm-command-entry.c:269
msgid "Python Scripts"
-msgstr ""
+msgstr "Python Skripte"
#: thunar-volman/tvm-command-entry.c:275
msgid "Ruby Scripts"
-msgstr ""
+msgstr "Ruby Skripte"
#: thunar-volman/tvm-command-entry.c:281
msgid "Shell Scripts"
-msgstr ""
+msgstr "Shell Skripte"
#: thunar-volman/tvm-preferences-dialog.c:117
msgid "Removable Drives and Media"
@@ -259,7 +259,9 @@ msgstr "_Audio-CDs beim Einlegen wiedergeben"
#: thunar-volman/tvm-preferences-dialog.c:269
#: thunar-volman/tvm-preferences-dialog.c:375
-#: thunar-volman/tvm-preferences-dialog.c:416
+#: thunar-volman/tvm-preferences-dialog.c:417
+#: thunar-volman/tvm-preferences-dialog.c:491
+#: thunar-volman/tvm-preferences-dialog.c:533
msgid "_Command:"
msgstr "_Befehl:"
@@ -273,7 +275,8 @@ msgstr "_Video-CDs/DVDs beim Einlegen wiedergeben"
#: thunar-volman/tvm-preferences-dialog.c:301
#: thunar-volman/tvm-preferences-dialog.c:333
-#: thunar-volman/tvm-preferences-dialog.c:448
+#: thunar-volman/tvm-preferences-dialog.c:449
+#: thunar-volman/tvm-preferences-dialog.c:565
msgid "C_ommand:"
msgstr "B_efehl:"
@@ -301,40 +304,75 @@ msgid "Import digital photographs when connected"
msgstr "Nach dem Verbinden digitale Fotos _importieren"
#.
+#. PDAs
+#.
+#: thunar-volman/tvm-preferences-dialog.c:385
+msgid "PDAs"
+msgstr "PDAs"
+
+#: thunar-volman/tvm-preferences-dialog.c:395
+msgid "Palm™"
+msgstr "Palm"
+
+#: thunar-volman/tvm-preferences-dialog.c:412
+msgid "Sync _Palm™ devices when connected"
+msgstr "Nach dem Verbinden Daten mit Pa_lms abgleichen"
+
+#: thunar-volman/tvm-preferences-dialog.c:427
+msgid "Pocket PCs"
+msgstr "Pocket PCs"
+
+#: thunar-volman/tvm-preferences-dialog.c:444
+msgid "Sync Pocket P_C devices when connected"
+msgstr "Nach dem Verbinden Daten mit _PocketPCs abgleichen"
+
+#.
+#. Printers
+#.
+#: thunar-volman/tvm-preferences-dialog.c:459
+#: thunar-volman/tvm-preferences-dialog.c:469
+msgid "Printers"
+msgstr "Drucker"
+
+#: thunar-volman/tvm-preferences-dialog.c:486
+msgid "Automatically run a program when a _printer is connected"
+msgstr "Automatisch ein Programm ausführen, wenn ein _Drucker eingesteckt wird"
+
+#.
#. Input Devices
#.
-#: thunar-volman/tvm-preferences-dialog.c:384
+#: thunar-volman/tvm-preferences-dialog.c:501
msgid "Input Devices"
msgstr "Eingabegeräte"
-#: thunar-volman/tvm-preferences-dialog.c:394
+#: thunar-volman/tvm-preferences-dialog.c:511
msgid "Keyboards"
msgstr "Tastaturen"
-#: thunar-volman/tvm-preferences-dialog.c:411
+#: thunar-volman/tvm-preferences-dialog.c:528
msgid "Automatically run a program when an USB _keyboard is connected"
msgstr ""
"Automatisch ein Programm ausführen, wenn eine USB-_Tastatur eingesteckt wird"
-#: thunar-volman/tvm-preferences-dialog.c:426
+#: thunar-volman/tvm-preferences-dialog.c:543
msgid "Mice"
msgstr "Mäuse"
-#: thunar-volman/tvm-preferences-dialog.c:443
+#: thunar-volman/tvm-preferences-dialog.c:560
msgid "Automatically run a program when an USB _mouse is connected"
msgstr ""
"Automatisch ein Programm ausführen, wenn eine USB-_Maus eingesteckt wird"
-#: thunar-volman/tvm-preferences-dialog.c:458
+#: thunar-volman/tvm-preferences-dialog.c:575
msgid "Tablet"
msgstr "Grafiktablets"
-#: thunar-volman/tvm-preferences-dialog.c:475
+#: thunar-volman/tvm-preferences-dialog.c:592
msgid "Automatically run a program when a _tablet is connected"
msgstr ""
"Automatisch ein Programm ausführen, wenn ein _Grafiktablett eingesteckt wird"
-#: thunar-volman/tvm-preferences-dialog.c:480
+#: thunar-volman/tvm-preferences-dialog.c:597
msgid "Com_mand:"
msgstr "Befe_hl:"
diff --git a/po/fr.po b/po/fr.po
index c763c13..ad88140 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -7,20 +7,19 @@ msgid ""
msgstr ""
"Project-Id-Version: thunar-volman\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-01-11 23:49+0100\n"
+"POT-Creation-Date: 2007-01-15 18:43+0100\n"
"PO-Revision-Date: 2007-01-12 17:14+0100\n"
"Last-Translator: Maximilian Schleiss <maxschleiss@bluewin.ch>\n"
"Language-Team: French <xfce-i18n@xfce.org>\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: thunar-volman/main.c:50
msgid "The HAL device UDI of the newly added device"
msgstr "L'UDI HAL du périphérique nouvellement ajouté"
-#: thunar-volman/main.c:51
-#: thunar-volman/tvm-preferences-dialog.c:118
+#: thunar-volman/main.c:51 thunar-volman/tvm-preferences-dialog.c:118
msgid "Configure management of removable drives and media"
msgstr "Configurer la gestion de disques amovibles et de médias"
@@ -75,18 +74,14 @@ msgstr "Des photos on été trouvées sur votre lecteur de musique portable."
msgid "Would you like to import the photos or manage the music?"
msgstr "Voulez-vous importer les photos ou gérer la musique?"
-#: thunar-volman/tvm-block-device.c:146
-#: thunar-volman/tvm-block-device.c:213
-#: thunar-volman/tvm-block-device.c:301
-#: thunar-volman/tvm-block-device.c:359
-#: thunar-volman/tvm-block-device.c:629
-#: thunar-volman/tvm-run.c:136
-#: thunar-volman/tvm-run.c:147
+#: thunar-volman/tvm-block-device.c:146 thunar-volman/tvm-block-device.c:213
+#: thunar-volman/tvm-block-device.c:303 thunar-volman/tvm-block-device.c:341
+#: thunar-volman/tvm-block-device.c:402 thunar-volman/tvm-block-device.c:672
+#: thunar-volman/tvm-run.c:136 thunar-volman/tvm-run.c:147
msgid "Ig_nore"
msgstr "Ig_norer"
-#: thunar-volman/tvm-block-device.c:147
-#: thunar-volman/tvm-block-device.c:214
+#: thunar-volman/tvm-block-device.c:147 thunar-volman/tvm-block-device.c:214
msgid "Import _Photos"
msgstr "Importer les _Photos"
@@ -104,63 +99,66 @@ msgid "A photo card has been detected."
msgstr "Une carte mémoire pour photos a été détectée."
#: thunar-volman/tvm-block-device.c:212
-msgid "There are photos on the card. Would you like to add these photos to your album?"
-msgstr "Des photos se trouvent sur la carte. Voulez-vous les ajouter à votre album?"
+msgid ""
+"There are photos on the card. Would you like to add these photos to your "
+"album?"
+msgstr ""
+"Des photos se trouvent sur la carte. Voulez-vous les ajouter à votre album?"
#. prompt the user whether to execute this file
-#: thunar-volman/tvm-block-device.c:298
+#: thunar-volman/tvm-block-device.c:300 thunar-volman/tvm-block-device.c:338
#, c-format
msgid "Would you like to allow \"%s\" to run?"
msgstr "Permettez-vous l'exécution de \"%s\"?"
-#: thunar-volman/tvm-block-device.c:299
+#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:339
msgid "Auto-Run Confirmation"
msgstr "Confirmation d'auto-exécution"
-#: thunar-volman/tvm-block-device.c:300
+#: thunar-volman/tvm-block-device.c:302 thunar-volman/tvm-block-device.c:340
msgid "Auto-Run capability detected"
msgstr "Possibilité d'auto-exécution détectée"
-#: thunar-volman/tvm-block-device.c:302
+#: thunar-volman/tvm-block-device.c:304 thunar-volman/tvm-block-device.c:342
msgid "_Allow Auto-Run"
msgstr "_Permettre l'auto-exécution"
#. prompt the user whether to autoopen this file
-#: thunar-volman/tvm-block-device.c:356
+#: thunar-volman/tvm-block-device.c:399
#, c-format
msgid "Would you like to open \"%s\"?"
msgstr "Voulez-vous ouvrir \"%s\"?"
-#: thunar-volman/tvm-block-device.c:357
+#: thunar-volman/tvm-block-device.c:400
msgid "Auto-Open Confirmation"
msgstr "Confirmation d'auto-ouverture"
-#: thunar-volman/tvm-block-device.c:358
+#: thunar-volman/tvm-block-device.c:401
msgid "Auto-Open capability detected"
msgstr "Possibilité d'auto-ouverture détectée"
-#: thunar-volman/tvm-block-device.c:360
+#: thunar-volman/tvm-block-device.c:403
msgid "_Open"
msgstr "_Ouvrir"
#. ask what do with the mixed audio/data disc
-#: thunar-volman/tvm-block-device.c:626
+#: thunar-volman/tvm-block-device.c:669
msgid "Audio / Data CD"
msgstr "Audio / CD Data"
-#: thunar-volman/tvm-block-device.c:627
+#: thunar-volman/tvm-block-device.c:670
msgid "The CD in the drive contains both music and files."
msgstr "Le CD dans le lecteur contient de la musique et des fichiers"
-#: thunar-volman/tvm-block-device.c:628
+#: thunar-volman/tvm-block-device.c:671
msgid "Would you like to listen to music or browse the files?"
msgstr "Voulez-vous écouter la musique ou lire les données?"
-#: thunar-volman/tvm-block-device.c:630
+#: thunar-volman/tvm-block-device.c:673
msgid "_Browse Files"
msgstr "_Lire les données"
-#: thunar-volman/tvm-block-device.c:631
+#: thunar-volman/tvm-block-device.c:674
msgid "_Play CD"
msgstr "_Écouter le CD"
@@ -260,7 +258,9 @@ msgstr "Écouter les CDs _audio à l'insertion"
#: thunar-volman/tvm-preferences-dialog.c:269
#: thunar-volman/tvm-preferences-dialog.c:375
-#: thunar-volman/tvm-preferences-dialog.c:416
+#: thunar-volman/tvm-preferences-dialog.c:417
+#: thunar-volman/tvm-preferences-dialog.c:491
+#: thunar-volman/tvm-preferences-dialog.c:533
msgid "_Command:"
msgstr "_Commande :"
@@ -274,7 +274,8 @@ msgstr "Visionner les CDs et DVDs vidéo à l'insertion"
#: thunar-volman/tvm-preferences-dialog.c:301
#: thunar-volman/tvm-preferences-dialog.c:333
-#: thunar-volman/tvm-preferences-dialog.c:448
+#: thunar-volman/tvm-preferences-dialog.c:449
+#: thunar-volman/tvm-preferences-dialog.c:565
msgid "C_ommand:"
msgstr "C_ommande :"
@@ -302,52 +303,87 @@ msgid "Import digital photographs when connected"
msgstr "Importer les photos numériques à la connexion"
#.
+#. PDAs
+#.
+#: thunar-volman/tvm-preferences-dialog.c:385
+msgid "PDAs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:395
+msgid "Palm™"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:412
+#, fuzzy
+msgid "Sync _Palm™ devices when connected"
+msgstr "Écouter la _musique à la connexion"
+
+#: thunar-volman/tvm-preferences-dialog.c:427
+msgid "Pocket PCs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:444
+#, fuzzy
+msgid "Sync Pocket P_C devices when connected"
+msgstr "Écouter la _musique à la connexion"
+
+#.
+#. Printers
+#.
+#: thunar-volman/tvm-preferences-dialog.c:459
+#: thunar-volman/tvm-preferences-dialog.c:469
+msgid "Printers"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:486
+#, fuzzy
+msgid "Automatically run a program when a _printer is connected"
+msgstr "Exécuter une application à la connexion d'une _tablette graphique"
+
+#.
#. Input Devices
#.
-#: thunar-volman/tvm-preferences-dialog.c:384
+#: thunar-volman/tvm-preferences-dialog.c:501
msgid "Input Devices"
msgstr "Périphériques d'entrée"
-#: thunar-volman/tvm-preferences-dialog.c:394
+#: thunar-volman/tvm-preferences-dialog.c:511
msgid "Keyboards"
msgstr "Claviers"
-#: thunar-volman/tvm-preferences-dialog.c:411
+#: thunar-volman/tvm-preferences-dialog.c:528
msgid "Automatically run a program when an USB _keyboard is connected"
msgstr "Exécuter une application à la connexion d'un _clavier USB"
-#: thunar-volman/tvm-preferences-dialog.c:426
+#: thunar-volman/tvm-preferences-dialog.c:543
msgid "Mice"
msgstr "Souris"
-#: thunar-volman/tvm-preferences-dialog.c:443
+#: thunar-volman/tvm-preferences-dialog.c:560
msgid "Automatically run a program when an USB _mouse is connected"
msgstr "Exécuter une application à la connexion d'une _souris USB"
-#: thunar-volman/tvm-preferences-dialog.c:458
+#: thunar-volman/tvm-preferences-dialog.c:575
msgid "Tablet"
msgstr "Tablette graphique"
-#: thunar-volman/tvm-preferences-dialog.c:475
+#: thunar-volman/tvm-preferences-dialog.c:592
msgid "Automatically run a program when a _tablet is connected"
msgstr "Exécuter une application à la connexion d'une _tablette graphique"
-#: thunar-volman/tvm-preferences-dialog.c:480
+#: thunar-volman/tvm-preferences-dialog.c:597
msgid "Com_mand:"
msgstr "Com_mande :"
-#: thunar-volman/tvm-run.c:133
-#: thunar-volman/tvm-run.c:144
+#: thunar-volman/tvm-run.c:133 thunar-volman/tvm-run.c:144
msgid "Choose Disc Type"
msgstr "Choisir le type de disque"
-#: thunar-volman/tvm-run.c:134
-#: thunar-volman/tvm-run.c:145
+#: thunar-volman/tvm-run.c:134 thunar-volman/tvm-run.c:145
msgid "You have inserted a blank disc."
msgstr "Vous avez inséré un disque vierge."
-#: thunar-volman/tvm-run.c:135
-#: thunar-volman/tvm-run.c:146
+#: thunar-volman/tvm-run.c:135 thunar-volman/tvm-run.c:146
msgid "What would you like to do?"
msgstr "Que voulez-vous faire ?"
@@ -362,4 +398,3 @@ msgstr "Créer un CD de données"
#: thunar-volman/tvm-run.c:149
msgid "Make _Audio CD"
msgstr "Créer un CD _audio"
-
diff --git a/po/hu.po b/po/hu.po
index c6c9171..4dd3f81 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -1,12 +1,13 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
-"POT-Creation-Date: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-01-15 18:43+0100\n"
"PO-Revision-Date: 2007-01-12 12:07+0100\n"
"Last-Translator: SZERVÁC Attila <sas@321.hu>\n"
"Language-Team: Hungarian\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Poedit-Language: Hungarian\n"
@@ -16,8 +17,7 @@ msgstr ""
msgid "The HAL device UDI of the newly added device"
msgstr "Az új eszköz HAL eszköz UDI azonosítója"
-#: thunar-volman/main.c:51
-#: thunar-volman/tvm-preferences-dialog.c:118
+#: thunar-volman/main.c:51 thunar-volman/tvm-preferences-dialog.c:118
msgid "Configure management of removable drives and media"
msgstr "Eltávolítható meghajtók és média beállítás kezelő"
@@ -72,18 +72,14 @@ msgstr "Fotók vannak a hordozható zenelejátszón"
msgid "Would you like to import the photos or manage the music?"
msgstr "Fotókat importálsz vagy zenéket kezelsz?"
-#: thunar-volman/tvm-block-device.c:146
-#: thunar-volman/tvm-block-device.c:213
-#: thunar-volman/tvm-block-device.c:301
-#: thunar-volman/tvm-block-device.c:359
-#: thunar-volman/tvm-block-device.c:629
-#: thunar-volman/tvm-run.c:136
-#: thunar-volman/tvm-run.c:147
+#: thunar-volman/tvm-block-device.c:146 thunar-volman/tvm-block-device.c:213
+#: thunar-volman/tvm-block-device.c:303 thunar-volman/tvm-block-device.c:341
+#: thunar-volman/tvm-block-device.c:402 thunar-volman/tvm-block-device.c:672
+#: thunar-volman/tvm-run.c:136 thunar-volman/tvm-run.c:147
msgid "Ig_nore"
msgstr "Kihagy"
-#: thunar-volman/tvm-block-device.c:147
-#: thunar-volman/tvm-block-device.c:214
+#: thunar-volman/tvm-block-device.c:147 thunar-volman/tvm-block-device.c:214
msgid "Import _Photos"
msgstr "_Fotók importálása"
@@ -101,63 +97,65 @@ msgid "A photo card has been detected."
msgstr "Találtam fotókártyát"
#: thunar-volman/tvm-block-device.c:212
-msgid "There are photos on the card. Would you like to add these photos to your album?"
+msgid ""
+"There are photos on the card. Would you like to add these photos to your "
+"album?"
msgstr "Vannak fotók a kártyán. Az albumhoz adod őket?"
#. prompt the user whether to execute this file
-#: thunar-volman/tvm-block-device.c:298
+#: thunar-volman/tvm-block-device.c:300 thunar-volman/tvm-block-device.c:338
#, c-format
msgid "Would you like to allow \"%s\" to run?"
msgstr "Engedélyezd \"%s\" futtatását?"
-#: thunar-volman/tvm-block-device.c:299
+#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:339
msgid "Auto-Run Confirmation"
msgstr "Automata-futás megerősítése"
-#: thunar-volman/tvm-block-device.c:300
+#: thunar-volman/tvm-block-device.c:302 thunar-volman/tvm-block-device.c:340
msgid "Auto-Run capability detected"
msgstr "Automata-futás képességet találtam"
-#: thunar-volman/tvm-block-device.c:302
+#: thunar-volman/tvm-block-device.c:304 thunar-volman/tvm-block-device.c:342
msgid "_Allow Auto-Run"
msgstr "_Automata-futás engedélyezése"
#. prompt the user whether to autoopen this file
-#: thunar-volman/tvm-block-device.c:356
+#: thunar-volman/tvm-block-device.c:399
#, c-format
msgid "Would you like to open \"%s\"?"
msgstr "Megnyitod \"%s\"-t?"
-#: thunar-volman/tvm-block-device.c:357
+#: thunar-volman/tvm-block-device.c:400
msgid "Auto-Open Confirmation"
msgstr "Automata-megnyitás megerősítése"
-#: thunar-volman/tvm-block-device.c:358
+#: thunar-volman/tvm-block-device.c:401
msgid "Auto-Open capability detected"
msgstr "Automata-megnyitás képességet találtam"
-#: thunar-volman/tvm-block-device.c:360
+#: thunar-volman/tvm-block-device.c:403
msgid "_Open"
msgstr "_Megnyit"
#. ask what do with the mixed audio/data disc
-#: thunar-volman/tvm-block-device.c:626
+#: thunar-volman/tvm-block-device.c:669
msgid "Audio / Data CD"
msgstr "Hang / Adat CD"
-#: thunar-volman/tvm-block-device.c:627
+#: thunar-volman/tvm-block-device.c:670
msgid "The CD in the drive contains both music and files."
msgstr "A meghajtóban lévő CD zenét és fájlokat is tartalmaz"
-#: thunar-volman/tvm-block-device.c:628
+#: thunar-volman/tvm-block-device.c:671
msgid "Would you like to listen to music or browse the files?"
msgstr "Zenét hallgatsz vagy fájlokat böngészel?"
-#: thunar-volman/tvm-block-device.c:630
+#: thunar-volman/tvm-block-device.c:673
msgid "_Browse Files"
msgstr "Fájlok _böngészése"
-#: thunar-volman/tvm-block-device.c:631
+#: thunar-volman/tvm-block-device.c:674
msgid "_Play CD"
msgstr "CD le_játszása"
@@ -257,7 +255,9 @@ msgstr "H_ang CD lemezek lejátszása berakáskor"
#: thunar-volman/tvm-preferences-dialog.c:269
#: thunar-volman/tvm-preferences-dialog.c:375
-#: thunar-volman/tvm-preferences-dialog.c:416
+#: thunar-volman/tvm-preferences-dialog.c:417
+#: thunar-volman/tvm-preferences-dialog.c:491
+#: thunar-volman/tvm-preferences-dialog.c:533
msgid "_Command:"
msgstr "_Parancs:"
@@ -271,7 +271,8 @@ msgstr "_Videó CD és DVD lemezek lejátszása berakáskor"
#: thunar-volman/tvm-preferences-dialog.c:301
#: thunar-volman/tvm-preferences-dialog.c:333
-#: thunar-volman/tvm-preferences-dialog.c:448
+#: thunar-volman/tvm-preferences-dialog.c:449
+#: thunar-volman/tvm-preferences-dialog.c:565
msgid "C_ommand:"
msgstr "Para_ncs:"
@@ -299,52 +300,88 @@ msgid "Import digital photographs when connected"
msgstr "Digitális fotók importálása csatlakoztatáskor"
#.
+#. PDAs
+#.
+#: thunar-volman/tvm-preferences-dialog.c:385
+msgid "PDAs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:395
+msgid "Palm™"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:412
+#, fuzzy
+msgid "Sync _Palm™ devices when connected"
+msgstr "_Zene fájlok lejátszása csatlakoztatáskor"
+
+#: thunar-volman/tvm-preferences-dialog.c:427
+msgid "Pocket PCs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:444
+#, fuzzy
+msgid "Sync Pocket P_C devices when connected"
+msgstr "_Zene fájlok lejátszása csatlakoztatáskor"
+
+#.
+#. Printers
+#.
+#: thunar-volman/tvm-preferences-dialog.c:459
+#: thunar-volman/tvm-preferences-dialog.c:469
+msgid "Printers"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:486
+#, fuzzy
+msgid "Automatically run a program when a _printer is connected"
+msgstr "Egy program automata futtatása egy USB _egér csatlakoztatásakor"
+
+#.
#. Input Devices
#.
-#: thunar-volman/tvm-preferences-dialog.c:384
+#: thunar-volman/tvm-preferences-dialog.c:501
msgid "Input Devices"
msgstr "Beviteli eszközök"
-#: thunar-volman/tvm-preferences-dialog.c:394
+#: thunar-volman/tvm-preferences-dialog.c:511
msgid "Keyboards"
msgstr "Billentyűzet"
-#: thunar-volman/tvm-preferences-dialog.c:411
+#: thunar-volman/tvm-preferences-dialog.c:528
msgid "Automatically run a program when an USB _keyboard is connected"
-msgstr "Egy program automata futtatása egy USB _billentyűzet csatlakoztatásakor"
+msgstr ""
+"Egy program automata futtatása egy USB _billentyűzet csatlakoztatásakor"
-#: thunar-volman/tvm-preferences-dialog.c:426
+#: thunar-volman/tvm-preferences-dialog.c:543
msgid "Mice"
msgstr "Egerek"
-#: thunar-volman/tvm-preferences-dialog.c:443
+#: thunar-volman/tvm-preferences-dialog.c:560
msgid "Automatically run a program when an USB _mouse is connected"
msgstr "Egy program automata futtatása egy USB _egér csatlakoztatásakor"
-#: thunar-volman/tvm-preferences-dialog.c:458
+#: thunar-volman/tvm-preferences-dialog.c:575
msgid "Tablet"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:475
+#: thunar-volman/tvm-preferences-dialog.c:592
msgid "Automatically run a program when a _tablet is connected"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:480
+#: thunar-volman/tvm-preferences-dialog.c:597
msgid "Com_mand:"
msgstr "Para_ncs:"
-#: thunar-volman/tvm-run.c:133
-#: thunar-volman/tvm-run.c:144
+#: thunar-volman/tvm-run.c:133 thunar-volman/tvm-run.c:144
msgid "Choose Disc Type"
msgstr "Válassz lemez típust"
-#: thunar-volman/tvm-run.c:134
-#: thunar-volman/tvm-run.c:145
+#: thunar-volman/tvm-run.c:134 thunar-volman/tvm-run.c:145
msgid "You have inserted a blank disc."
msgstr "Tégy be egy üres lemezt"
-#: thunar-volman/tvm-run.c:135
-#: thunar-volman/tvm-run.c:146
+#: thunar-volman/tvm-run.c:135 thunar-volman/tvm-run.c:146
msgid "What would you like to do?"
msgstr "Mit tennél?"
@@ -359,4 +396,3 @@ msgstr "A_dat CD készítése"
#: thunar-volman/tvm-run.c:149
msgid "Make _Audio CD"
msgstr "H_ang CD készítése"
-
diff --git a/po/thunar-volman.pot b/po/thunar-volman.pot
index bbdde8a..95ed4c7 100644
--- a/po/thunar-volman.pot
+++ b/po/thunar-volman.pot
@@ -8,12 +8,12 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-01-11 23:49+0100\n"
+"POT-Creation-Date: 2007-01-15 18:43+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: thunar-volman/main.c:50
@@ -76,9 +76,9 @@ msgid "Would you like to import the photos or manage the music?"
msgstr ""
#: thunar-volman/tvm-block-device.c:146 thunar-volman/tvm-block-device.c:213
-#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:359
-#: thunar-volman/tvm-block-device.c:629 thunar-volman/tvm-run.c:136
-#: thunar-volman/tvm-run.c:147
+#: thunar-volman/tvm-block-device.c:303 thunar-volman/tvm-block-device.c:341
+#: thunar-volman/tvm-block-device.c:402 thunar-volman/tvm-block-device.c:672
+#: thunar-volman/tvm-run.c:136 thunar-volman/tvm-run.c:147
msgid "Ig_nore"
msgstr ""
@@ -106,59 +106,59 @@ msgid ""
msgstr ""
#. prompt the user whether to execute this file
-#: thunar-volman/tvm-block-device.c:298
+#: thunar-volman/tvm-block-device.c:300 thunar-volman/tvm-block-device.c:338
#, c-format
msgid "Would you like to allow \"%s\" to run?"
msgstr ""
-#: thunar-volman/tvm-block-device.c:299
+#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:339
msgid "Auto-Run Confirmation"
msgstr ""
-#: thunar-volman/tvm-block-device.c:300
+#: thunar-volman/tvm-block-device.c:302 thunar-volman/tvm-block-device.c:340
msgid "Auto-Run capability detected"
msgstr ""
-#: thunar-volman/tvm-block-device.c:302
+#: thunar-volman/tvm-block-device.c:304 thunar-volman/tvm-block-device.c:342
msgid "_Allow Auto-Run"
msgstr ""
#. prompt the user whether to autoopen this file
-#: thunar-volman/tvm-block-device.c:356
+#: thunar-volman/tvm-block-device.c:399
#, c-format
msgid "Would you like to open \"%s\"?"
msgstr ""
-#: thunar-volman/tvm-block-device.c:357
+#: thunar-volman/tvm-block-device.c:400
msgid "Auto-Open Confirmation"
msgstr ""
-#: thunar-volman/tvm-block-device.c:358
+#: thunar-volman/tvm-block-device.c:401
msgid "Auto-Open capability detected"
msgstr ""
-#: thunar-volman/tvm-block-device.c:360
+#: thunar-volman/tvm-block-device.c:403
msgid "_Open"
msgstr ""
#. ask what do with the mixed audio/data disc
-#: thunar-volman/tvm-block-device.c:626
+#: thunar-volman/tvm-block-device.c:669
msgid "Audio / Data CD"
msgstr ""
-#: thunar-volman/tvm-block-device.c:627
+#: thunar-volman/tvm-block-device.c:670
msgid "The CD in the drive contains both music and files."
msgstr ""
-#: thunar-volman/tvm-block-device.c:628
+#: thunar-volman/tvm-block-device.c:671
msgid "Would you like to listen to music or browse the files?"
msgstr ""
-#: thunar-volman/tvm-block-device.c:630
+#: thunar-volman/tvm-block-device.c:673
msgid "_Browse Files"
msgstr ""
-#: thunar-volman/tvm-block-device.c:631
+#: thunar-volman/tvm-block-device.c:674
msgid "_Play CD"
msgstr ""
@@ -258,7 +258,9 @@ msgstr ""
#: thunar-volman/tvm-preferences-dialog.c:269
#: thunar-volman/tvm-preferences-dialog.c:375
-#: thunar-volman/tvm-preferences-dialog.c:416
+#: thunar-volman/tvm-preferences-dialog.c:417
+#: thunar-volman/tvm-preferences-dialog.c:491
+#: thunar-volman/tvm-preferences-dialog.c:533
msgid "_Command:"
msgstr ""
@@ -272,7 +274,8 @@ msgstr ""
#: thunar-volman/tvm-preferences-dialog.c:301
#: thunar-volman/tvm-preferences-dialog.c:333
-#: thunar-volman/tvm-preferences-dialog.c:448
+#: thunar-volman/tvm-preferences-dialog.c:449
+#: thunar-volman/tvm-preferences-dialog.c:565
msgid "C_ommand:"
msgstr ""
@@ -300,37 +303,72 @@ msgid "Import digital photographs when connected"
msgstr ""
#.
+#. PDAs
+#.
+#: thunar-volman/tvm-preferences-dialog.c:385
+msgid "PDAs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:395
+msgid "Palm™"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:412
+msgid "Sync _Palm™ devices when connected"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:427
+msgid "Pocket PCs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:444
+msgid "Sync Pocket P_C devices when connected"
+msgstr ""
+
+#.
+#. Printers
+#.
+#: thunar-volman/tvm-preferences-dialog.c:459
+#: thunar-volman/tvm-preferences-dialog.c:469
+msgid "Printers"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:486
+msgid "Automatically run a program when a _printer is connected"
+msgstr ""
+
+#.
#. Input Devices
#.
-#: thunar-volman/tvm-preferences-dialog.c:384
+#: thunar-volman/tvm-preferences-dialog.c:501
msgid "Input Devices"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:394
+#: thunar-volman/tvm-preferences-dialog.c:511
msgid "Keyboards"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:411
+#: thunar-volman/tvm-preferences-dialog.c:528
msgid "Automatically run a program when an USB _keyboard is connected"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:426
+#: thunar-volman/tvm-preferences-dialog.c:543
msgid "Mice"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:443
+#: thunar-volman/tvm-preferences-dialog.c:560
msgid "Automatically run a program when an USB _mouse is connected"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:458
+#: thunar-volman/tvm-preferences-dialog.c:575
msgid "Tablet"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:475
+#: thunar-volman/tvm-preferences-dialog.c:592
msgid "Automatically run a program when a _tablet is connected"
msgstr ""
-#: thunar-volman/tvm-preferences-dialog.c:480
+#: thunar-volman/tvm-preferences-dialog.c:597
msgid "Com_mand:"
msgstr ""
diff --git a/thunar-volman/Makefile.am b/thunar-volman/Makefile.am
index 7f0e73d..1b48156 100644
--- a/thunar-volman/Makefile.am
+++ b/thunar-volman/Makefile.am
@@ -33,6 +33,8 @@ thunar_volman_SOURCES = \
tvm-preferences-dialog.h \
tvm-preferences.c \
tvm-preferences.h \
+ tvm-printer-device.c \
+ tvm-printer-device.h \
tvm-prompt.c \
tvm-prompt.h \
tvm-run.c \
diff --git a/thunar-volman/tvm-device.c b/thunar-volman/tvm-device.c
index 8f8bc2d..584b222 100644
--- a/thunar-volman/tvm-device.c
+++ b/thunar-volman/tvm-device.c
@@ -41,6 +41,7 @@
#include <thunar-volman/tvm-device.h>
#include <thunar-volman/tvm-input-device.h>
#include <thunar-volman/tvm-pda-device.h>
+#include <thunar-volman/tvm-printer-device.h>
@@ -55,12 +56,13 @@ struct _TvmDeviceHandler
static const TvmDeviceHandler handlers[] =
{
- { "block", tvm_block_device_added, },
- { "camera", tvm_camera_device_added, },
- { "input.keyboard", tvm_input_device_added, },
- { "input.mouse", tvm_input_device_added, },
- { "input.tablet", tvm_input_device_added, },
- { "pda", tvm_pda_device_added, },
+ { "block", tvm_block_device_added, },
+ { "camera", tvm_camera_device_added, },
+ { "input.keyboard", tvm_input_device_added, },
+ { "input.mouse", tvm_input_device_added, },
+ { "input.tablet", tvm_input_device_added, },
+ { "pda", tvm_pda_device_added, },
+ { "printer", tvm_printer_device_added, },
};
diff --git a/thunar-volman/tvm-input-device.c b/thunar-volman/tvm-input-device.c
index 21443c0..664e856 100644
--- a/thunar-volman/tvm-input-device.c
+++ b/thunar-volman/tvm-input-device.c
@@ -29,7 +29,6 @@
#endif
#include <thunar-volman/tvm-input-device.h>
-#include <thunar-volman/tvm-prompt.h>
#include <thunar-volman/tvm-run.h>
diff --git a/thunar-volman/tvm-pda-device.c b/thunar-volman/tvm-pda-device.c
index f1983a8..8e3b942 100644
--- a/thunar-volman/tvm-pda-device.c
+++ b/thunar-volman/tvm-pda-device.c
@@ -31,7 +31,6 @@
#include <dbus/dbus-glib-lowlevel.h>
#include <thunar-volman/tvm-pda-device.h>
-#include <thunar-volman/tvm-prompt.h>
#include <thunar-volman/tvm-run.h>
diff --git a/thunar-volman/tvm-preferences-dialog.c b/thunar-volman/tvm-preferences-dialog.c
index eac5efb..f8657bc 100644
--- a/thunar-volman/tvm-preferences-dialog.c
+++ b/thunar-volman/tvm-preferences-dialog.c
@@ -380,7 +380,7 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog)
/*
- Cameras
+ PDAs
*/
label = gtk_label_new (_("PDAs"));
vbox = g_object_new (GTK_TYPE_VBOX, "border-width", 12, "spacing", 12, NULL);
@@ -424,7 +424,7 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog)
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
gtk_widget_show (frame);
- label = gtk_label_new (_("Pocket PC"));
+ label = gtk_label_new (_("Pocket PCs"));
gtk_label_set_attributes (GTK_LABEL (label), tvm_pango_attr_list_bold ());
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_widget_show (label);
@@ -454,6 +454,48 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog)
/*
+ Printers
+ */
+ label = gtk_label_new (_("Printers"));
+ vbox = g_object_new (GTK_TYPE_VBOX, "border-width", 12, "spacing", 12, NULL);
+ gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label);
+ gtk_widget_show (label);
+ gtk_widget_show (vbox);
+
+ frame = g_object_new (GTK_TYPE_FRAME, "border-width", 0, "shadow-type", GTK_SHADOW_NONE, NULL);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
+ gtk_widget_show (frame);
+
+ label = gtk_label_new (_("Printers"));
+ gtk_label_set_attributes (GTK_LABEL (label), tvm_pango_attr_list_bold ());
+ gtk_frame_set_label_widget (GTK_FRAME (frame), label);
+ gtk_widget_show (label);
+
+ table = gtk_table_new (2, 2, FALSE);
+ gtk_table_set_row_spacings (GTK_TABLE (table), 3);
+ gtk_table_set_col_spacings (GTK_TABLE (table), 12);
+ gtk_container_set_border_width (GTK_CONTAINER (table), 8);
+ gtk_container_add (GTK_CONTAINER (frame), table);
+ gtk_widget_show (table);
+
+ image = gtk_image_new_from_icon_name ("gnome-dev-printer", GTK_ICON_SIZE_DIALOG);
+ gtk_misc_set_alignment (GTK_MISC (image), 0.5f, 0.0f);
+ gtk_table_attach (GTK_TABLE (table), image, 0, 1, 0, 3, GTK_FILL, GTK_FILL, 0, 0);
+ gtk_widget_show (image);
+
+ button = gtk_check_button_new_with_mnemonic (_("Automatically run a program when a _printer is connected"));
+ exo_mutual_binding_new (G_OBJECT (dialog->preferences), "autoprinter", G_OBJECT (button), "active");
+ gtk_table_attach (GTK_TABLE (table), button, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
+ gtk_widget_show (button);
+
+ entry = tvm_command_entry_new_with_label (_("_Command:"));
+ exo_binding_new (G_OBJECT (button), "active", G_OBJECT (entry), "sensitive");
+ exo_mutual_binding_new (G_OBJECT (dialog->preferences), "autoprinter-command", G_OBJECT (entry), "command");
+ gtk_table_attach (GTK_TABLE (table), entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
+ gtk_widget_show (entry);
+
+
+ /*
Input Devices
*/
label = gtk_label_new (_("Input Devices"));
diff --git a/thunar-volman/tvm-preferences.c b/thunar-volman/tvm-preferences.c
index 5c95da6..27f3b65 100644
--- a/thunar-volman/tvm-preferences.c
+++ b/thunar-volman/tvm-preferences.c
@@ -58,6 +58,8 @@ enum
PROP_AUTOPALM_COMMAND,
PROP_AUTOPOCKETPC,
PROP_AUTOPOCKETPC_COMMAND,
+ PROP_AUTOPRINTER,
+ PROP_AUTOPRINTER_COMMAND,
PROP_AUTOKEYBOARD,
PROP_AUTOKEYBOARD_COMMAND,
PROP_AUTOMOUSE,
@@ -441,6 +443,32 @@ tvm_preferences_class_init (TvmPreferencesClass *klass)
EXO_PARAM_READWRITE));
/**
+ * TvmPreferences:autoprinter:
+ *
+ * Automatically run a program when a printer is connected.
+ **/
+ g_object_class_install_property (gobject_class,
+ PROP_AUTOPRINTER,
+ g_param_spec_boolean ("autoprinter",
+ "autoprinter",
+ "autoprinter",
+ FALSE,
+ EXO_PARAM_READWRITE));
+
+ /**
+ * TvmPreferences:autoprinter-command:
+ *
+ * Command to run when a printer is connected.
+ **/
+ g_object_class_install_property (gobject_class,
+ PROP_AUTOPRINTER_COMMAND,
+ g_param_spec_string ("autoprinter-command",
+ "autoprinter-command",
+ "autoprinter-command",
+ "gnome-printer-add hal://%h",
+ EXO_PARAM_READWRITE));
+
+ /**
* TvmPreferences:autokeyboard:
*
* Automatically run a program when an USB keyboard is connected.
diff --git a/thunar-volman/tvm-printer-device.c b/thunar-volman/tvm-printer-device.c
new file mode 100644
index 0000000..2ae24f8
--- /dev/null
+++ b/thunar-volman/tvm-printer-device.c
@@ -0,0 +1,80 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Benedikt Meurer <benny@xfce.org>.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; 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_MEMORY_H
+#include <memory.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include <thunar-volman/tvm-printer-device.h>
+#include <thunar-volman/tvm-run.h>
+
+
+
+/**
+ * tvm_printer_device_added:
+ * @preferences : a #TvmPreferences.
+ * @context : a #LibHalContext.
+ * @udi : the HAL device UDI of the newly added printer device.
+ * @capability : the capability, which caused this handler to be run.
+ * @error : return location for errors or %NULL.
+ *
+ * See #TvmDeviceCallback for further information.
+ *
+ * Return value: %TRUE if handled, %FALSE if not handled or an
+ * unrecoverable error occurred.
+ **/
+gboolean
+tvm_printer_device_added (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *capability,
+ GError **error)
+{
+ gboolean result = FALSE;
+ gboolean autoprinter;
+ gchar *autoprinter_command;
+
+ g_return_val_if_fail (exo_hal_udi_validate (udi, -1, NULL), FALSE);
+ g_return_val_if_fail (TVM_IS_PREFERENCES (preferences), FALSE);
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ g_return_val_if_fail (capability != NULL, FALSE);
+ g_return_val_if_fail (context != NULL, FALSE);
+
+ /* check if we have a command to run for newly connected printers */
+ g_object_get (G_OBJECT (preferences), "autoprinter", &autoprinter, "autoprinter-command", &autoprinter_command, NULL);
+ if (G_LIKELY (autoprinter && autoprinter_command != NULL && *autoprinter_command != '\0'))
+ {
+ /* run the selected command for the user */
+ result = tvm_run_command (context, udi, autoprinter_command, NULL, NULL, error);
+ }
+ g_free (autoprinter_command);
+
+ return result;
+}
+
+
+
+
diff --git a/thunar-volman/tvm-printer-device.h b/thunar-volman/tvm-printer-device.h
new file mode 100644
index 0000000..429c82b
--- /dev/null
+++ b/thunar-volman/tvm-printer-device.h
@@ -0,0 +1,35 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Benedikt Meurer <benny@xfce.org>.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __TVM_PRINTER_DEVICE_H__
+#define __TVM_PRINTER_DEVICE_H__
+
+#include <thunar-volman/tvm-device.h>
+
+G_BEGIN_DECLS;
+
+gboolean tvm_printer_device_added (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *capability,
+ GError **error) G_GNUC_INTERNAL;
+
+G_END_DECLS;
+
+#endif /* !__TVM_PRINTER_DEVICE_H__ */