[Xfce4-commits] l10n: Updated Kazakh (kk) translation to 100%

2010-10-20 Thread Transifex
Updating branch refs/heads/master
 to 8535ed179007de4f218bc35578f00424f50dca89 (commit)
   from bb2b528df1fc548fcde6f62b0d4ed65754a87b2a (commit)

commit 8535ed179007de4f218bc35578f00424f50dca89
Author: Bauzhan Muftakhidinov 
Date:   Wed Oct 20 10:44:14 2010 +0200

l10n: Updated Kazakh (kk) translation to 100%

New status: 680 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).

 po/kk.po |  267 --
 1 files changed, 139 insertions(+), 128 deletions(-)

diff --git a/po/kk.po b/po/kk.po
index b9e33f7..03bd305 100644
--- a/po/kk.po
+++ b/po/kk.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: 4.6\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-09-03 10:08+\n"
+"POT-Creation-Date: 2010-10-20 04:10+\n"
 "PO-Revision-Date: 2010-08-02 23:47+0600\n"
 "Last-Translator: Baurzhan Muftakhidinov \n"
 "Language-Team: Kazakh \n"
@@ -128,44 +128,72 @@ msgid "Sort items in descending order"
 msgstr "Элементтерді кему ретімен реттеу"
 
 #. display an error message to the user
-#: ../thunar/thunar-application.c:375
+#: ../thunar/thunar-application.c:379
 msgid "Failed to launch operation"
 msgstr "Әрекетті жөнелту сәтсіз аяқталды"
 
 #. tell the user that we were unable to launch the file specified
-#: ../thunar/thunar-application.c:1036 ../thunar/thunar-application.c:1162
+#: ../thunar/thunar-application.c:1040 ../thunar/thunar-application.c:1166
 #: ../thunar/thunar-launcher.c:1062 ../thunar/thunar-location-entry.c:389
 #: ../thunar/thunar-location-entry.c:417
-#: ../thunar/thunar-shortcuts-view.c:1237 ../thunar/thunar-window.c:1506
+#: ../thunar/thunar-shortcuts-view.c:1277 ../thunar/thunar-window.c:1506
 #, c-format
 msgid "Failed to open \"%s\""
 msgstr "\"%s\" ашу сәтсіз аяқталды "
 
-#: ../thunar/thunar-application.c:1166
+#: ../thunar/thunar-application.c:1170
 #, c-format
 msgid "Failed to open \"%s\": %s"
 msgstr "\"%s\" ашу сәтсіз аяқталды: %s"
 
-#: ../thunar/thunar-application.c:1241
+#. display an error message
+#: ../thunar/thunar-application.c:1234
+#: ../thunar/thunar-properties-dialog.c:624
+#: ../thunar/thunar-standard-view.c:2203 ../thunar/thunar-tree-view.c:1672
+#, c-format
+msgid "Failed to rename \"%s\""
+msgstr "\"%s\" атын ауыстыру қатесі"
+
+#: ../thunar/thunar-application.c:1320
+#: ../thunar/thunar-location-buttons.c:1285
+#: ../thunar/thunar-standard-view.c:1824 ../thunar/thunar-tree-view.c:1569
+msgid "New Folder"
+msgstr "Жаңа бума"
+
+#: ../thunar/thunar-application.c:1321
+#: ../thunar/thunar-location-buttons.c:1286
+#: ../thunar/thunar-standard-view.c:1825 ../thunar/thunar-tree-view.c:1570
+msgid "Create New Folder"
+msgstr "Жаңа буманы жасау"
+
+#: ../thunar/thunar-application.c:1325
+msgid "New File"
+msgstr "Жаңа файл"
+
+#: ../thunar/thunar-application.c:1326
+msgid "Create New File"
+msgstr "Жаңа файлды жасау"
+
+#: ../thunar/thunar-application.c:1380
 msgid "Copying files..."
 msgstr "Файлдарды көшіру..."
 
-#: ../thunar/thunar-application.c:1277
+#: ../thunar/thunar-application.c:1416
 #, c-format
 msgid "Copying files to \"%s\"..."
 msgstr "Файлдарды \"%s\" ішіне көшіру..."
 
-#: ../thunar/thunar-application.c:1323
+#: ../thunar/thunar-application.c:1462
 #, c-format
 msgid "Creating symbolic links in \"%s\"..."
 msgstr "\"%s\" ішінде символдық сілтемелерді жасау..."
 
-#: ../thunar/thunar-application.c:1376
+#: ../thunar/thunar-application.c:1515
 #, c-format
 msgid "Moving files into \"%s\"..."
 msgstr "Файлдарды \"%s\" ішіне жылжыту..."
 
-#: ../thunar/thunar-application.c:1467
+#: ../thunar/thunar-application.c:1606
 #, c-format
 msgid ""
 "Are you sure that you want to\n"
@@ -174,7 +202,7 @@ msgstr ""
 "\"%s\" толығымен өшіруді\n"
 "шынымен қалайсыз ба?"
 
-#: ../thunar/thunar-application.c:1472
+#: ../thunar/thunar-application.c:1611
 #, c-format
 msgid ""
 "Are you sure that you want to permanently\n"
@@ -186,58 +214,58 @@ msgstr[0] ""
 "Ерекшеленген %u файлды толығымен\n"
 "өшіруді шынымен қалайсыз ба?"
 
-#: ../thunar/thunar-application.c:1492
+#: ../thunar/thunar-application.c:1631
 msgid "If you delete a file, it is permanently lost."
 msgstr "Файлды өшірсеңіз, ол толығымен жойылады."
 
-#: ../thunar/thunar-application.c:1502
+#: ../thunar/thunar-application.c:1641
 msgid "Deleting files..."
 msgstr "Файлдарды өшіру..."
 
-#: ../thunar/thunar-application.c:1537
+#: ../thunar/thunar-application.c:1676
 msgid "Moving files into the trash..."
 msgstr "Файлдарды қоқыс шелегіне жылжыту..."
 
-#: ../thunar/thunar-application.c:1576
+#: ../thunar/thunar-application.c:1715
 msgid "Creating files..."
 msgstr "Файлдарды жасау..."
 
-#: ../thunar/thunar-application.c:1615
+#: ../thunar/thunar-application.c:1754
 msgid "Creating directories..."
 msgstr "Бумаларды жасау..."
 
-#: ../thunar/thunar-application.c:1654
+#: ../thunar/thunar-application.c:1793
 msgid "Remove all files and folders from the Trash?"
 msgst

[Xfce4-commits] l10n: Updated Danish (da) translation to 100%

2010-10-20 Thread Transifex
Updating branch refs/heads/master
 to 0839e34691ee423a43f3a0df77a60232354d3ac7 (commit)
   from 8535ed179007de4f218bc35578f00424f50dca89 (commit)

commit 0839e34691ee423a43f3a0df77a60232354d3ac7
Author: Per Kongstad 
Date:   Wed Oct 20 16:00:43 2010 +0200

l10n: Updated Danish (da) translation to 100%

New status: 680 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).

 po/da.po |  267 --
 1 files changed, 139 insertions(+), 128 deletions(-)

diff --git a/po/da.po b/po/da.po
index 163717b..39853f3 100644
--- a/po/da.po
+++ b/po/da.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: thunar 1.0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-08-30 10:08+\n"
+"POT-Creation-Date: 2010-10-20 10:10+\n"
 "PO-Revision-Date: 2009-12-23 12:03+0100\n"
 "Last-Translator: Per Kongstad \n"
 "Language-Team: Danish \n"
@@ -133,44 +133,72 @@ msgid "Sort items in descending order"
 msgstr "Sortér elementer i faldende orden"
 
 #. display an error message to the user
-#: ../thunar/thunar-application.c:375
+#: ../thunar/thunar-application.c:379
 msgid "Failed to launch operation"
 msgstr "Kunne ikke starte operation"
 
 #. tell the user that we were unable to launch the file specified
-#: ../thunar/thunar-application.c:1036 ../thunar/thunar-application.c:1162
+#: ../thunar/thunar-application.c:1040 ../thunar/thunar-application.c:1166
 #: ../thunar/thunar-launcher.c:1062 ../thunar/thunar-location-entry.c:389
 #: ../thunar/thunar-location-entry.c:417
-#: ../thunar/thunar-shortcuts-view.c:1237 ../thunar/thunar-window.c:1506
+#: ../thunar/thunar-shortcuts-view.c:1277 ../thunar/thunar-window.c:1506
 #, c-format
 msgid "Failed to open \"%s\""
 msgstr "Kunne ikke åbne \"%s\""
 
-#: ../thunar/thunar-application.c:1166
+#: ../thunar/thunar-application.c:1170
 #, c-format
 msgid "Failed to open \"%s\": %s"
 msgstr "Kunne ikke åbne \"%s\": %s"
 
-#: ../thunar/thunar-application.c:1241
+#. display an error message
+#: ../thunar/thunar-application.c:1234
+#: ../thunar/thunar-properties-dialog.c:624
+#: ../thunar/thunar-standard-view.c:2203 ../thunar/thunar-tree-view.c:1672
+#, c-format
+msgid "Failed to rename \"%s\""
+msgstr "Kunne ikke omdøbe \"%s\""
+
+#: ../thunar/thunar-application.c:1320
+#: ../thunar/thunar-location-buttons.c:1285
+#: ../thunar/thunar-standard-view.c:1824 ../thunar/thunar-tree-view.c:1569
+msgid "New Folder"
+msgstr "Ny mappe"
+
+#: ../thunar/thunar-application.c:1321
+#: ../thunar/thunar-location-buttons.c:1286
+#: ../thunar/thunar-standard-view.c:1825 ../thunar/thunar-tree-view.c:1570
+msgid "Create New Folder"
+msgstr "Opret ny mappe"
+
+#: ../thunar/thunar-application.c:1325
+msgid "New File"
+msgstr "Ny fil"
+
+#: ../thunar/thunar-application.c:1326
+msgid "Create New File"
+msgstr "Opret ny fil"
+
+#: ../thunar/thunar-application.c:1380
 msgid "Copying files..."
 msgstr "Kopierer filer..."
 
-#: ../thunar/thunar-application.c:1277
+#: ../thunar/thunar-application.c:1416
 #, c-format
 msgid "Copying files to \"%s\"..."
 msgstr "Kopierer filer til \"%s\"..."
 
-#: ../thunar/thunar-application.c:1323
+#: ../thunar/thunar-application.c:1462
 #, c-format
 msgid "Creating symbolic links in \"%s\"..."
 msgstr "Oprettelse af symbolske henvisninger i \"%s\"..."
 
-#: ../thunar/thunar-application.c:1376
+#: ../thunar/thunar-application.c:1515
 #, c-format
 msgid "Moving files into \"%s\"..."
 msgstr "Flytter filer til \"%s\"..."
 
-#: ../thunar/thunar-application.c:1467
+#: ../thunar/thunar-application.c:1606
 #, c-format
 msgid ""
 "Are you sure that you want to\n"
@@ -179,7 +207,7 @@ msgstr ""
 "Er du sikker på, at du vil\n"
 "slette for bestandigt \"%s\"?"
 
-#: ../thunar/thunar-application.c:1472
+#: ../thunar/thunar-application.c:1611
 #, c-format
 msgid ""
 "Are you sure that you want to permanently\n"
@@ -194,58 +222,58 @@ msgstr[1] ""
 "Er du sikker på, at du ønsker for bestandigt\n"
 "at slette %u valgte filer?"
 
-#: ../thunar/thunar-application.c:1492
+#: ../thunar/thunar-application.c:1631
 msgid "If you delete a file, it is permanently lost."
 msgstr "Hvis du sletter en fil, er denne tabt for bestandig."
 
-#: ../thunar/thunar-application.c:1502
+#: ../thunar/thunar-application.c:1641
 msgid "Deleting files..."
 msgstr "Sletter filer..."
 
-#: ../thunar/thunar-application.c:1537
+#: ../thunar/thunar-application.c:1676
 msgid "Moving files into the trash..."
 msgstr "Flytter filer til papirkurven..."
 
-#: ../thunar/thunar-application.c:1576
+#: ../thunar/thunar-application.c:1715
 msgid "Creating files..."
 msgstr "Opretter filer..."
 
-#: ../thunar/thunar-application.c:1615
+#: ../thunar/thunar-application.c:1754
 msgid "Creating directories..."
 msgstr "Opretter mapper..."
 
-#: ../thunar/thunar-application.c:1653
+#: ../thunar/thunar-application.c:1793
 msgid "Remove all files and folders from the Trash?"
 msgstr "Fjern alle filer 

[Xfce4-commits] In Vala 0.10, GLib.RegexEvalCallback takes no user data

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to 1269cfa760eb8f0831cafcba3e49c7337369d25f (commit)
   from d789ad143da83015a37093ef198ab03a0e3c8caa (commit)

commit 1269cfa760eb8f0831cafcba3e49c7337369d25f
Author: Christian Dywan 
Date:   Wed Oct 20 18:46:48 2010 +0200

In Vala 0.10, GLib.RegexEvalCallback takes no user data

 postler/postler-content.vala  |2 +-
 postler/postler-messages.vala |6 ++
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index cc7b8b8..d2b691d 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -744,7 +744,7 @@ public class Postler.Content : WebKit.WebView {
 var escaped = GLib.Regex.escape_string (" " + 
emoticon.token);
 var regex = new GLib.Regex (escaped);
 body_chunk = regex.replace_eval (body_chunk, -1, 0, 0,
- evaluate_emoticon, 
&emoticon);
+(match_info, result) => { evaluate_emoticon 
(match_info, result, &emoticon); });
 }
 catch (GLib.RegexError error) { }
 }
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 0500e64..571085e 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -220,8 +220,7 @@ public class Postler.Messages : Gtk.TreeView {
 }
 
 static bool evaluate_hex (GLib.MatchInfo match_info,
-  GLib.StringBuilder result,
-  void*  user_data) {
+  GLib.StringBuilder result) {
 string match = "0x" + match_info.fetch (2);
 result.append_printf ("%c", (int)match.to_ulong (null));
 return false;
@@ -231,8 +230,7 @@ public class Postler.Messages : Gtk.TreeView {
 string unquoted = quoted.replace (" =", " ").replace ("_", " ");
 try {
 var regex = new GLib.Regex ("([=]([0-9A-F][0-9A-F]))");
-return regex.replace_eval (unquoted, -1, 0, 0,
-   evaluate_hex, null);
+return regex.replace_eval (unquoted, -1, 0, 0, evaluate_hex);
 }
 catch (GLib.RegexError error) {
 GLib.critical (_("Failed to decode string \"%s\": %s"),
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] Require Vala 0.10 at minimum

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to 71ba376ff27b1522aff145bba46ae62f76450cc1 (commit)
   from 79a38d50d595570cbc32d1f6a2eef252859fb6e0 (commit)

commit 71ba376ff27b1522aff145bba46ae62f76450cc1
Author: Christian Dywan 
Date:   Wed Oct 20 18:50:22 2010 +0200

Require Vala 0.10 at minimum

 wscript |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 8241310..00e6de7 100644
--- a/wscript
+++ b/wscript
@@ -75,8 +75,8 @@ def configure (conf):
 
 conf.check_tool ('compiler_cc')
 conf.check_tool ('vala')
-if conf.env['VALAC_VERSION'][1] < 8:
- Utils.pprint ('RED', 'valac >= 0.8.0 required')
+if conf.env['VALAC_VERSION'][1] < 10:
+ Utils.pprint ('RED', 'valac >= 0.10.0 required')
  sys.exit (1)
 
 if option_enabled ('nls'):
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] In Vala 0.10 WebKit.WebView.create_web_view isn't unowned

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to 79a38d50d595570cbc32d1f6a2eef252859fb6e0 (commit)
   from 1269cfa760eb8f0831cafcba3e49c7337369d25f (commit)

commit 79a38d50d595570cbc32d1f6a2eef252859fb6e0
Author: Christian Dywan 
Date:   Wed Oct 20 18:48:07 2010 +0200

In Vala 0.10 WebKit.WebView.create_web_view isn't unowned

 postler/postler-content.vala |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index d2b691d..d9d9d55 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -816,7 +816,7 @@ public class Postler.Content : WebKit.WebView {
 return Postler.App.show_uri (get_screen (), uri);
 }
 
-unowned WebKit.WebView new_window_created (WebKit.WebFrame web_frame) {
+WebKit.WebView new_window_created (WebKit.WebFrame web_frame) {
 /* Forward new windows, we never open new windows of our own */
 return this;
 }
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] Use string.length instead of string.len()

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to 6b878a420830ced40143f264f854191d1b6b9071 (commit)
   from 71ba376ff27b1522aff145bba46ae62f76450cc1 (commit)

commit 6b878a420830ced40143f264f854191d1b6b9071
Author: Christian Dywan 
Date:   Wed Oct 20 18:53:13 2010 +0200

Use string.length instead of string.len()

 postler/postler-content.vala |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index d9d9d55..abc562b 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -335,7 +335,7 @@ public class Postler.Content : WebKit.WebView {
 continue;
 last_line_empty = false;
 
-size_t length = line.len ();
+size_t length = line.length;
 /* TODO: Handle encoding */
 for (int i = 0; i < length; i += (quote ? 78 : 80))
 body.append ((quote ? "> " : "")
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] l10n: Updated Italian (it) translation to 100%

2010-10-20 Thread Transifex
Updating branch refs/heads/master
 to 865223aefed5cc267a59f84e61f353dd913f6415 (commit)
   from 5d9c424f631d471bc9bad60949b4f6b060dbf776 (commit)

commit 865223aefed5cc267a59f84e61f353dd913f6415
Author: Cristian Marchi 
Date:   Wed Oct 20 20:50:33 2010 +0200

l10n: Updated Italian (it) translation to 100%

New status: 230 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).

 po/it.po |   52 ++--
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/po/it.po b/po/it.po
index 2b62bf8..ebe3d96 100644
--- a/po/it.po
+++ b/po/it.po
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: xfce4-session 4.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-09-12 04:08+\n"
+"POT-Creation-Date: 2010-10-20 16:08+\n"
 "PO-Revision-Date: 2010-01-28 15:03+0100\n"
 "Last-Translator: Cristian Marchi \n"
 "Language-Team: Italian \n"
@@ -227,8 +227,8 @@ msgid "Failed to hibernate"
 msgstr "Ibernazione non riuscita"
 
 #: ../panel-plugin/xfsm-logout-plugin.c:150
-msgid "Xfclock4 could not be launched"
-msgstr "xfclock4 non può essere avviato"
+msgid "Xflock4 could not be launched"
+msgstr "Xflock4 non può essere avviato"
 
 #: ../panel-plugin/xfsm-logout-plugin.c:222
 msgid "Close Session"
@@ -503,7 +503,7 @@ msgstr "Si è verificato un errore"
 msgid "Either the password you entered is invalid, or the system administrator 
disallows shutting down this computer with your user account."
 msgstr "La password inserita non è valida oppure l'amministratore di sistema 
non consente lo spegnimento del computer a questo utente."
 
-#: ../xfce4-session/shutdown.c:836 ../xfce4-session/xfsm-manager.c:1250
+#: ../xfce4-session/shutdown.c:836 ../xfce4-session/xfsm-manager.c:1119
 msgid "Shutdown Failed"
 msgstr "Spegnimento non riuscito"
 
@@ -516,25 +516,25 @@ msgstr "Impossibile eseguire lo spegnimento"
 msgid "Last accessed: %s"
 msgstr "Ultimo accesso: %s"
 
-#: ../xfce4-session/xfsm-chooser.c:182
+#: ../xfce4-session/xfsm-chooser.c:177
 msgid "Choose the session you want to restore. You can simply double-click the 
session name to restore it."
 msgstr "Scegliere la sessione da ripristinare; si può semplicemente fare 
doppio clic sul nome della sessione."
 
 #. "Logout" button
-#: ../xfce4-session/xfsm-chooser.c:208
+#: ../xfce4-session/xfsm-chooser.c:203
 msgid "Log out"
 msgstr "Uscita"
 
-#: ../xfce4-session/xfsm-chooser.c:210
+#: ../xfce4-session/xfsm-chooser.c:205
 msgid "Cancel the login attempt and return to the login screen."
 msgstr "Annulla il tentativo di accesso e ritorna alla schermata di accesso."
 
 #. "New" button
-#: ../xfce4-session/xfsm-chooser.c:218
+#: ../xfce4-session/xfsm-chooser.c:212
 msgid "New session"
 msgstr "Nuova sessione"
 
-#: ../xfce4-session/xfsm-chooser.c:220
+#: ../xfce4-session/xfsm-chooser.c:213
 msgid "Create a new session."
 msgstr "Crea una nuova sessione"
 
@@ -581,83 +581,83 @@ msgstr "Continua comunque"
 msgid "Try again"
 msgstr "Prova ancora"
 
-#: ../xfce4-session/xfsm-manager.c:733
+#: ../xfce4-session/xfsm-manager.c:602
 #, c-format
 msgid "Unable to determine failsafe session name.  Possible causes: xfconfd 
isn't running (D-Bus setup problem); environment variable $XDG_CONFIG_DIRS is 
set incorrectly (must include \"%s\"), or xfce4-session is installed 
incorrectly."
 msgstr "Impossibile determinare il nome della sessione di ripristino. Cause 
possibili: xfconfd non è in esecuzione (problema nell'impostazione di D-Bus), 
la variabile di ambiente $XDG_CONFIG_DIRS è impostata in modo errato (deve 
includere \"%s\"), oppure xfce4-session non è installato correttamente."
 
-#: ../xfce4-session/xfsm-manager.c:744
+#: ../xfce4-session/xfsm-manager.c:613
 #, c-format
 msgid "The specified failsafe session (\"%s\") is not marked as a failsafe 
session."
 msgstr "La sessione di ripristino specificata (\"%s\") non è identificata come 
sessione di ripristino"
 
-#: ../xfce4-session/xfsm-manager.c:791
+#: ../xfce4-session/xfsm-manager.c:660
 msgid "The list of applications in the failsafe session is empty."
 msgstr "L'elenco delle applicazioni della sessione di ripristino è vuoto."
 
 #. FIXME: migrate this into the splash screen somehow so the
 #. * window doesn't look ugly (right now now WM is running, so it
 #. * won't have window decorations).
-#: ../xfce4-session/xfsm-manager.c:838
+#: ../xfce4-session/xfsm-manager.c:707
 msgid "Session Manager Error"
 msgstr "Errore del gestore di sessione"
 
-#: ../xfce4-session/xfsm-manager.c:840
+#: ../xfce4-session/xfsm-manager.c:709
 msgid "Unable to load a failsafe session"
 msgstr "Impossibile avviare una sessione di ripristino"
 
-#: ../xfce4-session/xfsm-manager.c:1253
+#: ../xfce4-session/xfsm-manager.c:1122
 msgid "Failed to suspend session"
 msgstr "Sospensione della sessione non riuscita"
 
-#: ../xfce4-session/xfsm-manager.c:1254
+#: ../xfce4-session/xfsm-manager.c:1123
 msgid "Fa

[Xfce4-commits] l10n: Updated Italian (it) translation to 100%

2010-10-20 Thread Transifex
Updating branch refs/heads/master
 to a28cca766120c73c91a58af5143c44ad3768bbd1 (commit)
   from 0839e34691ee423a43f3a0df77a60232354d3ac7 (commit)

commit a28cca766120c73c91a58af5143c44ad3768bbd1
Author: Cristian Marchi 
Date:   Wed Oct 20 20:53:07 2010 +0200

l10n: Updated Italian (it) translation to 100%

New status: 680 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).

 po/it.po |  267 --
 1 files changed, 139 insertions(+), 128 deletions(-)

diff --git a/po/it.po b/po/it.po
index b82044a..fb8383c 100644
--- a/po/it.po
+++ b/po/it.po
@@ -10,7 +10,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Thunar trunk\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-10-03 10:12+\n"
+"POT-Creation-Date: 2010-10-20 16:10+\n"
 "PO-Revision-Date: 2010-07-02 16:42+0100\n"
 "Last-Translator: Cristian Marchi \n"
 "Language-Team: Italian Translation Team 
\n"
@@ -131,44 +131,72 @@ msgid "Sort items in descending order"
 msgstr "Ordina gli elementi in ordine discendente"
 
 #. display an error message to the user
-#: ../thunar/thunar-application.c:375
+#: ../thunar/thunar-application.c:379
 msgid "Failed to launch operation"
 msgstr "Impossibile avviare l'operazione"
 
 #. tell the user that we were unable to launch the file specified
-#: ../thunar/thunar-application.c:1036 ../thunar/thunar-application.c:1162
+#: ../thunar/thunar-application.c:1040 ../thunar/thunar-application.c:1166
 #: ../thunar/thunar-launcher.c:1062 ../thunar/thunar-location-entry.c:389
 #: ../thunar/thunar-location-entry.c:417
-#: ../thunar/thunar-shortcuts-view.c:1237 ../thunar/thunar-window.c:1506
+#: ../thunar/thunar-shortcuts-view.c:1277 ../thunar/thunar-window.c:1506
 #, c-format
 msgid "Failed to open \"%s\""
 msgstr "Impossibile aprire \"%s\""
 
-#: ../thunar/thunar-application.c:1166
+#: ../thunar/thunar-application.c:1170
 #, c-format
 msgid "Failed to open \"%s\": %s"
 msgstr "Impossibile aprire \"%s\": %s"
 
-#: ../thunar/thunar-application.c:1241
+#. display an error message
+#: ../thunar/thunar-application.c:1234
+#: ../thunar/thunar-properties-dialog.c:624
+#: ../thunar/thunar-standard-view.c:2203 ../thunar/thunar-tree-view.c:1672
+#, c-format
+msgid "Failed to rename \"%s\""
+msgstr "Impossibile rinominare \"%s\""
+
+#: ../thunar/thunar-application.c:1320
+#: ../thunar/thunar-location-buttons.c:1285
+#: ../thunar/thunar-standard-view.c:1824 ../thunar/thunar-tree-view.c:1569
+msgid "New Folder"
+msgstr "Nuova cartella"
+
+#: ../thunar/thunar-application.c:1321
+#: ../thunar/thunar-location-buttons.c:1286
+#: ../thunar/thunar-standard-view.c:1825 ../thunar/thunar-tree-view.c:1570
+msgid "Create New Folder"
+msgstr "Crea nuova cartella"
+
+#: ../thunar/thunar-application.c:1325
+msgid "New File"
+msgstr "Nuovo file"
+
+#: ../thunar/thunar-application.c:1326
+msgid "Create New File"
+msgstr "Crea un nuovo file"
+
+#: ../thunar/thunar-application.c:1380
 msgid "Copying files..."
 msgstr "Copia dei file in corso..."
 
-#: ../thunar/thunar-application.c:1277
+#: ../thunar/thunar-application.c:1416
 #, c-format
 msgid "Copying files to \"%s\"..."
 msgstr "Copia dei file in \"%s\" in corso..."
 
-#: ../thunar/thunar-application.c:1323
+#: ../thunar/thunar-application.c:1462
 #, c-format
 msgid "Creating symbolic links in \"%s\"..."
 msgstr "Creazione del collegamento simbolico \"%s\" in corso..."
 
-#: ../thunar/thunar-application.c:1376
+#: ../thunar/thunar-application.c:1515
 #, c-format
 msgid "Moving files into \"%s\"..."
 msgstr "Spostamento dei file in \"%s\" in corso..."
 
-#: ../thunar/thunar-application.c:1467
+#: ../thunar/thunar-application.c:1606
 #, c-format
 msgid ""
 "Are you sure that you want to\n"
@@ -177,7 +205,7 @@ msgstr ""
 "Cancellare davvero in modo\n"
 "permanente \"%s\"?"
 
-#: ../thunar/thunar-application.c:1472
+#: ../thunar/thunar-application.c:1611
 #, c-format
 msgid ""
 "Are you sure that you want to permanently\n"
@@ -192,58 +220,58 @@ msgstr[1] ""
 "Cancellare davvero in modo\n"
 "permanente i %u file selezionati?"
 
-#: ../thunar/thunar-application.c:1492
+#: ../thunar/thunar-application.c:1631
 msgid "If you delete a file, it is permanently lost."
 msgstr "Se si cancella un file, questo è perso per sempre."
 
-#: ../thunar/thunar-application.c:1502
+#: ../thunar/thunar-application.c:1641
 msgid "Deleting files..."
 msgstr "Eliminazione dei file in corso..."
 
-#: ../thunar/thunar-application.c:1537
+#: ../thunar/thunar-application.c:1676
 msgid "Moving files into the trash..."
 msgstr "Spostamento dei file nel cestino in corso..."
 
-#: ../thunar/thunar-application.c:1576
+#: ../thunar/thunar-application.c:1715
 msgid "Creating files..."
 msgstr "Creazione dei file in corso..."
 
-#: ../thunar/thunar-application.c:1615
+#: ../thunar/thunar-application.c:1754
 msgid "Creating directories..."
 msgstr "Creazione delle cartelle in corso..."
 
-#: ../thuna

[Xfce4-commits] Ask GIO for supported URI schemes

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to fc23eac478f40acddd4dc0ca056bb31d1a9f92e8 (commit)
   from 6bc27b9cd5a3c3ee54312c3da830f6eab780e454 (commit)

commit fc23eac478f40acddd4dc0ca056bb31d1a9f92e8
Author: Christian Dywan 
Date:   Wed Oct 20 20:56:05 2010 +0200

Ask GIO for supported URI schemes

sokoke_external_uri supersedes hardcoded support for tel:
and callto: and notably doesn't count http(s).

 midori/midori-view.c |6 ++
 midori/sokoke.c  |   20 ++--
 midori/sokoke.h  |3 +++
 3 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 0679b2f..9bda7bc 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -949,7 +949,7 @@ midori_view_web_view_navigation_decision_cb (WebKitWebView* 
web_view
  MidoriView*view)
 {
 const gchar* uri = webkit_network_request_get_uri (request);
-if (g_str_has_prefix (uri, "mailto:";) || g_str_has_prefix (uri, "tel:"))
+if (g_str_has_prefix (uri, "mailto:";) || sokoke_external_uri (uri))
 {
 if (sokoke_show_uri (gtk_widget_get_screen (GTK_WIDGET (web_view)),
  uri, GDK_CURRENT_TIME, NULL))
@@ -3861,9 +3861,7 @@ midori_view_set_uri (MidoriView*  view,
 g_free (exception);
 }
 }
-else if (g_str_has_prefix (uri, "mailto:";)
-  || g_str_has_prefix (uri, "tel:")
-  || g_str_has_prefix (uri, "callto:"))
+else if (g_str_has_prefix (uri, "mailto:";) || sokoke_external_uri 
(uri))
 {
 sokoke_show_uri (NULL, uri, GDK_CURRENT_TIME, NULL);
 }
diff --git a/midori/sokoke.c b/midori/sokoke.c
index 02910d6..9a0d960 100644
--- a/midori/sokoke.c
+++ b/midori/sokoke.c
@@ -739,6 +739,23 @@ sokoke_resolve_hostname (const gchar* hostname)
 return host_resolved == 1 ? TRUE : FALSE;
 }
 
+gboolean
+sokoke_external_uri (const gchar* uri)
+{
+gchar* scheme;
+GAppInfo* info;
+
+if (!uri || !strncmp (uri, "http", 4))
+return FALSE;
+
+scheme = g_uri_parse_scheme (uri);
+info = g_app_info_get_default_for_uri_scheme (scheme);
+g_free (scheme);
+if (info)
+g_object_unref (info);
+return info != NULL;
+}
+
 /**
  * sokoke_magic_uri:
  * @uri: a string typed by a user
@@ -761,8 +778,7 @@ sokoke_magic_uri (const gchar* uri)
 /* Just return if it's a javascript: or mailto: uri */
 if (!strncmp (uri, "javascript:", 11)
  || !strncmp (uri, "mailto:";, 7)
- || !strncmp (uri, "tel:", 4)
- || !strncmp (uri, "callto:", 7)
+ || sokoke_external_uri (uri)
  || !strncmp (uri, "data:", 5)
  || !strncmp (uri, "about:", 6))
 return g_strdup (uri);
diff --git a/midori/sokoke.h b/midori/sokoke.h
index 5515486..288e79a 100644
--- a/midori/sokoke.h
+++ b/midori/sokoke.h
@@ -118,6 +118,9 @@ sokoke_hostname_from_uri(const gchar*
uri,
 gchar*
 sokoke_uri_to_ascii (const gchar*uri);
 
+gboolean
+sokoke_external_uri (const gchar*uri);
+
 gchar*
 sokoke_magic_uri(const gchar*uri);
 
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] check-style should warn about g_list_nth in loops

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to 63210d28a18c583b60150bace2469605596dff95 (commit)
   from b25f27cd66b3c7f3ac7b21355d4b24247555992b (commit)

commit 63210d28a18c583b60150bace2469605596dff95
Author: Christian Dywan 
Date:   Wed Oct 20 23:52:20 2010 +0200

check-style should warn about g_list_nth in loops

 tools/check-style |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/check-style b/tools/check-style
index fc752fc..b6076d8 100755
--- a/tools/check-style
+++ b/tools/check-style
@@ -47,6 +47,7 @@ violations = [
 ['asctime|ctime|getgrgid|getprgnam|getlogin \
  |getpwnam|getpwuid|gmtime|localtime \
  |rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'],
+['while.*g_list_nth', 'Use g_list_next() instead of g_list_nth'],
 ]
 # No validation for strings, comments, includes
 omissions = [
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] Clean up redundant item lists from addons helpers

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to 30f3dc04610a3a5dcc033bd9722a6159a6db5b5a (commit)
   from fc23eac478f40acddd4dc0ca056bb31d1a9f92e8 (commit)

commit 30f3dc04610a3a5dcc033bd9722a6159a6db5b5a
Author: Paweł Forysiuk 
Date:   Wed Oct 20 23:47:14 2010 +0200

Clean up redundant item lists from addons helpers

 extensions/addons.c |7 +--
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 7c6e7dd..b3b5d0d 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -517,7 +517,6 @@ static void
 addons_free_elements (GSList* elements)
 {
 struct AddonElement* element;
-GSList* start = elements;
 
 while (elements)
 {
@@ -531,8 +530,6 @@ addons_free_elements (GSList* elements)
 
 elements = g_slist_next (elements);
 }
-
-g_slist_free (start);
 }
 
 static void
@@ -708,6 +705,7 @@ addons_get_files (AddonsKind kind)
 }
 
 g_free (file_extension);
+g_slist_free (directories);
 
 return files;
 }
@@ -952,7 +950,6 @@ addons_update_elements (MidoriExtension* extension,
 AddonsKind   kind)
 {
 GSList* addon_files;
-GSList* files_list;
 gchar* name;
 gchar* fullpath;
 struct AddonElement* element;
@@ -993,7 +990,6 @@ addons_update_elements (MidoriExtension* extension,
 g_key_file_load_from_file (keyfile, config_file, G_KEY_FILE_NONE, NULL);
 
 addon_files = addons_get_files (kind);
-files_list = addon_files;
 
 elements = NULL;
 while (addon_files)
@@ -1066,7 +1062,6 @@ addons_update_elements (MidoriExtension* extension,
 addon_files = g_slist_next (addon_files);
 elements = g_slist_prepend (elements, element);
 }
-g_slist_free (files_list);
 g_free (config_file);
 g_key_file_free (keyfile);
 
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] Add static keywords, fix #ifdefs and spurious lines

2010-10-20 Thread Christian Dywan
Updating branch refs/heads/master
 to b25f27cd66b3c7f3ac7b21355d4b24247555992b (commit)
   from 30f3dc04610a3a5dcc033bd9722a6159a6db5b5a (commit)

commit b25f27cd66b3c7f3ac7b21355d4b24247555992b
Author: Christian Dywan 
Date:   Wed Oct 20 23:48:36 2010 +0200

Add static keywords, fix #ifdefs and spurious lines

 extensions/web-cache.c |2 +-
 midori/midori-view.c   |   52 ---
 2 files changed, 19 insertions(+), 35 deletions(-)

diff --git a/extensions/web-cache.c b/extensions/web-cache.c
index d82d355..53ff889 100644
--- a/extensions/web-cache.c
+++ b/extensions/web-cache.c
@@ -89,7 +89,7 @@ web_cache_save_headers (SoupMessage* msg,
   return TRUE;
 }
 
-GHashTable*
+static GHashTable*
 web_cache_get_headers (gchar* filename)
 {
 GHashTable* headers;
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 9bda7bc..c753419 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -759,7 +759,7 @@ typedef struct
 MidoriView* view;
 } KatzeNetIconPriv;
 
-void
+static void
 katze_net_icon_priv_free (KatzeNetIconPriv* priv)
 {
 g_free (priv->icon_file);
@@ -767,7 +767,7 @@ katze_net_icon_priv_free (KatzeNetIconPriv* priv)
 g_free (priv);
 }
 
-gboolean
+static gboolean
 katze_net_icon_status_cb (KatzeNetRequest*  request,
   KatzeNetIconPriv* priv)
 {
@@ -790,7 +790,7 @@ katze_net_icon_status_cb (KatzeNetRequest*  request,
 return TRUE;
 }
 
-void
+static void
 katze_net_icon_transfer_cb (KatzeNetRequest*  request,
 KatzeNetIconPriv* priv)
 {
@@ -846,7 +846,6 @@ katze_net_icon_transfer_cb (KatzeNetRequest*  request,
 katze_net_icon_priv_free (priv);
 }
 
-
 static void
 _midori_web_view_load_icon (MidoriView* view)
 {
@@ -1011,7 +1010,7 @@ webkit_web_view_load_committed_cb (WebKitWebView*  
web_view,
 
 if (!strncmp (uri, "https", 5))
 {
-#if WEBKIT_CHECK_VERSION (1, 1, 14) && defined (HAVE_LIBSOUP_2_29_91)
+#if WEBKIT_CHECK_VERSION (1, 1, 14) && defined (HAVE_LIBSOUP_2_29_91)
 WebKitWebDataSource *source;
 WebKitNetworkRequest *request;
 SoupMessage *message;
@@ -1024,7 +1023,7 @@ webkit_web_view_load_committed_cb (WebKitWebView*  
web_view,
  && soup_message_get_flags (message) & 
SOUP_MESSAGE_CERTIFICATE_TRUSTED)
 view->security = MIDORI_SECURITY_TRUSTED;
 else
-#endif
+#endif
 view->security = MIDORI_SECURITY_UNKNOWN;
 }
 else
@@ -2252,8 +2251,8 @@ midori_view_populate_popup (MidoriView* view,
 gtk_widget_show (menuitem);
 g_object_set_data (G_OBJECT (menuitem), "x", GINT_TO_POINTER 
(x));
 g_object_set_data (G_OBJECT (menuitem), "y", GINT_TO_POINTER 
(y));
- }
- #endif
+}
+#endif
 }
 return;
 }
@@ -2956,7 +2955,7 @@ midori_view_notify_vadjustment_cb (MidoriView* view,
 g_object_unref (vadjustment);
 }
 
-void
+static void
 katze_net_object_maybe_unref (gpointer object)
 {
 if (object)
@@ -3171,6 +3170,9 @@ _midori_view_update_settings (MidoriView* view)
 {
 gboolean zoom_text_and_images, kinetic_scrolling;
 
+g_free (view->download_manager);
+g_free (view->news_aggregator);
+
 g_object_get (view->settings,
 "speed-dial-in-new-tabs", &view->speed_dial_in_new_tabs,
 "download-manager", &view->download_manager,
@@ -3239,17 +3241,11 @@ midori_view_settings_notify_cb (MidoriWebSettings* 
settings,
 g_object_get_property (G_OBJECT (view->settings), name, &value);
 
 if (name == g_intern_string ("speed-dial-in-new-tabs"))
-{
 view->speed_dial_in_new_tabs = g_value_get_boolean (&value);
-}
 else if (name == g_intern_string ("download-manager"))
-{
 katze_assign (view->download_manager, g_value_dup_string (&value));
-}
 else if (name == g_intern_string ("news-aggregator"))
-{
 katze_assign (view->news_aggregator, g_value_dup_string (&value));
-}
 else if (name == g_intern_string ("zoom-text-and-images"))
 {
 if (view->web_view)
@@ -3268,25 +3264,15 @@ midori_view_settings_notify_cb (MidoriWebSettings* 
settings,
view->close_buttons_on_tabs);
 }
 else if (name == g_intern_string ("open-new-pages-in"))
-{
 view->open_new_pages_in = g_value_get_enum (&value);
-}
 else if (name == g_intern_string ("ask-for-destination-folder"))
-{
 view->ask_for_destination_folder = g_value_get_boolean (&value);
-}
 else if (name == g_intern_string ("middle-click-opens-selection"))
-{
 view->middle_click_opens_selection = g_value_get_boolean (&value);
-}
 else if (name == g_intern_string ("open-tabs-in-the-background"))
-{
 view->open_tabs_in_the_background = g_value_get_boolean (&value);
-}
 else if (name == g_intern_string ("find-wh

[Xfce4-commits] Load files in the desktop folder asynchronously with GIO.

2010-10-20 Thread Jannis Pohlmann
Updating branch refs/heads/jannis/port-to-gio
 to 909ca98ea8920479f21bdaea72e15e63b8b0ab81 (commit)
   from 2d81053a21542e64fc71afb633f8d371c1d1ae2b (commit)

commit 909ca98ea8920479f21bdaea72e15e63b8b0ab81
Author: Jannis Pohlmann 
Date:   Thu Oct 21 00:07:39 2010 +0200

Load files in the desktop folder asynchronously with GIO.

A few workarounds have been inserted to get the ThunarVfsInfo back when
we create the file icons. Those will be removed later.

 src/xfdesktop-file-icon-manager.c |  219 +
 1 files changed, 101 insertions(+), 118 deletions(-)

diff --git a/src/xfdesktop-file-icon-manager.c 
b/src/xfdesktop-file-icon-manager.c
index e715e56..bf8be7c 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -109,6 +109,7 @@ struct _XfdesktopFileIconManagerPrivate
 XfdesktopFileIcon *desktop_icon;
 GFileMonitor *monitor;
 ThunarVfsJob *list_job;
+GFileEnumerator *enumerator;
 
 GHashTable *icons;
 GHashTable *removable_icons;
@@ -2160,11 +2161,9 @@ 
xfdesktop_file_icon_manager_add_icon(XfdesktopFileIconManager *fmanager,
 do_add = TRUE;
 } else {
 if(defer_if_missing) {
-ThunarVfsInfo *info = (ThunarVfsInfo 
*)xfdesktop_file_icon_peek_info(icon);
-if(info) {
-fmanager->priv->deferred_icons = 
g_list_prepend(fmanager->priv->deferred_icons,
-
thunar_vfs_info_ref(info));
-}
+GFile *file = xfdesktop_file_icon_peek_file(icon);
+fmanager->priv->deferred_icons = 
g_list_prepend(fmanager->priv->deferred_icons,
+
g_object_ref(file));
 } else
 do_add = TRUE;
 }
@@ -2521,7 +2520,6 @@ xfdesktop_file_icon_manager_file_changed(GFileMonitor 
*monitor,
 break;
 case G_FILE_MONITOR_EVENT_DELETED:
 DBG("got deleted event");
-g_debug("got deleted event: %s", g_file_get_path(file));
 
 icon = g_hash_table_lookup(fmanager->priv->icons, file);
 if(icon) {
@@ -2543,81 +2541,90 @@ xfdesktop_file_icon_manager_file_changed(GFileMonitor   
  *monitor,
 }
 }
 
-static gboolean
-xfdesktop_file_icon_manager_listdir_infos_ready_cb(ThunarVfsJob *job,
-   GList *infos,
-   gpointer user_data)
-{
-XfdesktopFileIconManager *fmanager = 
XFDESKTOP_FILE_ICON_MANAGER(user_data);
-GList *l;
-ThunarVfsInfo *info;
-
-g_return_val_if_fail(job == fmanager->priv->list_job, FALSE);
-
-TRACE("entering");
-
-for(l = infos; l; l = l->next) {
-info = l->data;
-
-DBG("got a ThunarVfsInfo: %s", info->display_name);
-
-if((info->flags & THUNAR_VFS_FILE_FLAGS_HIDDEN) != 0)
-continue;
-
-/* FIXME: memleak? */
-/*thunar_vfs_path_ref(info->path);*/
-xfdesktop_file_icon_manager_add_regular_icon(fmanager, info, TRUE);
-}
-
-return FALSE;
-}
-
 static void
-xfdesktop_file_icon_manager_listdir_finished_cb(ThunarVfsJob *job,
-gpointer user_data)
+xfdesktop_file_icon_manager_files_ready(GFileEnumerator *enumerator,
+GAsyncResult *result,
+gpointer user_data)
 {
 XfdesktopFileIconManager *fmanager = 
XFDESKTOP_FILE_ICON_MANAGER(user_data);
-GList *l;
-
-g_return_if_fail(job == fmanager->priv->list_job);
-
-TRACE("entering");
-
-if(fmanager->priv->deferred_icons) {
-for(l = fmanager->priv->deferred_icons; l; l = l->next) {
-xfdesktop_file_icon_manager_add_regular_icon(fmanager,
- (ThunarVfsInfo 
*)l->data,
- FALSE);
-thunar_vfs_info_unref((ThunarVfsInfo *)l->data);
+GError *error = NULL;
+GList *files, *l;
+gboolean is_hidden;
+
+g_return_if_fail(enumerator == fmanager->priv->enumerator);
+
+files = g_file_enumerator_next_files_finish(enumerator, result, &error);
+
+if(!files) {
+if(error) {
+GtkWidget *toplevel = 
gtk_widget_get_toplevel(GTK_WIDGET(fmanager->priv->icon_view));
+xfce_message_dialog(gtk_widget_is_toplevel(toplevel) ? 
GTK_WINDOW(toplevel) : NULL,
+_("Load Error"),
+GTK_STOCK_DIALOG_WARNING, 
+_("Failed to load the desktop folder"), 
error->message,
+GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL);
 }
-g_list_free(fmanager->priv->deferred_icons);
-fmanager->priv->deferred_icons = NULL;
-}

[Xfce4-commits] Fix a warning when the background pixmap is not a GdkWindow.

2010-10-20 Thread Jannis Pohlmann
Updating branch refs/heads/jannis/port-to-gio
 to 2d81053a21542e64fc71afb633f8d371c1d1ae2b (commit)
   from bc5b3aa3b2658a1bfa7de63304ea108dd99c1403 (commit)

commit 2d81053a21542e64fc71afb633f8d371c1d1ae2b
Author: Jannis Pohlmann 
Date:   Thu Oct 21 00:07:04 2010 +0200

Fix a warning when the background pixmap is not a GdkWindow.

 src/xfce-desktop.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index a26109b..424e4ea 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -919,7 +919,8 @@ xfce_desktop_style_set(GtkWidget *w,
 gdouble old_font_size;
 #endif
 
-gdk_window_set_back_pixmap(w->window, desktop->priv->bg_pixmap, FALSE);
+if(GDK_IS_WINDOW(desktop->priv->bg_pixmap))
+gdk_window_set_back_pixmap(w->window, desktop->priv->bg_pixmap, FALSE);
 gtk_widget_queue_draw(w);
 
 #ifdef ENABLE_DESKTOP_ICONS
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits