1
1

1999-08-12 Federico Mena Quintero <federico@redhat.com>

* gnome-file-property-dialog.c (perm_group_new): If the file
	belongs to an unknown user/group, use the group's number as a
	string for the entry box.  BUGFIX: GNOME bug tracker #1414.
	(perm_owner_new): Do the same thing for the user.
Этот коммит содержится в:
Miguel de Icaza 1999-08-12 19:38:09 +00:00
родитель 5b14d415a6
Коммит d087dd3350
2 изменённых файлов: 20 добавлений и 3 удалений

Просмотреть файл

@ -1,5 +1,10 @@
1999-08-12 Federico Mena Quintero <federico@redhat.com>
* gnome-file-property-dialog.c (perm_group_new): If the file
belongs to an unknown user/group, use the group's number as a
string for the entry box. BUGFIX: GNOME bug tracker #1414.
(perm_owner_new): Do the same thing for the user.
* gdialogs.c (file_mask_dialog): Destroy the dialog if it was
closed by the window manager, as well.
(file_op_context_create_ui): Make the operation window modal so

Просмотреть файл

@ -809,8 +809,12 @@ perm_owner_new (GnomeFilePropertyDialog *fp_dlg)
if (passwd) {
fp_dlg->user_name = passwd->pw_name;
gtk_entry_set_text (GTK_ENTRY (gentry), passwd->pw_name);
} else
gtk_entry_set_text (GTK_ENTRY (gentry), "<Unknown>");
} else {
char buf[100];
g_snprintf (buf, sizeof (buf), _("<Unknown> (%d)"), (int) fp_dlg->st.st_uid);
gtk_entry_set_text (GTK_ENTRY (gentry), buf);
}
return gentry;
}
@ -891,8 +895,16 @@ perm_group_new (GnomeFilePropertyDialog *fp_dlg)
/* we're neither so we just put an entry down */
gentry = gtk_entry_new ();
gtk_widget_set_sensitive (gentry, FALSE);
grp = getgrgid (fp_dlg->st.st_gid);
gtk_entry_set_text (GTK_ENTRY (gentry), grp->gr_name);
if (grp)
gtk_entry_set_text (GTK_ENTRY (gentry), grp->gr_name);
else {
char buf[100];
g_snprintf (buf, sizeof (buf), _("<Unknown> (%d)"), fp_dlg->st.st_gid);
gtk_entry_set_text (GTK_ENTRY (gentry), buf);
}
}
g_free (grpname);
return gentry;