[Xfce4-commits] r22866 - libexo/trunk/po

2006-08-24 Thread Piarres Beobide
Author: piarres
Date: 2006-08-24 12:23:22 + (Thu, 24 Aug 2006)
New Revision: 22866

Modified:
   libexo/trunk/po/ChangeLog
   libexo/trunk/po/eu.po
Log:
libexo basque translation update


Modified: libexo/trunk/po/ChangeLog
===
--- libexo/trunk/po/ChangeLog   2006-08-24 06:55:15 UTC (rev 22865)
+++ libexo/trunk/po/ChangeLog   2006-08-24 12:23:22 UTC (rev 22866)
@@ -1,3 +1,7 @@
+2006-08-25   Beobide [EMAIL PROTECTED]
+
+* eu.po: Updated Basque translation.
+
 2006-08-20  Jean-François Wauthy [EMAIL PROTECTED]
 
* gl.po: Add Galician translations

Modified: libexo/trunk/po/eu.po
===
--- libexo/trunk/po/eu.po   2006-08-24 06:55:15 UTC (rev 22865)
+++ libexo/trunk/po/eu.po   2006-08-24 12:23:22 UTC (rev 22866)
@@ -8,14 +8,14 @@
 msgstr 
 Project-Id-Version: eu\n
 Report-Msgid-Bugs-To: \n
-POT-Creation-Date: 2006-08-14 21:42+0200\n
-PO-Revision-Date: 2006-08-15 22:44+0200\n
+POT-Creation-Date: 2006-08-16 15:27+0200\n
+PO-Revision-Date: 2006-08-24 14:27+0200\n
 Last-Translator: Piarres Beobide [EMAIL PROTECTED]\n
 Language-Team: librezale [EMAIL PROTECTED]\n
 MIME-Version: 1.0\n
 Content-Type: text/plain; charset=UTF-8\n
 Content-Transfer-Encoding: 8bit\n
-X-Generator: KBabel 1.11.2\n
+X-Generator: Pootle 0.10rc3\n
 
 #: ../exo/exo-icon-bar.c:249 ../exo/exo-icon-view.c:782
 msgid Orientation
@@ -150,7 +150,8 @@
 msgstr Ikono ikuspegiaren modeloa
 
 #: ../exo/exo-icon-view.c:783
-msgid How the text and icon of each item are positioned relative to each 
other
+msgid 
+How the text and icon of each item are positioned relative to each other
 msgstr Elementu bakoitzaren testu eta ikonoaren kokapena bestearekiko
 
 #: ../exo/exo-icon-view.c:815
@@ -409,32 +410,32 @@
 
 #: ../exo-desktop-item-edit/exo-die-command-entry.c:299
 #: ../exo-desktop-item-edit/exo-die-editor.c:641
-#: ../exo-helper/exo-helper-chooser.c:424
+#: ../exo-helper/exo-helper-chooser.c:432
 msgid All Files
 msgstr Fitxategi Guztiak
 
 #: ../exo-desktop-item-edit/exo-die-command-entry.c:304
-#: ../exo-helper/exo-helper-chooser.c:429
+#: ../exo-helper/exo-helper-chooser.c:437
 msgid Executable Files
 msgstr Fitxategi abiarazgarriak
 
 #: ../exo-desktop-item-edit/exo-die-command-entry.c:319
-#: ../exo-helper/exo-helper-chooser.c:444
+#: ../exo-helper/exo-helper-chooser.c:452
 msgid Perl Scripts
 msgstr Perl Script-ak
 
 #: ../exo-desktop-item-edit/exo-die-command-entry.c:325
-#: ../exo-helper/exo-helper-chooser.c:450
+#: ../exo-helper/exo-helper-chooser.c:458
 msgid Python Scripts
 msgstr Python Script-ak
 
 #: ../exo-desktop-item-edit/exo-die-command-entry.c:331
-#: ../exo-helper/exo-helper-chooser.c:456
+#: ../exo-helper/exo-helper-chooser.c:464
 msgid Ruby Scripts
 msgstr Ruby Script-ak
 
 #: ../exo-desktop-item-edit/exo-die-command-entry.c:337
-#: ../exo-helper/exo-helper-chooser.c:462
+#: ../exo-helper/exo-helper-chooser.c:470
 msgid Shell Scripts
 msgstr Shell Script-ak
 
@@ -676,40 +677,40 @@
 msgid Application Chooser Button
 msgstr Aplikazio Hautatze Botoia
 
-#: ../exo-helper/exo-helper-chooser.c:326
+#: ../exo-helper/exo-helper-chooser.c:334
 msgid No application selected
 msgstr Ez da aplikaziorik hautatu
 
-#: ../exo-helper/exo-helper-chooser.c:342
+#: ../exo-helper/exo-helper-chooser.c:350
 msgid Failed to set default Web Browser
 msgstr Huts lehenetsiriko web nabigatzailea ezartzerakoan
 
-#: ../exo-helper/exo-helper-chooser.c:343
+#: ../exo-helper/exo-helper-chooser.c:351
 msgid Failed to set default Mail Reader
 msgstr Huts lehenetsiriko posta bezeroa ezartzerakoan
 
-#: ../exo-helper/exo-helper-chooser.c:344
+#: ../exo-helper/exo-helper-chooser.c:352
 msgid Failed to set default Terminal Emulator
 msgstr Huts lehenetsiriko terminal emuladorea ezartzerakoan
 
 #. allocate the chooser
-#: ../exo-helper/exo-helper-chooser.c:414
+#: ../exo-helper/exo-helper-chooser.c:422
 msgid Select application
 msgstr Aplikazioa hautatu
 
-#: ../exo-helper/exo-helper-chooser.c:527
+#: ../exo-helper/exo-helper-chooser.c:535
 msgid Choose a custom Web Browser
 msgstr Pertsonalizatutako Web Nabigatzaile bat aukeratu
 
-#: ../exo-helper/exo-helper-chooser.c:528
+#: ../exo-helper/exo-helper-chooser.c:536
 msgid Choose a custom Mail Reader
 msgstr Pertsonalizatutako posta bezero bat aukeratu
 
-#: ../exo-helper/exo-helper-chooser.c:529
+#: ../exo-helper/exo-helper-chooser.c:537
 msgid Choose a custom Terminal Emulator
 msgstr Pertsonalizatutako terminal emuladore bat aukeratu
 
-#: ../exo-helper/exo-helper-chooser.c:534
+#: ../exo-helper/exo-helper-chooser.c:542
 msgid 
 Specify the application you want to use\n
 as default Web Browser for Xfce:
@@ -717,7 +718,7 @@
 Xfce-ren lehenetsiriko nabigatzaile bezala erabili\n
 nahi duzun aplikazioa zehaztu.
 
-#: ../exo-helper/exo-helper-chooser.c:535
+#: ../exo-helper/exo-helper-chooser.c:543
 msgid 
 Specify the application you want to use\n
 as default Mail 

[Xfce4-commits] r22869 - xarchiver/trunk/src

2006-08-24 Thread Giuseppe Torelli
Author: colossus
Date: 2006-08-24 13:34:54 + (Thu, 24 Aug 2006)
New Revision: 22869

Modified:
   xarchiver/trunk/src/main.c
Log:
Almost fixed -d problem. The fist selected directory from Thunar is not 
included in the archive.


Modified: xarchiver/trunk/src/main.c
===
--- xarchiver/trunk/src/main.c  2006-08-24 13:10:43 UTC (rev 22868)
+++ xarchiver/trunk/src/main.c  2006-08-24 13:34:54 UTC (rev 22869)
@@ -22,14 +22,14 @@
 
 gint exit_status;
 gchar *cli_command = NULL;
-gchar *archive_name;
+gchar **files;
 gchar *absolute_path = NULL;
 gchar *_current_dir = NULL;
 gchar *extract_path = NULL;
 GError *cli_error = NULL;
-gboolean error_output, file_to_open, ask_and_extract, ask_and_add;
+gboolean error_output, file_to_open, ask_and_extract, ask_and_add, add;
 gboolean cli = FALSE;
-
+unsigned short int len = 0;
 static GOptionEntry entries[] =
 {
{   extract-to, 'x', G_OPTION_FLAG_IN_MAIN, 
G_OPTION_ARG_FILENAME, extract_path,
@@ -40,10 +40,13 @@
N_(Extract the archive by asking the destination folder and 
quits.),
N_([archive path])
},
-   {   add-to, 'd', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_FILENAME, 
archive_name,
+   {   add-to, 'd', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, add,
N_(Add files to the specified archive and quits.),
-   N_([archive path] [file1] [file2] ... [fileN])
+   N_([archive name] [file1] [file2] ... [fileN])
},
+   {   G_OPTION_REMAINING, 0, G_OPTION_FLAG_IN_MAIN, 
G_OPTION_ARG_FILENAME_ARRAY, files,
+   NULL,NULL,
+   },
{   add, 'a', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, 
ask_and_add,
N_(Add files to the specified archive by asking their 
filenames and quits.),
N_([archive name])
@@ -66,7 +69,7 @@
g_error_free (cli_error);
return 0;
}
-   if (ask_and_extract || ask_and_add || archive_name != NULL || 
extract_path != NULL)
+   if (ask_and_extract || ask_and_add || add || extract_path != NULL)
cli = TRUE;
 
if (cli == TRUE)
@@ -131,25 +134,27 @@
}
}
/* Switch -d */
-   else if (archive_name != NULL)
+   else if (files != NULL)
{
-   if (argc == 1)
+   if (files[0] == NULL  files[1] == NULL)
{
response = ShowGtkMessageDialog 
(NULL,GTK_DIALOG_MODAL,GTK_MESSAGE_ERROR,GTK_BUTTONS_OK,_(Can't add files to 
the archive:),_(You missed the files to add!\n));
return 0;
}
-   if ( g_file_test ( archive_name , G_FILE_TEST_EXISTS ) )
+   if ( DetectArchiveType ( files[0] )  0 )
{
-   archive = xa_init_structure_from_cmd_line ( 
archive_name );
+   archive = xa_init_structure_from_cmd_line ( 
files[0] );
if (archive != NULL)
{
GString *string = g_string_new (  );
-   for ( x = 1; x  argc; x++)
+   while (files[len])
{
-   _current_dir = 
g_path_get_basename ( argv[x] );
+   _current_dir = 
g_path_get_basename ( files[len] );
ConcatenateFileNames2 ( 
_current_dir, string );
g_free (_current_dir);
+   len++;
}
+   
cli_command = xa_add_single_files ( 
archive , string, NULL);
if (cli_command != NULL)
error_output = SpawnSyncCommand 
( cli_command );
@@ -158,10 +163,10 @@
}
else
{
-   xa_new_archive ( NULL , archive_name );
+   xa_new_archive ( NULL , files[0] );
if (archive-path != NULL)
{
-   _current_dir = 
g_path_get_dirname(argv[1]);
+   _current_dir = 
g_path_get_dirname(files[0]);
chdir (_current_dir);
g_free (_current_dir);
GString *string = g_string_new (  );
@@ -172,11 +177,12 @@
   

[Xfce4-commits] r22871 - xfwm4/trunk/src

2006-08-24 Thread Olivier Fourdan
Author: olivier
Date: 2006-08-24 17:08:39 + (Thu, 24 Aug 2006)
New Revision: 22871

Modified:
   xfwm4/trunk/src/compositor.c
   xfwm4/trunk/src/compositor.h
   xfwm4/trunk/src/netwm.c
Log:
Restore the compositorDamageWindow() hook, use it when the NET_WM_STATE_BELOW 
is updated to ensure that the shadow gets updated too.

Modified: xfwm4/trunk/src/compositor.c
===
--- xfwm4/trunk/src/compositor.c2006-08-24 15:28:45 UTC (rev 22870)
+++ xfwm4/trunk/src/compositor.c2006-08-24 17:08:39 UTC (rev 22871)
@@ -1627,6 +1627,30 @@
 }
 
 static void
+update_extents (CWindow *cw)
+{
+DisplayInfo *display_info;
+ScreenInfo *screen_info;
+
+g_return_if_fail (cw != NULL);
+TRACE (entering update_extents);
+
+screen_info = cw-screen_info;
+display_info = screen_info-display_info;
+
+if (WIN_IS_VISIBLE(cw))
+{
+damage_win (cw);
+}
+
+if (cw-extents)
+{
+XFixesDestroyRegion (display_info-dpy, cw-extents);
+cw-extents = None;
+}
+}
+
+static void
 determine_mode(CWindow *cw)
 {
 DisplayInfo *display_info;
@@ -2469,17 +2493,7 @@
 {
 if (cw-c != c)
 {
-if (WIN_IS_VISIBLE(cw))
-{
-damage_win (cw);
-}
-
-if (cw-extents)
-{
-XFixesDestroyRegion (display_info-dpy, cw-extents);
-cw-extents = None;
-}
-
+update_extents (cw);
 cw-c = c;
 }
 return TRUE;
@@ -2506,6 +2520,30 @@
 }
 
 void
+compositorDamageWindow (DisplayInfo *display_info, Window id)
+{
+#ifdef HAVE_COMPOSITOR
+CWindow *cw;
+
+g_return_if_fail (display_info != NULL);
+g_return_if_fail (id != None);
+TRACE (entering compositorDamageWindow: 0x%lx, id);
+
+if (!compositorIsUsable (display_info))
+{
+return;
+}
+
+cw = find_cwindow_in_display (display_info, id);
+if (cw)
+{
+/* that will also damage the window */
+update_extents (cw);
+}
+#endif /* HAVE_COMPOSITOR */
+}
+
+void
 compositorHandleEvent (DisplayInfo *display_info, XEvent *ev)
 {
 #ifdef HAVE_COMPOSITOR

Modified: xfwm4/trunk/src/compositor.h
===
--- xfwm4/trunk/src/compositor.h2006-08-24 15:28:45 UTC (rev 22870)
+++ xfwm4/trunk/src/compositor.h2006-08-24 17:08:39 UTC (rev 22871)
@@ -41,6 +41,8 @@
Client *);
 void compositorRemoveWindow   (DisplayInfo *,
Window);
+void compositorDamageWindow   (DisplayInfo *, 
+   Window);
 void compositorHandleEvent(DisplayInfo *,
XEvent *);
 void compositorInitDisplay(DisplayInfo *);

Modified: xfwm4/trunk/src/netwm.c
===
--- xfwm4/trunk/src/netwm.c 2006-08-24 15:28:45 UTC (rev 22870)
+++ xfwm4/trunk/src/netwm.c 2006-08-24 17:08:39 UTC (rev 22871)
@@ -31,16 +31,17 @@
 #include gtk/gtk.h
 #include libxfce4util/libxfce4util.h 
 
+#include client.h
+#include compositor.h
 #include display.h
-#include screen.h
-#include netwm.h
-#include misc.h
-#include client.h
 #include frame.h
 #include hints.h
+#include misc.h
+#include netwm.h
+#include screen.h
+#include stacking.h
+#include transients.h
 #include workspaces.h
-#include transients.h
-#include stacking.h
 
 void
 clientSetNetState (Client * c)
@@ -482,16 +483,19 @@
 {
 if ((action == NET_WM_STATE_ADD)  !FLAG_TEST (c-flags, 
CLIENT_FLAG_BELOW))
 {
+compositorDamageWindow (display_info, c-frame);
 FLAG_SET (c-flags, CLIENT_FLAG_BELOW);
 clientUpdateBelowState (c);
 }
 else if ((action == NET_WM_STATE_REMOVE)  FLAG_TEST (c-flags, 
CLIENT_FLAG_BELOW))
 {
+compositorDamageWindow (display_info, c-frame);
 FLAG_UNSET (c-flags, CLIENT_FLAG_BELOW);
 clientUpdateBelowState (c);
 }
 else if (action == NET_WM_STATE_TOGGLE)
 {
+compositorDamageWindow (display_info, c-frame);
 FLAG_TOGGLE (c-flags, CLIENT_FLAG_BELOW);
 clientUpdateBelowState (c);
 }

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] r22872 - gtk-xfce-engine-2/trunk/themes/xfce/gtk-2.0

2006-08-24 Thread Olivier Fourdan
Author: olivier
Date: 2006-08-24 17:15:14 + (Thu, 24 Aug 2006)
New Revision: 22872

Modified:
   gtk-xfce-engine-2/trunk/themes/xfce/gtk-2.0/gtkrc
Log:
Use a dark frame around selected menu item

Modified: gtk-xfce-engine-2/trunk/themes/xfce/gtk-2.0/gtkrc
===
--- gtk-xfce-engine-2/trunk/themes/xfce/gtk-2.0/gtkrc   2006-08-24 17:08:39 UTC 
(rev 22871)
+++ gtk-xfce-engine-2/trunk/themes/xfce/gtk-2.0/gtkrc   2006-08-24 17:15:14 UTC 
(rev 22872)
@@ -12,7 +12,7 @@
 GtkButton::default_spacing   = 5
 GtkButton::focus-padding = 1
 GtkCheckButton::indicator_size   = 12
-GtkMenuItem::selected_shadow_type= none
+GtkMenuItem::selected_shadow_type= etched-in
 GtkPaned::handle_full_size   = 1
 GtkPaned::handle_size= 7
 GtkRadioButton::indicator_size   = 15

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] r22874 - xarchiver/trunk/po

2006-08-24 Thread Jean-Fran�ois Wauthy
Author: pollux
Date: 2006-08-24 18:33:48 + (Thu, 24 Aug 2006)
New Revision: 22874

Added:
   xarchiver/trunk/po/gl.po
Modified:
   xarchiver/trunk/po/ChangeLog
   xarchiver/trunk/po/LINGUAS
Log:
Add Galician and update Polish translations

Modified: xarchiver/trunk/po/ChangeLog
===
--- xarchiver/trunk/po/ChangeLog2006-08-24 18:29:24 UTC (rev 22873)
+++ xarchiver/trunk/po/ChangeLog2006-08-24 18:33:48 UTC (rev 22874)
@@ -1,3 +1,8 @@
+2006-08-24  Jean-François Wauthy [EMAIL PROTECTED]
+
+   * gl.po: Add Galician translations
+   * pl.po: Update Polish translations
+
 2006-08-23  Jari Rahkonen [EMAIL PROTECTED]
 
* fi.po: Updated Finnish translation.
@@ -4,7 +9,7 @@
 
 2006-08-07  Piarres Beobide [EMAIL PROTECTED]
 
-* eu.po: Basque translation update.
+   * eu.po: Basque translation update.
 
 2006-08-06  Jari Rahkonen [EMAIL PROTECTED]
 

Modified: xarchiver/trunk/po/LINGUAS
===
--- xarchiver/trunk/po/LINGUAS  2006-08-24 18:29:24 UTC (rev 22873)
+++ xarchiver/trunk/po/LINGUAS  2006-08-24 18:33:48 UTC (rev 22874)
@@ -1,2 +1,2 @@
 # set of available languages (in alphabetic order)
-de el eu fi fr he hu ja nl pl ru sv zh_TW
+de el eu fi fr gl he hu ja nl pl ru sv zh_TW

Added: xarchiver/trunk/po/gl.po
===
--- xarchiver/trunk/po/gl.po(rev 0)
+++ xarchiver/trunk/po/gl.po2006-08-24 18:33:48 UTC (rev 22874)
@@ -0,0 +1,404 @@
+# Galician translation for xarchiver
+# Copyright (c) (c) 2006 Canonical Ltd, and Rosetta Contributors 2006
+# This file is distributed under the same license as the xarchiver package.
+# FIRST AUTHOR [EMAIL PROTECTED], 2006.
+#
+#, fuzzy
+msgid 
+msgstr 
+Project-Id-Version: xarchiver\n
+Report-Msgid-Bugs-To: FULL NAME [EMAIL PROTECTED]\n
+POT-Creation-Date: 2006-04-27 10:32+0200\n
+PO-Revision-Date: 2006-08-17 19:16+\n
+Last-Translator: Leandro Regueiro [EMAIL PROTECTED]\n
+Language-Team: Galician [EMAIL PROTECTED]\n
+MIME-Version: 1.0\n
+Content-Type: text/plain; charset=UTF-8\n
+Content-Transfer-Encoding: 8bit\n
+
+#: src/main.c:61
+msgid Ready.
+msgstr 
+
+#: src/main.c:184
+#, c-format
+msgid 
+xarchiver: invalid option %s\n
+Try xarchiver -h for more information.\n
+msgstr 
+
+#: src/interface.c:49
+msgid _Archive
+msgstr 
+
+#: src/interface.c:79
+msgid _Action
+msgstr 
+
+#: src/interface.c:88 src/interface.c:195
+msgid Add File
+msgstr 
+
+#: src/interface.c:92 src/interface.c:204
+msgid Add Folder
+msgstr 
+
+#: src/interface.c:101 src/interface.c:218
+msgid Extract
+msgstr Extraer
+
+#: src/interface.c:111 src/interface.c:237
+msgid View
+msgstr Ver
+
+#: src/interface.c:136
+msgid Set Password
+msgstr 
+
+#: src/interface.c:141
+msgid View S_hell Output
+msgstr 
+
+#: src/interface.c:158
+msgid _About
+msgstr _Acerca de
+
+#: src/interface.c:172
+msgid New
+msgstr Novo
+
+#: src/interface.c:177 src/callbacks.c:699
+msgid Create a new archive
+msgstr Crear un novo arquivo
+
+#: src/interface.c:181
+msgid Open
+msgstr Abrir
+
+#: src/interface.c:186 src/callbacks.c:705
+msgid Open an archive
+msgstr Abrir un arquivo
+
+#: src/interface.c:200
+msgid Add a file to the current archive
+msgstr Engadir un ficheiro ó arquivo actual
+
+#: src/interface.c:209
+msgid Add an entire folder to the current archive
+msgstr 
+
+#: src/interface.c:223
+msgid 
+Extract files from the current archive; use the mouse to select files 
+individually
+msgstr 
+
+#: src/interface.c:227
+msgid Delete
+msgstr 
+
+#: src/interface.c:233
+msgid Delete files from the current archive
+msgstr 
+
+#: src/interface.c:243
+msgid View file content in the current archive
+msgstr 
+
+#: src/interface.c:301
+msgid This archive contains password protected files
+msgstr Este arquivo contén ficheiros protexidos por contrasinal
+
+#: src/interface.c:419
+msgid Extract ONLY selected files
+msgstr 
+
+#: src/interface.c:420
+msgid Extract ALL files
+msgstr 
+
+#: src/interface.c:446
+msgid Choose a folder where to extract files
+msgstr 
+
+#: src/interface.c:461
+msgid Extract to:
+msgstr Extraer a:
+
+#: src/interface.c:531
+msgid Enter Archive Password
+msgstr Introduza o Contrasinal do Arquivo
+
+#: src/interface.c:551
+msgid Password:
+msgstr Contrasinal:
+
+#: src/interface.c:566
+msgid Retype it:
+msgstr 
+
+#: src/interface.c:571
+msgid 
+Please note that the password is automatically resetted each time you open 
+or create a new archive.
+msgstr 
+
+#: src/interface.c:615
+msgid View File Window
+msgstr 
+
+#: src/callbacks.c:61 src/rpm.c:113 src/rpm.c:136
+msgid Operation failed.
+msgstr 
+
+#: src/callbacks.c:68
+msgid 
+An error occurred while accessing the archive.\n
+Do you want to view the shell output ?
+msgstr 
+
+#: src/callbacks.c:83
+msgid Please wait while the content of the archive is being updated...
+msgstr 
+
+#: 

[Xfce4-commits] r22876 - in xarchiver/branches/xarchiver-psybsd: libxarchiver po

2006-08-24 Thread Stephan Arts
Author: stephan
Date: 2006-08-25 05:23:35 + (Fri, 25 Aug 2006)
New Revision: 22876

Added:
   xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-rar.c
   xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-rar.h
   xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-unrar.c
   xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-unrar.h
Modified:
   xarchiver/branches/xarchiver-psybsd/libxarchiver/Makefile.am
   xarchiver/branches/xarchiver-psybsd/libxarchiver/libxarchiver.c
   xarchiver/branches/xarchiver-psybsd/libxarchiver/libxarchiver.h
   xarchiver/branches/xarchiver-psybsd/po/nl.po
   xarchiver/branches/xarchiver-psybsd/po/xarchiver.pot
Log:
Added 'rar' support.
Added template for 'unrar' support.


Modified: xarchiver/branches/xarchiver-psybsd/libxarchiver/Makefile.am
===
--- xarchiver/branches/xarchiver-psybsd/libxarchiver/Makefile.am
2006-08-24 18:36:28 UTC (rev 22875)
+++ xarchiver/branches/xarchiver-psybsd/libxarchiver/Makefile.am
2006-08-25 05:23:35 UTC (rev 22876)
@@ -6,6 +6,8 @@
archive.c archive.h \
archive-support.c archive-support.h \
   archive-support-zip.c archive-support-zip.h \
+  archive-support-rar.c archive-support-rar.h \
+  archive-support-unrar.c archive-support-unrar.h \
archive-support-gnu-tar.c archive-support-gnu-tar.h
 
 libxarchiver_a_CFLAGS = \

Added: xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-rar.c
===
--- xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-rar.c  
(rev 0)
+++ xarchiver/branches/xarchiver-psybsd/libxarchiver/archive-support-rar.c  
2006-08-25 05:23:35 UTC (rev 22876)
@@ -0,0 +1,187 @@
+/*
+ *  Copyright (c) 2006 Stephan Arts [EMAIL PROTECTED]
+ *
+ *  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 Library 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.
+ */
+
+#define EXO_API_SUBJECT_TO_CHANGE
+
+#include glib.h
+#include glib-object.h
+#include thunar-vfs/thunar-vfs.h
+
+#include archive.h
+#include archive-support.h
+#include archive-support-rar.h
+
+#include internals.h
+
+void
+lxa_archive_support_rar_init(LXAArchiveSupportRar *support);
+void
+lxa_archive_support_rar_class_init(LXAArchiveSupportRarClass *supportclass);
+
+gint
+lxa_archive_support_rar_add(LXAArchive *archive, GSList *filenames);
+gint
+lxa_archive_support_rar_extract(LXAArchive *archive, gchar *dest_path, GSList 
*filenames);
+gint
+lxa_archive_support_rar_remove(LXAArchive *archive, GSList *filenames);
+
+GType
+lxa_archive_support_rar_get_type ()
+{
+   static GType lxa_archive_support_rar_type = 0;
+
+   if (!lxa_archive_support_rar_type)
+   {
+   static const GTypeInfo lxa_archive_support_rar_info = 
+   {
+   sizeof (LXAArchiveSupportRarClass),
+   (GBaseInitFunc) NULL,
+   (GBaseFinalizeFunc) NULL,
+   (GClassInitFunc) lxa_archive_support_rar_class_init,
+   (GClassFinalizeFunc) NULL,
+   NULL,
+   sizeof (LXAArchiveSupportRar),
+   0,
+   (GInstanceInitFunc) lxa_archive_support_rar_init,
+   };
+
+   lxa_archive_support_rar_type = g_type_register_static 
(LXA_TYPE_ARCHIVE_SUPPORT, LXAArchiveSupportRar, 
lxa_archive_support_rar_info, 0);
+   }
+   return lxa_archive_support_rar_type;
+}
+
+void
+lxa_archive_support_rar_init(LXAArchiveSupportRar *support)
+{
+   LXAArchiveSupport *archive_support = LXA_ARCHIVE_SUPPORT(support);
+
+   archive_support-id = Rar;
+
+   lxa_archive_support_add_mime(archive_support, application/x-rar);
+
+   archive_support-add = lxa_archive_support_rar_add;
+   archive_support-extract = lxa_archive_support_rar_extract;
+   archive_support-remove = lxa_archive_support_rar_remove;
+}
+
+void
+lxa_archive_support_rar_class_init(LXAArchiveSupportRarClass *supportclass)
+{
+   /*
+   GObjectClass *gobject_class = G_OBJECT_CLASS (supportclass);
+   LXAArchiveSupportRarClass *klass = LXA_ARCHIVE_SUPPORT_RAR_CLASS 
(supportclass);
+   */
+}
+

[Xfce4-commits] r22877 - xarchiver/trunk/src

2006-08-24 Thread Stephan Arts
Author: stephan
Date: 2006-08-25 05:39:19 + (Fri, 25 Aug 2006)
New Revision: 22877

Modified:
   xarchiver/trunk/src/main.c
Log:
Fixed seg-fault.


Modified: xarchiver/trunk/src/main.c
===
--- xarchiver/trunk/src/main.c  2006-08-25 05:23:35 UTC (rev 22876)
+++ xarchiver/trunk/src/main.c  2006-08-25 05:39:19 UTC (rev 22877)
@@ -237,7 +237,7 @@
archive = xa_init_archive_structure(archive);
 
/* This to open the archive from the command line */
-   if ( argc == 1)
+   if ( argc == 1  files)
{
gchar *dummy = g_strdup(files[0]);
xa_open_archive ( NULL , dummy );

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits