Code cleanup

This commit is contained in:
Pierre Pronchery 2011-02-19 15:19:12 +00:00
parent 51f05e6eea
commit 9a851ee8cc
5 changed files with 93 additions and 90 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:07+0100\n" "POT-Creation-Date: 2011-02-19 16:18+0100\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n" "PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: English\n" "Language-Team: English\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668 #: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426 #: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452 #: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:113 ../src/properties.c:117 #: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/view.c:366 ../src/view.c:371 #: ../src/view.c:366 ../src/view.c:371
msgid "Error" msgid "Error"
msgstr "Fehler" msgstr "Fehler"
@ -360,7 +360,7 @@ msgstr ""
msgid "Omitting directory" msgid "Omitting directory"
msgstr "" msgstr ""
#: ../src/copy.c:584 ../src/properties.c:475 #: ../src/copy.c:584 ../src/properties.c:478
msgid "kB" msgid "kB"
msgstr "" msgstr ""
@ -368,7 +368,7 @@ msgstr ""
msgid "0.0 kB/s" msgid "0.0 kB/s"
msgstr "" msgstr ""
#: ../src/copy.c:609 ../src/properties.c:477 #: ../src/copy.c:609 ../src/properties.c:480
msgid "MB" msgid "MB"
msgstr "" msgstr ""
@ -542,67 +542,67 @@ msgid ""
" -a\taction to call (default: \"open\")\n" " -a\taction to call (default: \"open\")\n"
msgstr "" msgstr ""
#: ../src/properties.c:232 #: ../src/properties.c:235
msgid "Properties of " msgid "Properties of "
msgstr "Eigenschaften von " msgstr "Eigenschaften von "
#: ../src/properties.c:257 #: ../src/properties.c:260
msgid "Size:" msgid "Size:"
msgstr "Größe:" msgstr "Größe:"
#: ../src/properties.c:263 ../src/properties.c:313 #: ../src/properties.c:266 ../src/properties.c:316
msgid "Owner:" msgid "Owner:"
msgstr "" msgstr ""
#: ../src/properties.c:269 ../src/properties.c:316 #: ../src/properties.c:272 ../src/properties.c:319
msgid "Group:" msgid "Group:"
msgstr "Gruppe:" msgstr "Gruppe:"
#: ../src/properties.c:277 #: ../src/properties.c:280
msgid "Accessed:" msgid "Accessed:"
msgstr "" msgstr ""
#: ../src/properties.c:283 #: ../src/properties.c:286
msgid "Modified:" msgid "Modified:"
msgstr "" msgstr ""
#: ../src/properties.c:289 #: ../src/properties.c:292
msgid "Changed:" msgid "Changed:"
msgstr "" msgstr ""
#: ../src/properties.c:295 #: ../src/properties.c:298
msgid "Permissions:" msgid "Permissions:"
msgstr "" msgstr ""
#: ../src/properties.c:319 #: ../src/properties.c:322
msgid "Others:" msgid "Others:"
msgstr "" msgstr ""
#: ../src/properties.c:438 #: ../src/properties.c:441
msgid "read" msgid "read"
msgstr "" msgstr ""
#: ../src/properties.c:442 #: ../src/properties.c:445
msgid "write" msgid "write"
msgstr "" msgstr ""
#: ../src/properties.c:446 #: ../src/properties.c:449
msgid "execute" msgid "execute"
msgstr "" msgstr ""
#: ../src/properties.c:469 #: ../src/properties.c:472
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: ../src/properties.c:479 #: ../src/properties.c:482
msgid "GB" msgid "GB"
msgstr "" msgstr ""
#: ../src/properties.c:483 #: ../src/properties.c:486
msgid "TB" msgid "TB"
msgstr "" msgstr ""
#: ../src/properties.c:555 #: ../src/properties.c:558
msgid "Usage: properties file...\n" msgid "Usage: properties file...\n"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:07+0100\n" "POT-Creation-Date: 2011-02-19 16:18+0100\n"
"PO-Revision-Date: 2010-03-30 01:04+0200\n" "PO-Revision-Date: 2010-03-30 01:04+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668 #: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426 #: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452 #: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:113 ../src/properties.c:117 #: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/view.c:366 ../src/view.c:371 #: ../src/view.c:366 ../src/view.c:371
msgid "Error" msgid "Error"
msgstr "" msgstr ""
@ -360,7 +360,7 @@ msgstr ""
msgid "Omitting directory" msgid "Omitting directory"
msgstr "" msgstr ""
#: ../src/copy.c:584 ../src/properties.c:475 #: ../src/copy.c:584 ../src/properties.c:478
msgid "kB" msgid "kB"
msgstr "" msgstr ""
@ -368,7 +368,7 @@ msgstr ""
msgid "0.0 kB/s" msgid "0.0 kB/s"
msgstr "" msgstr ""
#: ../src/copy.c:609 ../src/properties.c:477 #: ../src/copy.c:609 ../src/properties.c:480
msgid "MB" msgid "MB"
msgstr "" msgstr ""
@ -542,67 +542,67 @@ msgid ""
" -a\taction to call (default: \"open\")\n" " -a\taction to call (default: \"open\")\n"
msgstr "" msgstr ""
#: ../src/properties.c:232 #: ../src/properties.c:235
msgid "Properties of " msgid "Properties of "
msgstr "Propriedades con " msgstr "Propriedades con "
#: ../src/properties.c:257 #: ../src/properties.c:260
msgid "Size:" msgid "Size:"
msgstr "" msgstr ""
#: ../src/properties.c:263 ../src/properties.c:313 #: ../src/properties.c:266 ../src/properties.c:316
msgid "Owner:" msgid "Owner:"
msgstr "" msgstr ""
#: ../src/properties.c:269 ../src/properties.c:316 #: ../src/properties.c:272 ../src/properties.c:319
msgid "Group:" msgid "Group:"
msgstr "" msgstr ""
#: ../src/properties.c:277 #: ../src/properties.c:280
msgid "Accessed:" msgid "Accessed:"
msgstr "" msgstr ""
#: ../src/properties.c:283 #: ../src/properties.c:286
msgid "Modified:" msgid "Modified:"
msgstr "" msgstr ""
#: ../src/properties.c:289 #: ../src/properties.c:292
msgid "Changed:" msgid "Changed:"
msgstr "" msgstr ""
#: ../src/properties.c:295 #: ../src/properties.c:298
msgid "Permissions:" msgid "Permissions:"
msgstr "" msgstr ""
#: ../src/properties.c:319 #: ../src/properties.c:322
msgid "Others:" msgid "Others:"
msgstr "" msgstr ""
#: ../src/properties.c:438 #: ../src/properties.c:441
msgid "read" msgid "read"
msgstr "" msgstr ""
#: ../src/properties.c:442 #: ../src/properties.c:445
msgid "write" msgid "write"
msgstr "" msgstr ""
#: ../src/properties.c:446 #: ../src/properties.c:449
msgid "execute" msgid "execute"
msgstr "" msgstr ""
#: ../src/properties.c:469 #: ../src/properties.c:472
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: ../src/properties.c:479 #: ../src/properties.c:482
msgid "GB" msgid "GB"
msgstr "" msgstr ""
#: ../src/properties.c:483 #: ../src/properties.c:486
msgid "TB" msgid "TB"
msgstr "" msgstr ""
#: ../src/properties.c:555 #: ../src/properties.c:558
msgid "Usage: properties file...\n" msgid "Usage: properties file...\n"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:07+0100\n" "POT-Creation-Date: 2011-02-19 16:18+0100\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n" "PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n" "Language-Team: French\n"
@ -188,7 +188,7 @@ msgstr " Chemin: "
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668 #: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426 #: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452 #: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:113 ../src/properties.c:117 #: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/view.c:366 ../src/view.c:371 #: ../src/view.c:366 ../src/view.c:371
msgid "Error" msgid "Error"
msgstr "Erreur" msgstr "Erreur"
@ -360,7 +360,7 @@ msgstr "Fichier %u sur %u"
msgid "Omitting directory" msgid "Omitting directory"
msgstr "Omission du dossier" msgstr "Omission du dossier"
#: ../src/copy.c:584 ../src/properties.c:475 #: ../src/copy.c:584 ../src/properties.c:478
msgid "kB" msgid "kB"
msgstr "Kio" msgstr "Kio"
@ -368,7 +368,7 @@ msgstr "Kio"
msgid "0.0 kB/s" msgid "0.0 kB/s"
msgstr "0.0 Kio/s" msgstr "0.0 Kio/s"
#: ../src/copy.c:609 ../src/properties.c:477 #: ../src/copy.c:609 ../src/properties.c:480
msgid "MB" msgid "MB"
msgstr "Mio" msgstr "Mio"
@ -576,67 +576,67 @@ msgstr ""
" -m\tType MIME à forcer (défaut: auto-détecté)\n" " -m\tType MIME à forcer (défaut: auto-détecté)\n"
" -a\taction à appeler (défaut: \"open\")\n" " -a\taction à appeler (défaut: \"open\")\n"
#: ../src/properties.c:232 #: ../src/properties.c:235
msgid "Properties of " msgid "Properties of "
msgstr "Propriétés de " msgstr "Propriétés de "
#: ../src/properties.c:257 #: ../src/properties.c:260
msgid "Size:" msgid "Size:"
msgstr "Taille:" msgstr "Taille:"
#: ../src/properties.c:263 ../src/properties.c:313 #: ../src/properties.c:266 ../src/properties.c:316
msgid "Owner:" msgid "Owner:"
msgstr "Propriétaire:" msgstr "Propriétaire:"
#: ../src/properties.c:269 ../src/properties.c:316 #: ../src/properties.c:272 ../src/properties.c:319
msgid "Group:" msgid "Group:"
msgstr "Groupe:" msgstr "Groupe:"
#: ../src/properties.c:277 #: ../src/properties.c:280
msgid "Accessed:" msgid "Accessed:"
msgstr "Accédé:" msgstr "Accédé:"
#: ../src/properties.c:283 #: ../src/properties.c:286
msgid "Modified:" msgid "Modified:"
msgstr "Modifié:" msgstr "Modifié:"
#: ../src/properties.c:289 #: ../src/properties.c:292
msgid "Changed:" msgid "Changed:"
msgstr "Changé:" msgstr "Changé:"
#: ../src/properties.c:295 #: ../src/properties.c:298
msgid "Permissions:" msgid "Permissions:"
msgstr "Permissions:" msgstr "Permissions:"
#: ../src/properties.c:319 #: ../src/properties.c:322
msgid "Others:" msgid "Others:"
msgstr "Autres:" msgstr "Autres:"
#: ../src/properties.c:438 #: ../src/properties.c:441
msgid "read" msgid "read"
msgstr "lecture" msgstr "lecture"
#: ../src/properties.c:442 #: ../src/properties.c:445
msgid "write" msgid "write"
msgstr "écriture" msgstr "écriture"
#: ../src/properties.c:446 #: ../src/properties.c:449
msgid "execute" msgid "execute"
msgstr "exécution" msgstr "exécution"
#: ../src/properties.c:469 #: ../src/properties.c:472
msgid "bytes" msgid "bytes"
msgstr "octets" msgstr "octets"
#: ../src/properties.c:479 #: ../src/properties.c:482
msgid "GB" msgid "GB"
msgstr "Gio" msgstr "Gio"
#: ../src/properties.c:483 #: ../src/properties.c:486
msgid "TB" msgid "TB"
msgstr "Tio" msgstr "Tio"
#: ../src/properties.c:555 #: ../src/properties.c:558
msgid "Usage: properties file...\n" msgid "Usage: properties file...\n"
msgstr "Usage: properties fichier...\n" msgstr "Usage: properties fichier...\n"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:07+0100\n" "POT-Creation-Date: 2011-02-19 16:18+0100\n"
"PO-Revision-Date: 2010-04-07 23:18+0200\n" "PO-Revision-Date: 2010-04-07 23:18+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668 #: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426 #: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452 #: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:113 ../src/properties.c:117 #: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/view.c:366 ../src/view.c:371 #: ../src/view.c:366 ../src/view.c:371
msgid "Error" msgid "Error"
msgstr "" msgstr ""
@ -360,7 +360,7 @@ msgstr ""
msgid "Omitting directory" msgid "Omitting directory"
msgstr "" msgstr ""
#: ../src/copy.c:584 ../src/properties.c:475 #: ../src/copy.c:584 ../src/properties.c:478
msgid "kB" msgid "kB"
msgstr "" msgstr ""
@ -368,7 +368,7 @@ msgstr ""
msgid "0.0 kB/s" msgid "0.0 kB/s"
msgstr "" msgstr ""
#: ../src/copy.c:609 ../src/properties.c:477 #: ../src/copy.c:609 ../src/properties.c:480
msgid "MB" msgid "MB"
msgstr "" msgstr ""
@ -542,67 +542,67 @@ msgid ""
" -a\taction to call (default: \"open\")\n" " -a\taction to call (default: \"open\")\n"
msgstr "" msgstr ""
#: ../src/properties.c:232 #: ../src/properties.c:235
msgid "Properties of " msgid "Properties of "
msgstr "" msgstr ""
#: ../src/properties.c:257 #: ../src/properties.c:260
msgid "Size:" msgid "Size:"
msgstr "" msgstr ""
#: ../src/properties.c:263 ../src/properties.c:313 #: ../src/properties.c:266 ../src/properties.c:316
msgid "Owner:" msgid "Owner:"
msgstr "" msgstr ""
#: ../src/properties.c:269 ../src/properties.c:316 #: ../src/properties.c:272 ../src/properties.c:319
msgid "Group:" msgid "Group:"
msgstr "" msgstr ""
#: ../src/properties.c:277 #: ../src/properties.c:280
msgid "Accessed:" msgid "Accessed:"
msgstr "" msgstr ""
#: ../src/properties.c:283 #: ../src/properties.c:286
msgid "Modified:" msgid "Modified:"
msgstr "" msgstr ""
#: ../src/properties.c:289 #: ../src/properties.c:292
msgid "Changed:" msgid "Changed:"
msgstr "" msgstr ""
#: ../src/properties.c:295 #: ../src/properties.c:298
msgid "Permissions:" msgid "Permissions:"
msgstr "" msgstr ""
#: ../src/properties.c:319 #: ../src/properties.c:322
msgid "Others:" msgid "Others:"
msgstr "" msgstr ""
#: ../src/properties.c:438 #: ../src/properties.c:441
msgid "read" msgid "read"
msgstr "" msgstr ""
#: ../src/properties.c:442 #: ../src/properties.c:445
msgid "write" msgid "write"
msgstr "" msgstr ""
#: ../src/properties.c:446 #: ../src/properties.c:449
msgid "execute" msgid "execute"
msgstr "" msgstr ""
#: ../src/properties.c:469 #: ../src/properties.c:472
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: ../src/properties.c:479 #: ../src/properties.c:482
msgid "GB" msgid "GB"
msgstr "" msgstr ""
#: ../src/properties.c:483 #: ../src/properties.c:486
msgid "TB" msgid "TB"
msgstr "" msgstr ""
#: ../src/properties.c:555 #: ../src/properties.c:558
msgid "Usage: properties file...\n" msgid "Usage: properties file...\n"
msgstr "" msgstr ""

View File

@ -71,7 +71,8 @@ typedef struct _Properties
static unsigned int _properties_cnt = 0; /* XXX set as static in _properties */ static unsigned int _properties_cnt = 0; /* XXX set as static in _properties */
/* functions */ /* functions */
static int _properties_error(GtkWidget * window, char const * message, int ret); static int _properties_error(Properties * properties, char const * message,
int ret);
static int _properties_do(Mime * mime, GtkIconTheme * theme, static int _properties_do(Mime * mime, GtkIconTheme * theme,
char const * filename); char const * filename);
static int _properties_refresh(Properties * properties); static int _properties_refresh(Properties * properties);
@ -103,21 +104,23 @@ static int _properties(Mime * mime, int filec, char * const filev[])
/* _properties_error */ /* _properties_error */
static void _error_response(GtkWidget * widget, gint arg, gpointer data); static void _error_response(GtkWidget * widget, gint arg, gpointer data);
static int _properties_error(GtkWidget * window, char const * message, int ret) static int _properties_error(Properties * properties, char const * message,
int ret)
{ {
GtkWidget * dialog; GtkWidget * dialog;
dialog = gtk_message_dialog_new(window != NULL ? GTK_WINDOW(window) dialog = gtk_message_dialog_new((properties != NULL)
: NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, ? GTK_WINDOW(properties->window) : NULL, 0,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
#if GTK_CHECK_VERSION(2, 6, 0) #if GTK_CHECK_VERSION(2, 6, 0)
"%s", _("Error")); "%s", _("Error"));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
#endif #endif
"%s: %s", message, strerror(errno)); "%s: %s", message, strerror(errno));
gtk_window_set_title(GTK_WINDOW(dialog), _("Error")); gtk_window_set_title(GTK_WINDOW(dialog), _("Error"));
if(window != NULL) if(properties != NULL)
gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW( gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(
window)); properties->window));
g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK( g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(
_error_response), (ret != 0) _error_response), (ret != 0)
? &_properties_cnt : NULL); ? &_properties_cnt : NULL);
@ -376,7 +379,7 @@ static GtkWidget * _do_groups(Properties * properties)
if((gr = getgrgid(getgid())) == NULL) if((gr = getgrgid(getgid())) == NULL)
{ {
_properties_error(properties->window, properties->filename, 0); _properties_error(properties, properties->filename, 0);
return gtk_label_new(""); return gtk_label_new("");
} }
box = gtk_hbox_new(TRUE, 0); box = gtk_hbox_new(TRUE, 0);
@ -387,7 +390,7 @@ static GtkWidget * _do_groups(Properties * properties)
gtk_box_pack_start(GTK_BOX(box), combo, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(box), combo, FALSE, FALSE, 0);
if((pw = getpwuid(getuid())) == NULL) if((pw = getpwuid(getuid())) == NULL)
{ {
_properties_error(properties->window, properties->filename, 0); _properties_error(properties, properties->filename, 0);
return combo; return combo;
} }
setgrent(); setgrent();
@ -514,7 +517,7 @@ static void _properties_on_apply(gpointer data)
p = gtk_combo_box_get_active_text(GTK_COMBO_BOX(properties->combo)); p = gtk_combo_box_get_active_text(GTK_COMBO_BOX(properties->combo));
if((gr = getgrnam(p)) == NULL) if((gr = getgrnam(p)) == NULL)
_properties_error(properties->window, p, 0); _properties_error(properties, p, 0);
else else
gid = gr->gr_gid; gid = gr->gr_gid;
for(i = 0; i < 9; i++) for(i = 0; i < 9; i++)
@ -522,7 +525,7 @@ static void _properties_on_apply(gpointer data)
properties->mode[i])) << i; properties->mode[i])) << i;
if(chown(properties->filename, properties->uid, gid) != 0 if(chown(properties->filename, properties->uid, gid) != 0
|| chmod(properties->filename, mode) != 0) || chmod(properties->filename, mode) != 0)
_properties_error(properties->window, properties->filename, 0); _properties_error(properties, properties->filename, 0);
} }
static void _properties_on_close(gpointer data) static void _properties_on_close(gpointer data)